5 #ifndef BALL_VIEW_RENDERING_GLRENDERWINDOW_H
6 #define BALL_VIEW_RENDERING_GLRENDERWINDOW_H
8 #ifndef BALL_COMMON_GLOBAL_H
12 #ifndef BALL_DATATYPE_STRING_H
16 #ifndef BALL_VIEW_RENDERING_RENDERWINDOW_H
20 #ifndef BALL_VIEW_DATATYPE_COLORRGBA_H
24 #ifndef BALL_SYSTEM_MUTEX_H
28 #include <QtOpenGL/qgl.h>
51 virtual bool resize(
const unsigned int width,
const unsigned int height);
52 virtual void refresh();
55 virtual void renderText(
int x,
int y,
const String& text,
const ColorRGBA& color,
Size size = 16);
57 virtual void renderText(
float x,
float y,
float z,
const String& text,
const ColorRGBA& color,
Size size = 16);
63 void unlockGLContext();
69 void paintEvent(QPaintEvent* e);
83 void createTexture(
const unsigned int winWidth,
const unsigned int winHeight);
88 bool errorInGL(GLenum& error);
89 String getGLErrorString(GLenum error);
101 #endif // BALL_VIEW_RENDERING_GLRENDERWINDOW_H