diff options
author | Fabian Wickborn <fabian@wickborn.net> | 2014-01-22 21:24:52 +0100 |
---|---|---|
committer | Fabian Wickborn <fabian.wickborn@diamond-air.at> | 2014-01-22 21:24:52 +0100 |
commit | 348068a788706e915d25df216d9db5f0f39b24d4 (patch) | |
tree | c4d80a0bbd9999915847b2689f9ccba009115315 | |
parent | fd7f414b17bd1d2f6046353008f21e3a2650677a (diff) | |
download | gl-348068a788706e915d25df216d9db5f0f39b24d4.tar.gz |
Added function glGetCompressedTexImage and a constant
-rw-r--r-- | gl_defs.go | 1 | ||||
-rw-r--r-- | texture.go | 5 |
2 files changed, 6 insertions, 0 deletions
@@ -201,6 +201,7 @@ const ( COMPRESSED_RGBA_S3TC_DXT3_EXT = C.GL_COMPRESSED_RGBA_S3TC_DXT3_EXT COMPRESSED_RGBA_S3TC_DXT5_EXT = C.GL_COMPRESSED_RGBA_S3TC_DXT5_EXT COMPRESSED_RGB = C.GL_COMPRESSED_RGB + COMPRESSED_RGB_S3TC_DXT1_EXT = C.GL_COMPRESSED_RGB_S3TC_DXT1_EXT COMPRESSED_RG_RGTC2 = C.GL_COMPRESSED_RG_RGTC2 COMPRESSED_RG = C.GL_COMPRESSED_RG COMPRESSED_SIGNED_RED_RGTC1 = C.GL_COMPRESSED_SIGNED_RED_RGTC1 @@ -96,6 +96,11 @@ func CompressedTexImage2D(target GLenum, level int, internalformat GLenum, width C.GLsizei(width), C.GLsizei(height), C.GLint(border), C.GLsizei(imagesize), ptr(data)) } +//void glGetCompressedTexImage( GLenum target, GLint lod, GLvoid *img ) +func GetCompressedTexImage(target GLenum, lod int, data interface{}) { + C.glGetCompressedTexImage(C.GLenum(target), C.GLint(lod), ptr(data)) +} + //void glTexImage3D (GLenum target, int level, int internalformat, int width, int height, int depth, int border, GLenum format, GLenum type, const GLvoid *pixels) func TexImage3D(target GLenum, level int, internalformat int, width, height, depth int, border int, format, typ GLenum, pixels interface{}) { C.glTexImage3D(C.GLenum(target), C.GLint(level), C.GLint(internalformat), |