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

Method TexImage1D

gl/3.2core/gl.go:1092–1102  ·  view source on GitHub ↗

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

(target glbase.Enum, level int, internalFormat int32, width, border int, format, gltype glbase.Enum, pixels interface{})

Source from the content-addressed store, hash-verified

1090
1091// https://www.opengl.org/sdk/docs/man3/xhtml/glTexImage1D.xml
1092func (gl *GL) TexImage1D(target glbase.Enum, level int, internalFormat int32, width, border int, format, gltype glbase.Enum, pixels interface{}) {
1093 var pixels_ptr unsafe.Pointer
1094 var pixels_v = reflect.ValueOf(pixels)
1095 if pixels != nil && pixels_v.Kind() != reflect.Slice {
1096 panic("parameter pixels must be a slice")
1097 }
1098 if pixels != nil {
1099 pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
1100 }
1101 C.gl3_2core_glTexImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
1102}
1103
1104// https://www.opengl.org/sdk/docs/man3/xhtml/glTexParameteriv.xml
1105func (gl *GL) TexParameteriv(target, pname glbase.Enum, params []int32) {

Callers

nothing calls this directly

Calls 1

AddrMethod · 0.65

Tested by

no test coverage detected