DrawBillboard: size is scale
This commit is contained in:
parent
47bd3b9420
commit
22bfaf1652
2 changed files with 6 additions and 6 deletions
|
@ -420,7 +420,7 @@ var drawModelEx func(model uintptr, position uintptr, rotationAxis uintptr, rota
|
|||
var drawModelWires func(model uintptr, position uintptr, scale float32, tint uintptr)
|
||||
var drawModelWiresEx func(model uintptr, position uintptr, rotationAxis uintptr, rotationAngle float32, scale uintptr, tint uintptr)
|
||||
var drawBoundingBox func(box uintptr, col uintptr)
|
||||
var drawBillboard func(camera uintptr, texture uintptr, position uintptr, size float32, tint uintptr)
|
||||
var drawBillboard func(camera uintptr, texture uintptr, position uintptr, scale float32, tint uintptr)
|
||||
var drawBillboardRec func(camera uintptr, texture uintptr, source uintptr, position uintptr, size uintptr, tint uintptr)
|
||||
var drawBillboardPro func(camera uintptr, texture uintptr, source uintptr, position uintptr, up uintptr, size uintptr, origin uintptr, rotation float32, tint uintptr)
|
||||
var uploadMesh func(mesh *Mesh, dynamic bool)
|
||||
|
@ -3292,8 +3292,8 @@ func DrawBoundingBox(box BoundingBox, col color.RGBA) {
|
|||
}
|
||||
|
||||
// DrawBillboard - Draw a billboard texture
|
||||
func DrawBillboard(camera Camera, texture Texture2D, position Vector3, size float32, tint color.RGBA) {
|
||||
drawBillboard(uintptr(unsafe.Pointer(&camera)), uintptr(unsafe.Pointer(&texture)), uintptr(unsafe.Pointer(&position)), size, *(*uintptr)(unsafe.Pointer(&tint)))
|
||||
func DrawBillboard(camera Camera, texture Texture2D, position Vector3, scale float32, tint color.RGBA) {
|
||||
drawBillboard(uintptr(unsafe.Pointer(&camera)), uintptr(unsafe.Pointer(&texture)), uintptr(unsafe.Pointer(&position)), scale, *(*uintptr)(unsafe.Pointer(&tint)))
|
||||
}
|
||||
|
||||
// DrawBillboardRec - Draw a billboard texture defined by source
|
||||
|
|
|
@ -339,13 +339,13 @@ func DrawBoundingBox(box BoundingBox, col color.RGBA) {
|
|||
}
|
||||
|
||||
// DrawBillboard - Draw a billboard texture
|
||||
func DrawBillboard(camera Camera, texture Texture2D, center Vector3, size float32, tint color.RGBA) {
|
||||
func DrawBillboard(camera Camera, texture Texture2D, center Vector3, scale float32, tint color.RGBA) {
|
||||
ccamera := camera.cptr()
|
||||
ctexture := texture.cptr()
|
||||
ccenter := center.cptr()
|
||||
csize := (C.float)(size)
|
||||
cscale := (C.float)(scale)
|
||||
ctint := colorCptr(tint)
|
||||
C.DrawBillboard(*ccamera, *ctexture, *ccenter, csize, *ctint)
|
||||
C.DrawBillboard(*ccamera, *ctexture, *ccenter, cscale, *ctint)
|
||||
}
|
||||
|
||||
// DrawBillboardRec - Draw a billboard texture defined by sourceRec
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue