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
24 lines
494 B
#ifndef __SDL_OPEN_GL_WIDGET_HEADER__
|
|
#define __SDL_OPEN_GL_WIDGET_HEADER__
|
|
|
|
#include "coreWidget.h"
|
|
#include <SDL_opengl.h>
|
|
#include <GL/gl.h>
|
|
|
|
typedef int32_t i32;
|
|
typedef uint32_t u32;
|
|
typedef int32_t b32;
|
|
|
|
class sdlOpenGLWidget : public sdlCoreWidget {
|
|
private:
|
|
SDL_GLContext m_pContext;
|
|
protected:
|
|
virtual bool create(void);
|
|
public:
|
|
explicit sdlOpenGLWidget(int x, int y, int w, int h, bool decor = true, sdlCoreWidget* pParent = NULL);
|
|
~sdlOpenGLWidget();
|
|
|
|
};
|
|
|
|
|
|
#endif
|