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"
|
|
|
|
|
#include "wx/glcanvas.h"
|
|
|
|
|
#include "PrimaryGLContext.h"
|
2014-10-27 20:05:40 -04:00
|
|
|
|
|
|
|
|
class CubicSDR : public wxApp
|
|
|
|
|
{
|
|
|
|
|
public:
|
2014-10-27 21:22:29 -04:00
|
|
|
CubicSDR() { m_glContext = NULL; m_pThread = 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();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
PrimaryGLContext *m_glContext;
|
|
|
|
|
SDRThread *m_pThread;
|
|
|
|
|
wxCriticalSection m_pThreadCS;
|
|
|
|
|
};
|
|
|
|
|
|
2014-10-27 21:22:29 -04:00
|
|
|
DECLARE_APP(CubicSDR)
|