12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- /*!
- * \file include/Window.h
- * \brief Windowing interface
- *
- * \author xythobuz
- */
-
- #ifndef _WINDOW_H_
- #define _WINDOW_H_
-
- /*!
- * \brief Windowing interface
- */
- class Window {
- public:
-
- virtual ~Window() {}
-
- virtual void setSize(unsigned int width, unsigned int height) = 0;
-
- virtual void setFullscreen(bool fullscreen) = 0;
-
- virtual void setMousegrab(bool grab) = 0;
-
- virtual bool getMousegrab() = 0;
-
- virtual int initialize() = 0;
-
- virtual void eventHandling() = 0;
-
- virtual void setTextInput(bool on) = 0;
-
- virtual bool getTextInput() = 0;
-
- virtual void delay(unsigned int ms) = 0;
-
- virtual void swapBuffersGL() = 0;
-
- virtual unsigned int getWidth();
-
- virtual unsigned int getHeight();
-
- virtual int initializeGL();
-
- virtual void resizeGL();
-
- virtual void glEnter2D();
-
- virtual void glExit2D();
-
- virtual void lookAt(float eyeX, float eyeY, float eyeZ,
- float lookAtX, float lookAtY, float lookAtZ,
- float upX, float upY, float upZ);
-
- protected:
- bool mInit;
- bool mFullscreen;
- bool mMousegrab;
- bool mTextInput;
- unsigned int mWidth;
- unsigned int mHeight;
- };
-
- Window &getWindow();
-
- #endif
|