Crevaya 0.1-PreAlpha
|
Canvas for the Main Window. More...
#include <MainCanvas.h>
Public Member Functions | |
MainCanvas (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxString &name=_T("OpenGLCanvas")) | |
virtual | ~MainCanvas () |
void | InitGL () |
void | SetupLighting () |
void | RenderCoordinateSystem (void) |
void | Render () |
Public Attributes | |
::GLfloat | x |
The OpenGL system is inititalized on the first paint event. It is flagged here! | |
::GLfloat | y |
Protected Member Functions | |
void | OnPaint (wxPaintEvent &WXUNUSED(event)) |
void | OnSize (wxSizeEvent &event) |
void | OnEraseBackground (wxEraseEvent &WXUNUSED(event)) |
void | OnEnterWindow (wxMouseEvent &WXUNUSED(event)) |
void | OnMouseEvent (wxMouseEvent &event) |
void | OnTimer (wxTimerEvent &event) |
Private Attributes | |
bool | isInitialized |
Canvas for the Main Window.
It is basically a 2D display rendered in 3D. (For the coolness factor, speed and everything.)
MainCanvas::MainCanvas | ( | wxWindow * | parent, |
wxWindowID | id = wxID_ANY , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = 0 , |
||
const wxString & | name = _T("OpenGLCanvas") |
||
) |
MainCanvas::~MainCanvas | ( | ) | [virtual] |
void MainCanvas::InitGL | ( | ) |
void MainCanvas::OnEnterWindow | ( | wxMouseEvent & | WXUNUSEDevent | ) | [protected] |
void MainCanvas::OnEraseBackground | ( | wxEraseEvent & | WXUNUSEDevent | ) | [protected] |
void MainCanvas::OnMouseEvent | ( | wxMouseEvent & | event | ) | [protected] |
void MainCanvas::OnPaint | ( | wxPaintEvent & | WXUNUSEDevent | ) | [protected] |
void MainCanvas::OnSize | ( | wxSizeEvent & | event | ) | [protected] |
void MainCanvas::OnTimer | ( | wxTimerEvent & | event | ) | [protected] |
void MainCanvas::Render | ( | ) |
void MainCanvas::RenderCoordinateSystem | ( | void | ) |
void MainCanvas::SetupLighting | ( | ) |
bool MainCanvas::isInitialized [private] |
::GLfloat MainCanvas::x |
The OpenGL system is inititalized on the first paint event. It is flagged here!
::GLfloat MainCanvas::y |