diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-03-26 05:07:12 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-03-26 05:50:44 +0200 |
commit | 8403dcf857c9cc639e8162edd5d4df4af07274bc (patch) | |
tree | 2f127213e0df4691b06c549a8f20b3d5225b9220 /src/openglgraphics.h | |
parent | fc24490f1ecd186f3c294915fadee62c3053d841 (diff) | |
download | ManaVerse-8403dcf857c9cc639e8162edd5d4df4af07274bc.tar.gz ManaVerse-8403dcf857c9cc639e8162edd5d4df4af07274bc.tar.bz2 ManaVerse-8403dcf857c9cc639e8162edd5d4df4af07274bc.tar.xz ManaVerse-8403dcf857c9cc639e8162edd5d4df4af07274bc.zip |
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.
Diffstat (limited to 'src/openglgraphics.h')
-rw-r--r-- | src/openglgraphics.h | 11 |
1 files changed, 11 insertions, 0 deletions
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); |