Add more new functions
This commit is contained in:
parent
3fb1258932
commit
bb7c8b3f3b
6 changed files with 118 additions and 0 deletions
|
@ -230,6 +230,14 @@ func LoadModelFromMesh(data Mesh) Model {
|
|||
return v
|
||||
}
|
||||
|
||||
// IsModelReady - Check if a model is ready
|
||||
func IsModelReady(model Model) bool {
|
||||
cmodel := model.cptr()
|
||||
ret := C.IsModelReady(*cmodel)
|
||||
v := bool(ret)
|
||||
return v
|
||||
}
|
||||
|
||||
// UnloadModel - Unload model from memory (RAM and/or VRAM)
|
||||
func UnloadModel(model Model) {
|
||||
cmodel := model.cptr()
|
||||
|
@ -396,6 +404,14 @@ func LoadMaterialDefault() Material {
|
|||
return v
|
||||
}
|
||||
|
||||
// IsMaterialReady - Check if a material is ready
|
||||
func IsMaterialReady(material Material) bool {
|
||||
cmaterial := material.cptr()
|
||||
ret := C.IsMaterialReady(*cmaterial)
|
||||
v := bool(ret)
|
||||
return v
|
||||
}
|
||||
|
||||
// UnloadMaterial - Unload material textures from VRAM
|
||||
func UnloadMaterial(material Material) {
|
||||
cmaterial := material.cptr()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue