123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- /*!
- * \file include/Window.h
- * \brief Windowing interface
- *
- * \author xythobuz
- */
-
- #ifndef _WINDOW_H_
- #define _WINDOW_H_
-
- #include <ctime>
-
- /*!
- * \brief Windowing interface
- */
- class Window {
- public:
-
- /*!
- * \brief Deconstructs an object of Window
- */
- 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 int initialize() = 0;
-
- virtual void eventHandling() = 0;
-
- virtual void setTextInput(bool on) = 0;
-
- virtual void delay(clock_t ms) = 0;
-
- virtual void swapBuffersGL() = 0;
-
- virtual void setDriver(const char *driver);
-
- virtual unsigned int getWidth();
-
- virtual unsigned int getHeight();
-
- virtual int initializeGL();
-
- virtual void resizeGL();
-
- virtual void glEnter2D();
-
- virtual void glExit2D();
-
- protected:
- bool mInit;
- char *mDriver;
- bool mFullscreen;
- bool mMousegrab;
- unsigned int mWidth;
- unsigned int mHeight;
- };
-
- Window &getWindow();
-
- #endif
|