summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/glwrapper-ogl.h
diff options
context:
space:
mode:
authorEnne Walker <enne.walker@gmail.com>2010-05-14 12:16:19 -0400
committerEnne Walker <enne.walker@gmail.com>2010-05-14 18:18:54 -0400
commit6375f13e84238370564a57711c19cffaf3b3009d (patch)
treeca2f6503f925b04d5946b9c38ba2d2f90446b8ad /crawl-ref/source/glwrapper-ogl.h
parenta7c8d89bd1ae36e219795d8cefb8333bc068bbfc (diff)
downloadcrawl-ref-6375f13e84238370564a57711c19cffaf3b3009d.tar.gz
crawl-ref-6375f13e84238370564a57711c19cffaf3b3009d.zip
Expose GL state to draw call API.
This avoids weird global state setting and then querying in the next function.
Diffstat (limited to 'crawl-ref/source/glwrapper-ogl.h')
-rw-r--r--crawl-ref/source/glwrapper-ogl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/glwrapper-ogl.h b/crawl-ref/source/glwrapper-ogl.h
index a823c7f543..7cafab490a 100644
--- a/crawl-ref/source/glwrapper-ogl.h
+++ b/crawl-ref/source/glwrapper-ogl.h
@@ -13,7 +13,6 @@ public:
// State Manipulation
virtual void set(const GLState& state);
- virtual const GLState& get_state() const { return (m_current_state); }
virtual void pixelstore_unpack_alignment(unsigned int bpp);
virtual void reset_view_for_redraw(float x, float y);
virtual void reset_view_for_resize(coord_def &m_windowsz);
@@ -43,7 +42,8 @@ public:
virtual unsigned int size() const;
virtual void add(const GLWRect &rect);
- virtual void draw(GLW_3VF *pt = NULL, GLW_3VF *ps = NULL);
+ virtual void draw(const GLState &state, GLW_3VF *pt = NULL,
+ GLW_3VF *ps = NULL);
virtual void clear();
protected: