Bundle raylib C sources and switch to develop branch

This commit is contained in:
Milan Nikolic 2017-01-28 17:19:06 +01:00
parent e2f3bed444
commit f89d1164a5
36 changed files with 54932 additions and 193 deletions

View file

@ -103,13 +103,6 @@ func GetDefaultShader() Shader {
return v
}
// Get standard shader
func GetStandardShader() Shader {
ret := C.GetStandardShader()
v := NewShaderFromPointer(unsafe.Pointer(&ret))
return v
}
// Get default texture
func GetDefaultTexture() *Texture2D {
ret := C.GetDefaultTexture()
@ -187,22 +180,6 @@ func EndBlendMode() {
C.EndBlendMode()
}
// Create a new light, initialize it and add to pool
func CreateLight(_type LightType, position Vector3, diffuse Color) Light {
c_type := (C.int)(_type)
cposition := position.cptr()
cdiffuse := diffuse.cptr()
ret := C.CreateLight(c_type, *cposition, *cdiffuse)
v := NewLightFromPointer(unsafe.Pointer(ret))
return v
}
// Destroy a light and take it out of the list
func DestroyLight(light Light) {
clightdata := NewLightData(light)
C.DestroyLight(clightdata.cptr())
}
// Init VR device
func InitVrDevice(vdDevice VrDevice) {
cvdDevice := (C.int)(vdDevice)