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/opengl1graphics.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/opengl1graphics.h')
-rw-r--r-- | src/opengl1graphics.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/opengl1graphics.h b/src/opengl1graphics.h index 04555e589..0c29ec1ca 100644 --- a/src/opengl1graphics.h +++ b/src/opengl1graphics.h @@ -91,6 +91,16 @@ class OpenGL1Graphics : public Graphics int x, int y, int w, int h, int scaledWidth, int scaledHeight); + bool calcImageRect(GraphicsVertexes* vert, + int x, int y, int w, int h, + Image *topLeft, Image *topRight, + Image *bottomLeft, Image *bottomRight, + Image *top, Image *right, + Image *bottom, Image *left, + Image *center); + + void drawImageRect2(GraphicsVertexes* vert, const ImageRect &imgRect); + void updateScreen(); void _beginDraw(); |