wxGLCanvas using problem
Posted: Fri Dec 19, 2008 12:12 am
Hello.
I try use wxGLCanvas in my project. The part of the code below.
But when I try compile project I take message:
`wxGLCanvas' has not been declared
Where my error?
P.S. Sorry if topic is not for this section.
I try use wxGLCanvas in my project. The part of the code below.
Code: Select all
#include <GL/glu.h>
#include "wx/glcanvas.h"// inheriting class's header file
#include "wx/image.h"
#include "wx/dcclient.h"
#include "wx/timer.h"
class MeshPicture2D : public wxGLCanvas
{
DECLARE_EVENT_TABLE()
public:
// class constructor
MeshPicture2D(wxWindow* parent, wxWindowID id = wxID_ANY,
const wxPoint & pos = wxDefaultPosition,
const wxSize & size = wxDefaultSize, long style = 0);
// class destructor
~MeshPicture2D();
// Обработка события перепрорисовки канвы элемента
void OnPaint(wxPaintEvent & event);
...
`wxGLCanvas' has not been declared
Where my error?
P.S. Sorry if topic is not for this section.