Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Ptr ¶
Ptr takes a slice or pointer (to a singular scalar value or the first element of an array or slice) and returns its GL-compatible address.
For example:
var data []uint8 ... gl.TexImage2D(gl.TEXTURE_2D, ..., gl.UNSIGNED_BYTE, gl.Ptr(&data[0]))
func SliceToPtr ¶
func SliceToPtr[T any](slice []T) *T
SliceToPtr takes a slice and returns its C-compatible pointer.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.