Robotran C Documentation
MbsWindowManager.hh
Go to the documentation of this file.
1 
8 #ifndef _MBS_WINDOW_MANAGER_HH_
9 #define _MBS_WINDOW_MANAGER_HH_
10 
11 
12 namespace OpenGLMbs{
13 
14 // forward declaration
15 class MbsViewPoint;
16 class MbsWorld3D;
17 
18 
23 {
24  public:
25 
27  virtual ~MbsWindowManager(){}
28 
30  virtual void Init(MbsWorld3D* world, int x_width, int y_width, int multi_samp) = 0;
31 
33  virtual void SwapBuffers() = 0;
34 
36  virtual double GetTime() = 0;
37 
39  virtual void Terminate() = 0;
40 
42  virtual int CheckClose() = 0;
43 
47  virtual bool Update() = 0;
48 
50  virtual void PollEvents() = 0;
51 
53  virtual void UpdateViewPoint(MbsViewPoint *curVp) = 0;
54 
56  virtual int GetXWidth() = 0;
57 
59  virtual int GetYWidth() = 0;
60 };
61 
62 
63 } // close namespace
64 
65 
66 
67 #endif //_MBS_WINDOW_MANAGER_HH_
OpenGLMbs::MbsWindowManager::CheckClose
virtual int CheckClose()=0
OpenGLMbs
Definition: MpegFrameCaptureOptions.hh:6
OpenGLMbs::MbsWindowManager
MbsWindowManager is an abstract class that defines the functionalities of a window manager.
Definition: MbsWindowManager.hh:22
OpenGLMbs::MbsWindowManager::Update
virtual bool Update()=0
Update the window for the current frame Return true if the windows size has changed since the previou...
OpenGLMbs::MbsWindowManager::Init
virtual void Init(MbsWorld3D *world, int x_width, int y_width, int multi_samp)=0
Init the current MbsWindowManager.
OpenGLMbs::MbsWindowManager::UpdateViewPoint
virtual void UpdateViewPoint(MbsViewPoint *curVp)=0
OpenGLMbs::MbsWindowManager::GetYWidth
virtual int GetYWidth()=0
get the width along the X axis (in pixels)
OpenGLMbs::MbsWindowManager::GetXWidth
virtual int GetXWidth()=0
get the width along the X axis (in pixels)
OpenGLMbs::MbsWindowManager::SwapBuffers
virtual void SwapBuffers()=0
OpenGLMbs::MbsWindowManager::PollEvents
virtual void PollEvents()=0
OpenGLMbs::MbsWindowManager::~MbsWindowManager
virtual ~MbsWindowManager()
Destructor.
Definition: MbsWindowManager.hh:27
OpenGLMbs::MbsWindowManager::GetTime
virtual double GetTime()=0
OpenGLMbs::MbsWindowManager::Terminate
virtual void Terminate()=0