summaryrefslogtreecommitdiff
path: root/src/graphics/OpenGLDrawMethods.inl
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-07-17 22:20:50 (GMT)
committer jacob1 <jfu614@gmail.com>2013-07-17 22:20:50 (GMT)
commitcc887995c0881d728e13fbdfe0757e0fa256bce0 (patch)
tree405817784ccad3e3a65f8e06609d60c5b3b2393c /src/graphics/OpenGLDrawMethods.inl
parenta98fb2092df8edd44917edfb97225f3611219721 (diff)
downloadpowder-cc887995c0881d728e13fbdfe0757e0fa256bce0.zip
powder-cc887995c0881d728e13fbdfe0757e0fa256bce0.tar.gz
fix openGL compiling (most likely), fixes #146
Diffstat (limited to 'src/graphics/OpenGLDrawMethods.inl')
-rw-r--r--src/graphics/OpenGLDrawMethods.inl5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/graphics/OpenGLDrawMethods.inl b/src/graphics/OpenGLDrawMethods.inl
index 52d09da..44dc705 100644
--- a/src/graphics/OpenGLDrawMethods.inl
+++ b/src/graphics/OpenGLDrawMethods.inl
@@ -414,3 +414,8 @@ void PIXELMETHODS_CLASS::draw_image(pixel *img, int x, int y, int w, int h, int
glBindTexture(GL_TEXTURE_2D, 0);
glDisable(GL_TEXTURE_2D);
}
+
+void PIXELMETHODS_CLASS::draw_image(VideoBuffer * vidBuf, int x, int y, int a)
+{
+ draw_image(vidBuf->Buffer, x, y, vidBuf->Width, vidBuf->Height, a);
+}