summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/glwrapper.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.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.h')
-rw-r--r--crawl-ref/source/glwrapper.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/glwrapper.h b/crawl-ref/source/glwrapper.h
index 10b506c6d0..6d4c6b7363 100644
--- a/crawl-ref/source/glwrapper.h
+++ b/crawl-ref/source/glwrapper.h
@@ -171,7 +171,6 @@ public:
// State Manipulation
virtual void set(const GLState& state) = 0;
- virtual const GLState& get_state() const = 0;
virtual void pixelstore_unpack_alignment(unsigned int bpp) = 0;
virtual void reset_view_for_redraw(float x, float y) = 0;
virtual void reset_view_for_resize(coord_def &m_windowsz) = 0;
@@ -214,7 +213,8 @@ public:
virtual void add(const GLWRect &rect) = 0;
// Draw all the primitives in the buffer.
- virtual void draw(GLW_3VF *pt = NULL, GLW_3VF *ps = NULL) = 0;
+ virtual void draw(const GLState &state, GLW_3VF *pt = NULL,
+ GLW_3VF *ps = NULL) = 0;
// Clear all the primitives from the buffer.
virtual void clear() = 0;