summaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-19 17:15:34 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-19 17:15:34 +0300
commit17f8465e4358d43accfb0b486b87c18e7dedd83b (patch)
tree6fb0c343558ed33e5b80129076f3e76f50ec76e9 /src/render
parent74de6dfb0178032d5bc0a4ccf53366fbe5e1078b (diff)
downloadmv-17f8465e4358d43accfb0b486b87c18e7dedd83b.tar.gz
mv-17f8465e4358d43accfb0b486b87c18e7dedd83b.tar.bz2
mv-17f8465e4358d43accfb0b486b87c18e7dedd83b.tar.xz
mv-17f8465e4358d43accfb0b486b87c18e7dedd83b.zip
Add functions from OpenGL extension GL_ARB_copy_image.
Diffstat (limited to 'src/render')
-rw-r--r--src/render/mgl.cpp1
-rw-r--r--src/render/mgl.h1
-rw-r--r--src/render/mgltypes.h6
3 files changed, 8 insertions, 0 deletions
diff --git a/src/render/mgl.cpp b/src/render/mgl.cpp
index 9818b7f04..336a5f71b 100644
--- a/src/render/mgl.cpp
+++ b/src/render/mgl.cpp
@@ -96,6 +96,7 @@ defName(glIsBuffer);
defName(glVertexAttribIFormat);
defName(glVertexAttribIPointer);
defName(glInvalidateTexImage);
+defName(glCopyImageSubData);
#ifdef WIN32
defName(wglGetExtensionsString);
diff --git a/src/render/mgl.h b/src/render/mgl.h
index dbd9a4b38..9cb6ca72f 100644
--- a/src/render/mgl.h
+++ b/src/render/mgl.h
@@ -99,6 +99,7 @@ defNameE(glIsBuffer);
defNameE(glVertexAttribIFormat);
defNameE(glVertexAttribIPointer);
defNameE(glInvalidateTexImage);
+defNameE(glCopyImageSubData);
#ifdef WIN32
defNameE(wglGetExtensionsString);
diff --git a/src/render/mgltypes.h b/src/render/mgltypes.h
index 14b3b5760..133489d4e 100644
--- a/src/render/mgltypes.h
+++ b/src/render/mgltypes.h
@@ -145,6 +145,12 @@ typedef void (APIENTRY *glVertexAttribIFormat_t) (GLuint attribindex,
typedef void (APIENTRY *glVertexAttribIPointer_t) (GLuint index, GLint size,
GLenum type, GLsizei stride, const GLvoid * pointer);
typedef void (APIENTRY *glInvalidateTexImage_t) (GLuint texture, GLint level);
+typedef void (APIENTRY *glCopyImageSubData_t) (GLuint srcName,
+ GLenum srcTarget, GLint srcLevel,
+ GLint srcX, GLint srcY, GLint srcZ,
+ GLuint dstName, GLenum dstTarget, GLint dstLevel,
+ GLint dstX, GLint dstY, GLint dstZ,
+ GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
// callback
typedef void (APIENTRY *GLDEBUGPROC_t) (GLenum source, GLenum type, GLuint id,