Go to the SVN repository for this file.
14 #include "wx/cmndata.h" 15 #include "wx/dcclient.h" 38 constwxPoint& pos = wxDefaultPosition,
39 constwxSize&
size= wxDefaultSize,
43 void OnPaint(wxPaintEvent& event);
54 LOG_POST(
"CSimpleCanvas::OnPaint()");
61glClearColor(1.0f, 0.0f, 0.0f, 0.0f);
62glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
73 wxT("OpenGL Kicker"),
76wxFRAME_NO_TASKBAR|wxBORDER_SIMPLE )
89wxBoxSizer *mainsizer =
newwxBoxSizer( wxVERTICAL );
90wxPanel* p =
newwxPanel(
this,
wxID_ANY, wxDefaultPosition, wxDefaultSize);
92wxBoxSizer *widget_sizer =
newwxBoxSizer( wxHORIZONTAL );
95widget_sizer->Add(
m_Canvas, 0, wxALL|wxEXPAND, 1);
97p->SetSizerAndFit(widget_sizer);
98mainsizer->Add(p, 1, wxALL|wxEXPAND, 1);
100SetSizerAndFit(mainsizer);
CGLCanvas This is the OpenGL widget for our simple dialog.
void OnPaint(wxPaintEvent &event)
CSimpleCanvas(wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0)
GlResetDlg Simple OpenGL view used as a utility class to force a context switch on Cocoa.
void x_InitDialog()
Layout all controls owned by this class.
IMPLEMENT_CLASS(CFloatingFrame, CFloatingFrameBaseClass) const static long kFloatFrameStyle
CFloatingFrame.
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const struct ncbi::grid::netcache::search::fields::SIZE size
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4