-
-
Save manveru/ff54033030229b1eeb75 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/gl10/gl.go b/gl10/gl.go | |
index a42ae3e..f1bcd30 100644 | |
--- a/gl10/gl.go | |
+++ b/gl10/gl.go | |
@@ -68,6 +68,27 @@ func BlendFunc(sfactor GLenum, dfactor GLenum) { | |
C.glBlendFunc(C.GLenum(sfactor), C.GLenum(dfactor)) | |
} | |
+// GLint gluBuild2DMipmaps( | |
+// GLenum target, | |
+// GLint internalFormat, | |
+// GLsizei width, | |
+// GLsizei height, | |
+// GLenum format, | |
+// GLenum type, | |
+// const void *data | |
+// ) | |
+func Build2DMipmaps(target GLenum, internalFormat GLint, width, height GLsizei, format, kind GLenum, data unsafe.Pointer) GLint { | |
+ return GLint(C.gluBuild2DMipmaps( | |
+ C.GLenum(target), | |
+ C.GLint(internalFormat), | |
+ C.GLsizei(width), | |
+ C.GLsizei(height), | |
+ C.GLenum(format), | |
+ C.GLenum(kind), | |
+ data, | |
+ )) | |
+} | |
+ | |
//void glCallList (GLuint list) | |
func CallList(list GLuint) { | |
C.glCallList(C.GLuint(list)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment