Skip to content

Instantly share code, notes, and snippets.

@manveru
Created May 28, 2010 11:33
Show Gist options
  • Save manveru/ff54033030229b1eeb75 to your computer and use it in GitHub Desktop.
Save manveru/ff54033030229b1eeb75 to your computer and use it in GitHub Desktop.
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