diff options
author | Ixtli <cg@325i.org> | 2010-03-01 17:53:40 +0900 |
---|---|---|
committer | Enne Walker <ennewalker@users.sourceforge.net> | 2010-04-24 10:19:39 -0400 |
commit | 6af04251acffdbe5f4248b40a2fbb8a855d2dfc7 (patch) | |
tree | b0dd7123f0556b1ed61207fb0e34a0d3396d20c6 /crawl-ref/source/tilebuf.h | |
parent | dd974ddf4720629a54baf97d6dafc22cc50d5cd6 (diff) | |
download | crawl-ref-6af04251acffdbe5f4248b40a2fbb8a855d2dfc7.tar.gz crawl-ref-6af04251acffdbe5f4248b40a2fbb8a855d2dfc7.zip |
Integrated glwrapper into tilebuf.h/cc and tilereg.cc
Diffstat (limited to 'crawl-ref/source/tilebuf.h')
-rw-r--r-- | crawl-ref/source/tilebuf.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/tilebuf.h b/crawl-ref/source/tilebuf.h index 998913e2af..b7089a0edb 100644 --- a/crawl-ref/source/tilebuf.h +++ b/crawl-ref/source/tilebuf.h @@ -82,7 +82,7 @@ class VertBuffer : public std::vector<V> public: typedef V Vert; - VertBuffer(const GenericTexture *tex, int prim); + VertBuffer(const GenericTexture *tex, drawing_modes prim); // Vertices are fat, so to avoid an extra copy of all the data members, // pre-construct the vertex and return a reference to it. @@ -95,7 +95,7 @@ protected: void init_state(); const GenericTexture *m_tex; - int m_prim; + drawing_modes m_prim; GLState m_state; }; @@ -189,7 +189,7 @@ public: // template implementation template<class V> -inline VertBuffer<V>::VertBuffer(const GenericTexture *tex, int prim) : +inline VertBuffer<V>::VertBuffer(const GenericTexture *tex, drawing_modes prim) : m_tex(tex), m_prim(prim) { init_state(); |