2014-10-27 20:05:40 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
//WX_GL_CORE_PROFILE 1
|
|
|
|
//WX_GL_MAJOR_VERSION 3
|
|
|
|
//WX_GL_MINOR_VERSION 2
|
|
|
|
|
2014-10-27 21:22:29 -04:00
|
|
|
#include "SDRThread.h"
|
2014-10-28 21:39:59 -04:00
|
|
|
#include "IQBufferThread.h"
|
2014-10-27 21:22:29 -04:00
|
|
|
#include "wx/glcanvas.h"
|
|
|
|
#include "PrimaryGLContext.h"
|
2014-10-27 20:05:40 -04:00
|
|
|
|
2014-10-28 21:39:59 -04:00
|
|
|
class CubicSDR: public wxApp {
|
2014-10-27 20:05:40 -04:00
|
|
|
public:
|
2014-10-28 21:39:59 -04:00
|
|
|
CubicSDR() {
|
|
|
|
m_glContext = NULL;
|
|
|
|
t_SDR = NULL;
|
|
|
|
}
|
2014-10-27 20:05:40 -04:00
|
|
|
|
2014-10-27 21:22:29 -04:00
|
|
|
PrimaryGLContext &GetContext(wxGLCanvas *canvas);
|
2014-10-27 20:05:40 -04:00
|
|
|
|
|
|
|
virtual bool OnInit();
|
|
|
|
virtual int OnExit();
|
|
|
|
|
2014-10-28 21:39:59 -04:00
|
|
|
void OnEventInput(wxEvent& event) {
|
|
|
|
std::cout << "event !" << std::endl;
|
|
|
|
}
|
|
|
|
|
2014-10-27 20:05:40 -04:00
|
|
|
private:
|
|
|
|
PrimaryGLContext *m_glContext;
|
2014-10-28 21:39:59 -04:00
|
|
|
SDRThread *t_SDR;
|
|
|
|
IQBufferThread *t_IQBuffer;
|
2014-10-27 20:05:40 -04:00
|
|
|
wxCriticalSection m_pThreadCS;
|
|
|
|
};
|
|
|
|
|
2014-10-27 21:22:29 -04:00
|
|
|
DECLARE_APP(CubicSDR)
|