From 4bb9631420b2745938d99071be2ff7956ece4284 Mon Sep 17 00:00:00 2001 From: Snowminx Date: Sun, 24 Dec 2023 12:40:03 -0800 Subject: [PATCH] feat: update rtextures.go to have the func LoadTextureCubemap. --- raylib/rtextures.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/raylib/rtextures.go b/raylib/rtextures.go index 6945a83..afbc4c3 100644 --- a/raylib/rtextures.go +++ b/raylib/rtextures.go @@ -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()