diff options
author | Ixtli <cg@325i.org> | 2010-03-02 19:58:33 +0900 |
---|---|---|
committer | Enne Walker <ennewalker@users.sourceforge.net> | 2010-04-24 10:19:39 -0400 |
commit | 477c89dcc51038529158d7b901c6501485be43a0 (patch) | |
tree | 8c24526438dbc75ebdbccb81c60a404b06993256 /crawl-ref/source/glwrapper.h | |
parent | 6aaab96c487dbf6aadd43df45c5b6b4ed3e8cc9a (diff) | |
download | crawl-ref-477c89dcc51038529158d7b901c6501485be43a0.tar.gz crawl-ref-477c89dcc51038529158d7b901c6501485be43a0.zip |
Removed direct calls to opengl from tilefont and updated glwrapper accordingly.
Diffstat (limited to 'crawl-ref/source/glwrapper.h')
-rw-r--r-- | crawl-ref/source/glwrapper.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/glwrapper.h b/crawl-ref/source/glwrapper.h index 5ff879fd09..dbe2cfa73d 100644 --- a/crawl-ref/source/glwrapper.h +++ b/crawl-ref/source/glwrapper.h @@ -2,6 +2,7 @@ #define GLWRAPPER_H #include <stdlib.h> // For size_t +#include <vector> // for std::vector #ifdef USE_TILE #ifdef USE_GL @@ -47,6 +48,7 @@ public: static void setModelviewMatrixMode(); static void translatef(float x, float y, float z); static void scalef(float x, float y, float z); + static void loadIdentity(); static void clearBuffers(); // Drawing Quads @@ -65,6 +67,13 @@ public: static void drawLinePCVert( long unsigned int size, size_t count, const void *vert_pointer, const void *color_pointer); + // Drawing tiles-specific objects + static void drawTextBlock(unsigned int x_pos, unsigned int y_pos, + long unsigned int stride, bool drop_shadow, size_t count, + const void *pos_verts, const void *tex_verts, const void *color_verts); + static void drawColorBox(long unsigned int stride, size_t count, + const void *pos_verts, const void *color_verts); + // Debug #ifdef DEBUG static bool _valid(int num_verts, drawing_modes mode); |