feat: update rtextures.go to have the func LoadTextureCubemap.

This commit is contained in:
Snowminx 2023-12-24 12:40:03 -08:00 committed by GitHub
parent 48309e2407
commit 4bb9631420
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -184,6 +184,13 @@ func LoadRenderTexture(width, height int32) RenderTexture2D {
return v
}
// LoadTextureCubemap - Loads a texture for a cubemap using given layout
func LoadTextureCubemap(image Image, layout int32) Texture2D {
ret := C.LoadTextureCubemap(image, layout)
v := newTexture2DFromPointer(unsafe.Pointer(&ret))
return v
}
// UnloadImage - Unload image from CPU memory (RAM)
func UnloadImage(image *Image) {
cimage := image.cptr()