summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/glwrapper-ogl.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-ogl.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-ogl.h')
-rw-r--r--crawl-ref/source/glwrapper-ogl.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/crawl-ref/source/glwrapper-ogl.h b/crawl-ref/source/glwrapper-ogl.h
index a7902b2dc4..464ba48e28 100644
--- a/crawl-ref/source/glwrapper-ogl.h
+++ b/crawl-ref/source/glwrapper-ogl.h
@@ -15,9 +15,8 @@ public:
virtual void set(const GLState& 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);
- virtual void set_transform(const GLW_3VF *trans = NULL,
- const GLW_3VF *scale = NULL);
+ virtual void reset_view_for_resize(const coord_def &m_windowsz);
+ virtual void set_transform(const GLW_3VF &trans, const GLW_3VF &scale);
virtual void reset_transform();
// Texture-specific functinos
@@ -40,8 +39,7 @@ public:
virtual unsigned int size() const;
virtual void add(const GLWPrim &rect);
- virtual void draw(const GLState &state, GLW_3VF *pt = NULL,
- GLW_3VF *ps = NULL);
+ virtual void draw(const GLState &state);
virtual void clear();
protected: