32 #ifndef vlWXGLCanvas_INCLUDE_ONCE 33 #define vlWXGLCanvas_INCLUDE_ONCE 39 #include <wx/glcanvas.h> 41 #include <wx/dcclient.h> 46 #error "OpenGL required: set wxUSE_GLCANVAS to 1 and rebuild the library" 57 wxWindowID
id = wxID_ANY,
58 const int *attribList =
NULL,
59 const wxPoint& pos = wxDefaultPosition,
60 const wxSize& size = wxDefaultSize,
62 const wxString& name = wxT(
"WXGLCanvas"),
63 const wxPalette& palette = wxNullPalette
68 void OnPaint(wxPaintEvent& ev);
69 void OnSize(wxSizeEvent& ev);
70 void OnEraseBackground(wxEraseEvent& ev);
71 void OnKeyDown(wxKeyEvent& ev);
72 void OnKeyUp(wxKeyEvent& ev);
74 void OnMouseMotion(wxMouseEvent &ev);
75 void OnMouseDown(wxMouseEvent &ev);
76 void OnMouseUp(wxMouseEvent &ev);
77 void OnMouseWheel( wxMouseEvent& ev );
78 void OnMouseEnter(wxMouseEvent& ev);
79 void OnIdle(wxIdleEvent& ev);
80 void OnDropFiles(wxDropFilesEvent& ev);
82 bool setFullscreen(
bool fullscreen);
83 void quitApplication();
87 void setMousePosition(
int x,
int y);
92 void setPosition(
int x,
int y);
93 void setSize(
int w,
int h);
96 void setMouseVisible(
bool visible);
105 wxGLContext* mWXGLContext;
106 DECLARE_EVENT_TABLE()
wxGLContext * getWXGLContext()
The String class implements an advanced UTF16 (Unicode BMP) string manipulation engine.
void setWXGLContext(wxGLContext *c)
Represents an OpenGL context, possibly a widget or a pbuffer, which can also respond to keyboard...
The wxWidgets bindings namespace.
The WXGLCanvas class implements a vl::OpenGLContext using the wxWidgets library.
const wxGLContext * getWXGLContext() const