1 #ifndef __ImageCanvasGLBase_hh__
2 #define __ImageCanvasGLBase_hh__
6 #include <bias_config.h>
8 #ifndef BIAS_HAVE_WXWIDGETS
9 # error Please recompile BIAS with USE_WXWIDGETS to use this lib.
10 #endif // BIAS_HAVE_WXWIDGETS
12 #ifndef BIAS_HAVE_OPENGL
13 # error Please recompile BIAS with USE_OPENGL to use this lib.
14 #endif // BIAS_HAVE_OPENGL
17 #include <Gui/OpenGLCanvas.hh>
18 #include <Gui/ImgObjGL.hh>
19 #include <Base/Image/ImageBase.hh>
49 ,
const wxPoint& pos = wxDefaultPosition
50 ,
const wxSize& size = wxDefaultSize
52 ,
const wxString& name =
AsciiToWx(
"ImageCanvasGLBase")
53 ,
int* attribList = NULL
54 ,
const wxPalette& palette = wxNullPalette );
60 ,wxGLContext* sharedContext = NULL
62 ,
const wxPoint& pos = wxDefaultPosition
63 ,
const wxSize& size = wxDefaultSize
65 ,
const wxString& name=
AsciiToWx(
"ImageCanvasGLBase")
67 ,
const wxPalette& palette = wxNullPalette );
69 virtual void DisplayCalls();
71 virtual void InitMembers();
74 GLuint GetTexId()
const;
77 GLenum GetTexTarget()
const;
79 bool ValidTexobj(
const ImgObjGL & t)
const;
84 const std::string & name=std::string(
"ImgObjGL") );
89 const std::string & name=std::string(
"Image<unsigned char>"),
90 const bool & forcePow2tex=
true,
91 const bool & flipY=
true
98 const std::string & name=std::string(
"RECT Image<unsigned char>"),
99 const bool & flipY=
true
112 void EnableMipMapping(
const bool & avoidAliasingByMipmapping=
true);
wxString AsciiToWx(const char *thestring)
Converts a C string to a wxString.
OpenGL canvases with additinal event handling (JW)
data holder describing OpenGL texture objects in addition to its unique texID.
ImgObjGL GetTexobj() const
2D image display canvas using OpenGL rendering internally.
BIAS::Vector2< float > InterestPoint
This is the base class for images in BIAS.