summaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-04 17:55:58 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-04 18:01:07 +0300
commitec5b0e17ff735e58de139b7f8ce0598928958bcc (patch)
tree786d6a6497c56136d8d00430fe7d0861b9c1cd06 /src/render
parent141849d0370607b17103c2dbbb1973a14b8b7554 (diff)
downloadmanaverse-ec5b0e17ff735e58de139b7f8ce0598928958bcc.tar.gz
manaverse-ec5b0e17ff735e58de139b7f8ce0598928958bcc.tar.bz2
manaverse-ec5b0e17ff735e58de139b7f8ce0598928958bcc.tar.xz
manaverse-ec5b0e17ff735e58de139b7f8ce0598928958bcc.zip
Add buffers related OpenGL functions.
Diffstat (limited to 'src/render')
-rw-r--r--src/render/mgl.cpp4
-rw-r--r--src/render/mgl.h9
2 files changed, 13 insertions, 0 deletions
diff --git a/src/render/mgl.cpp b/src/render/mgl.cpp
index efa2f736a..fc6624606 100644
--- a/src/render/mgl.cpp
+++ b/src/render/mgl.cpp
@@ -54,6 +54,10 @@ defName(glDeleteVertexArrays);
defName(glVertexAttribPointer);
defName(glEnableVertexAttribArray);
defName(glDisableVertexAttribArray);
+defName(glGenBuffers);
+defName(glDeleteBuffers);
+defName(glBindBuffer);
+defName(glBufferData);
#ifdef WIN32
defName(wglGetExtensionsString);
diff --git a/src/render/mgl.h b/src/render/mgl.h
index b762eed94..1bc82989b 100644
--- a/src/render/mgl.h
+++ b/src/render/mgl.h
@@ -125,6 +125,11 @@ typedef void (APIENTRY *glVertexAttribPointer_t) (GLuint index, GLint size,
GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
typedef void (APIENTRY *glEnableVertexAttribArray_t) (GLuint index);
typedef void (APIENTRY *glDisableVertexAttribArray_t) (GLuint index);
+typedef void (APIENTRY *glGenBuffers_t) (GLsizei n, GLuint *buffers);
+typedef void (APIENTRY *glDeleteBuffers_t) (GLsizei n, GLuint *buffers);
+typedef void (APIENTRY *glBindBuffer_t) (GLenum target, GLuint buffer);
+typedef void (APIENTRY *glBufferData_t) (GLenum target, GLsizeiptr size,
+ const GLvoid *data, GLenum usage);
// callback
typedef void (APIENTRY *GLDEBUGPROC_t) (GLenum source, GLenum type, GLuint id,
@@ -161,6 +166,10 @@ defNameE(glDeleteVertexArrays);
defNameE(glVertexAttribPointer);
defNameE(glEnableVertexAttribArray);
defNameE(glDisableVertexAttribArray);
+defNameE(glGenBuffers);
+defNameE(glDeleteBuffers);
+defNameE(glBindBuffer);
+defNameE(glBufferData);
#ifdef WIN32
typedef const char* (APIENTRY * wglGetExtensionsString_t) (HDC hdc);