Files
CubicSDR/src/PrimaryGLContext.h
T

38 lines
716 B
C++
Raw Normal View History

2014-10-27 21:22:29 -04:00
#pragma once
#include "wx/glcanvas.h"
#include "wx/timer.h"
2014-10-28 22:59:17 -04:00
#include <vector>
2014-10-27 21:22:29 -04:00
class PrimaryGLContext : public wxGLContext
{
public:
PrimaryGLContext(wxGLCanvas *canvas);
2014-10-28 22:59:17 -04:00
void PlotIQ(std::vector<float> &i_points, std::vector<float> &q_points);
2014-10-27 21:22:29 -04:00
private:
// textures for the cube faces
GLuint m_textures[6];
};
class TestGLCanvas : public wxGLCanvas
{
public:
TestGLCanvas(wxWindow *parent, int *attribList = NULL);
2014-10-28 22:59:17 -04:00
void setData(std::vector<signed char> *data);
std::vector<float> i_points;
std::vector<float> q_points;
2014-10-27 21:22:29 -04:00
private:
void OnPaint(wxPaintEvent& event);
void OnKeyDown(wxKeyEvent& event);
2014-10-28 22:59:17 -04:00
void OnIdle(wxIdleEvent &event);
2014-10-27 21:22:29 -04:00
wxDECLARE_EVENT_TABLE();
};