From 8403dcf857c9cc639e8162edd5d4df4af07274bc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 26 Mar 2011 05:07:12 +0200 Subject: Precalculation vertexes for improving draw speed. Implemented in Software and fast OpenGL backends. Not all controls using this mode because some limitations. Known issue: impossible compile without opengl. Will be fixed in next commits. --- src/openglgraphics.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/openglgraphics.h') diff --git a/src/openglgraphics.h b/src/openglgraphics.h index 0eaaf0f18..c06f36228 100644 --- a/src/openglgraphics.h +++ b/src/openglgraphics.h @@ -91,6 +91,11 @@ class OpenGLGraphics : public Graphics int x, int y, int w, int h, int scaledWidth, int scaledHeight); + void calcImagePattern(GraphicsVertexes* vert, Image *image, + int x, int y, int w, int h); + + void drawImagePattern2(GraphicsVertexes *vert, Image *image); + void updateScreen(); void _beginDraw(); @@ -115,8 +120,14 @@ class OpenGLGraphics : public Graphics void drawQuadArrayfi(int size); + void drawQuadArrayfi(GLint *intVertArray, GLfloat *floatTexArray, + int size); + void drawQuadArrayii(int size); + void drawQuadArrayii(GLint *intVertArray, GLint *intTexArray, + int size); + void drawLineArrayi(int size); void drawLineArrayf(int size); -- cgit v1.2.3-60-g2f50