#pragma once #include "wx/glcanvas.h" #include "wx/timer.h" #include class PrimaryGLContext : public wxGLContext { public: PrimaryGLContext(wxGLCanvas *canvas); void PlotIQ(std::vector &i_points, std::vector &q_points); private: // textures for the cube faces GLuint m_textures[6]; }; class TestGLCanvas : public wxGLCanvas { public: TestGLCanvas(wxWindow *parent, int *attribList = NULL); void setData(std::vector *data); std::vector i_points; std::vector q_points; private: void OnPaint(wxPaintEvent& event); void OnKeyDown(wxKeyEvent& event); void OnIdle(wxIdleEvent &event); wxDECLARE_EVENT_TABLE(); };