Add LoadTextureDepth

This commit is contained in:
Milan Nikolic 2023-11-08 21:00:58 +01:00
parent 8cadac2fbc
commit d269b291f2
No known key found for this signature in database
GPG key ID: 9229D0EAA3AA4E75

View file

@ -896,6 +896,14 @@ func SetVertexAttributeDivisor(index uint32, divisor int32) {
C.rlSetVertexAttributeDivisor(cindex, cdivisor) C.rlSetVertexAttributeDivisor(cindex, cdivisor)
} }
// LoadTextureDepth - Load depth texture/renderbuffer (to be attached to fbo)
func LoadTextureDepth(width, height int32, useRenderBuffer bool) {
cwidth := C.int(width)
cheight := C.int(height)
cuseRenderBuffer := C.bool(useRenderBuffer)
C.rlLoadTextureDepth(cwidth, cheight, cuseRenderBuffer)
}
// LoadFramebuffer - Load an empty framebuffer // LoadFramebuffer - Load an empty framebuffer
func LoadFramebuffer(width int32, height int32) uint32 { func LoadFramebuffer(width int32, height int32) uint32 {
cwidth := C.int(width) cwidth := C.int(width)