You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
494 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __SDL_OPEN_GL_WIDGET_HEADER__
  2. #define __SDL_OPEN_GL_WIDGET_HEADER__
  3. #include "coreWidget.h"
  4. #include <SDL_opengl.h>
  5. #include <GL/gl.h>
  6. typedef int32_t i32;
  7. typedef uint32_t u32;
  8. typedef int32_t b32;
  9. class sdlOpenGLWidget : public sdlCoreWidget {
  10. private:
  11. SDL_GLContext m_pContext;
  12. protected:
  13. virtual bool create(void);
  14. public:
  15. explicit sdlOpenGLWidget(int x, int y, int w, int h, bool decor = true, sdlCoreWidget* pParent = NULL);
  16. ~sdlOpenGLWidget();
  17. };
  18. #endif