summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/glwrapper.h
diff options
context:
space:
mode:
authorEnne Walker <enne.walker@gmail.com>2010-05-14 18:14:29 -0400
committerEnne Walker <enne.walker@gmail.com>2010-05-14 18:18:55 -0400
commitead0fe703466d4c0045a30d793e9843cc1ef59e5 (patch)
treef8e7aa7e2aae01b8ade0a9d06f2f9f2651d805fc /crawl-ref/source/glwrapper.h
parent451ecf4a58b193f3fb14b78108757ed6b91152fe (diff)
downloadcrawl-ref-ead0fe703466d4c0045a30d793e9843cc1ef59e5.tar.gz
crawl-ref-ead0fe703466d4c0045a30d793e9843cc1ef59e5.zip
Clean up GL code function parameters.
Remove any non-const-reference parameters. Change const pointer parameters to const reference parameters. Change all draw(NULL, NULL) calls to just draw(). Also, refactor to remove pretranslate and prescale parameters from draw calls.
Diffstat (limited to 'crawl-ref/source/glwrapper.h')
-rw-r--r--crawl-ref/source/glwrapper.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/crawl-ref/source/glwrapper.h b/crawl-ref/source/glwrapper.h
index 9ad3f88a76..b73ec84e19 100644
--- a/crawl-ref/source/glwrapper.h
+++ b/crawl-ref/source/glwrapper.h
@@ -167,9 +167,8 @@ public:
virtual void set(const GLState& state) = 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;
- virtual void set_transform(const GLW_3VF *trans = NULL,
- const GLW_3VF *scale = NULL) = 0;
+ virtual void reset_view_for_resize(const coord_def &m_windowsz) = 0;
+ virtual void set_transform(const GLW_3VF &trans, const GLW_3VF &scale) = 0;
virtual void reset_transform() = 0;
// Texture-specific functinos
@@ -205,8 +204,7 @@ public:
virtual void add(const GLWPrim &prim) = 0;
// Draw all the primitives in the buffer.
- virtual void draw(const GLState &state, GLW_3VF *pt = NULL,
- GLW_3VF *ps = NULL) = 0;
+ virtual void draw(const GLState &state) = 0;
// Clear all the primitives from the buffer.
virtual void clear() = 0;