Merge pull request #479 from sugarvoid/master
Add return value to `LoadTextureDepth`
This commit is contained in:
commit
d58ffe1a3a
2 changed files with 5 additions and 4 deletions
|
@ -621,11 +621,12 @@ func SetVertexAttributeDivisor(index uint32, divisor int32) {
|
|||
}
|
||||
|
||||
// LoadTextureDepth - Load depth texture/renderbuffer (to be attached to fbo)
|
||||
func LoadTextureDepth(width, height int32, useRenderBuffer bool) {
|
||||
func LoadTextureDepth(width, height int32, useRenderBuffer bool) uint32 {
|
||||
cwidth := C.int(width)
|
||||
cheight := C.int(height)
|
||||
cuseRenderBuffer := C.bool(useRenderBuffer)
|
||||
C.rlLoadTextureDepth(cwidth, cheight, cuseRenderBuffer)
|
||||
cid := C.rlLoadTextureDepth(cwidth, cheight, cuseRenderBuffer)
|
||||
return uint32(cid)
|
||||
}
|
||||
|
||||
// LoadFramebuffer - Load an empty framebuffer
|
||||
|
|
|
@ -764,8 +764,8 @@ func SetVertexAttributeDivisor(index uint32, divisor int32) {
|
|||
}
|
||||
|
||||
// LoadTextureDepth - Load depth texture/renderbuffer (to be attached to fbo)
|
||||
func LoadTextureDepth(width, height int32, useRenderBuffer bool) {
|
||||
rlLoadTextureDepth(width, height, useRenderBuffer)
|
||||
func LoadTextureDepth(width, height int32, useRenderBuffer bool) uint32{
|
||||
return rlLoadTextureDepth(width, height, useRenderBuffer)
|
||||
}
|
||||
|
||||
// LoadFramebuffer - Load an empty framebuffer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue