Crevaya 0.1-PreAlpha

MainCanvas Class Reference

Canvas for the Main Window. More...

#include <MainCanvas.h>

List of all members.

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

Detailed Description

Canvas for the Main Window.

It is basically a 2D display rendered in 3D. (For the coolness factor, speed and everything.)


Constructor & Destructor Documentation

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]

Member Function Documentation

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 ( )

Member Data Documentation

bool MainCanvas::isInitialized [private]
::GLfloat MainCanvas::x

The OpenGL system is inititalized on the first paint event. It is flagged here!

::GLfloat MainCanvas::y

The documentation for this class was generated from the following files: