7 #ifndef CAFU_MAIN_CANVAS_HPP_INCLUDED
8 #define CAFU_MAIN_CANVAS_HPP_INCLUDED
10 #include "Util/Util.hpp"
12 #include "wx/glcanvas.h"
26 namespace cf {
namespace GuiSys {
class GuiResourcesT; } }
27 namespace cf {
class ConsoleI; }
44 enum InitStateT { INIT_REQUIRED, INIT_FAILED, INIT_SUCCESS };
45 enum LastMousePosT { IN_CLIENT_3D_GUI, IN_OTHER_2D_GUI };
48 void TakeScreenshot()
const;
50 void OnPaint(wxPaintEvent& PE);
51 void OnSize(wxSizeEvent& SE);
52 void OnIdle(wxIdleEvent& IE);
54 void OnMouseMove (wxMouseEvent& ME);
55 void OnMouseWheel(wxMouseEvent& ME);
56 void OnLMouseDown(wxMouseEvent& ME);
57 void OnLMouseUp (wxMouseEvent& ME);
58 void OnRMouseDown(wxMouseEvent& ME);
59 void OnRMouseUp (wxMouseEvent& ME);
61 void OnKeyDown(wxKeyEvent& KE);
62 void OnKeyUp (wxKeyEvent& KE);
63 void OnKeyChar(wxKeyEvent& KE);
67 InitStateT m_InitState;
68 wxGLContext* m_GLContext;
69 HMODULE m_RendererDLL;
72 HMODULE m_SoundSysDLL;
79 LastMousePosT m_LastMousePos;
~MainCanvasT()
The destructor.
Definition: MainCanvas.cpp:121
This class represents the Cafu main OpenGL 3D canvas.
Definition: MainCanvas.hpp:31
The server, like the client, is a state machine.
Definition: Server.hpp:30
This class is an interface to the application console.
Definition: Console.hpp:18
A platform independent timer class that allows to measure the time passed since its construction or t...
Definition: Util.hpp:24
Definition: MainCanvas.cpp:44
This class encapsulates information about a game.
Definition: GameInfo.hpp:14
Definition: Client.hpp:24
This class is used for managing model instances.
Definition: ModelManager.hpp:31
This class represents the Cafu main frame.
Definition: MainFrame.hpp:18
MainCanvasT(MainFrameT *Parent, const GameInfoT &GameInfo)
The constructor.
Definition: MainCanvas.cpp:96
This class manages and provides resources (fonts and models) for GuiImplT instances.
Definition: GuiResources.hpp:26