MCPcopy
hub / github.com/go-qml/qml / GetTexImage

Method GetTexImage

gl/3.2core/gl.go:927–937  ·  view source on GitHub ↗

https://www.opengl.org/sdk/docs/man3/xhtml/glGetTexImage.xml

(target glbase.Enum, level int, format, gltype glbase.Enum, pixels interface{})

Source from the content-addressed store, hash-verified

925
926// https://www.opengl.org/sdk/docs/man3/xhtml/glGetTexImage.xml
927func (gl *GL) GetTexImage(target glbase.Enum, level int, format, gltype glbase.Enum, pixels interface{}) {
928 var pixels_ptr unsafe.Pointer
929 var pixels_v = reflect.ValueOf(pixels)
930 if pixels != nil && pixels_v.Kind() != reflect.Slice {
931 panic("parameter pixels must be a slice")
932 }
933 if pixels != nil {
934 pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
935 }
936 C.gl3_2core_glGetTexImage(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
937}
938
939// https://www.opengl.org/sdk/docs/man3/xhtml/glGetIntegerv.xml
940func (gl *GL) GetIntegerv(pname glbase.Enum, params []int32) {

Callers

nothing calls this directly

Calls 1

AddrMethod · 0.65

Tested by

no test coverage detected