Add new functions

This commit is contained in:
JupiterRider 2023-05-09 20:15:53 +02:00
parent 0fdd3be307
commit 896586af0d
4 changed files with 66 additions and 1 deletions

View file

@ -60,6 +60,14 @@ func LoadShaderFromMemory(vsCode string, fsCode string) Shader {
return v
}
// IsShaderReady - Check if a shader is ready
func IsShaderReady(shader Shader) bool {
cshader := shader.cptr()
ret := C.IsShaderReady(*cshader)
v := bool(ret)
return v
}
// UnloadShader - Unload a custom shader from memory
func UnloadShader(shader Shader) {
cshader := shader.cptr()