Update C sources, add new functions and rename package to
This commit is contained in:
parent
391c25482d
commit
08aa518a46
156 changed files with 34542 additions and 19573 deletions
|
@ -1,4 +1,4 @@
|
|||
package raylib
|
||||
package rl
|
||||
|
||||
/*
|
||||
#include "raylib.h"
|
||||
|
@ -201,11 +201,11 @@ func UnloadMesh(mesh *Mesh) {
|
|||
}
|
||||
|
||||
// ExportMesh - Export mesh as an OBJ file
|
||||
func ExportMesh(fileName string, mesh Mesh) {
|
||||
func ExportMesh(mesh Mesh, fileName string) {
|
||||
cfileName := C.CString(fileName)
|
||||
defer C.free(unsafe.Pointer(cfileName))
|
||||
cmesh := mesh.cptr()
|
||||
C.ExportMesh(cfileName, *cmesh)
|
||||
C.ExportMesh(*cmesh, cfileName)
|
||||
}
|
||||
|
||||
// GenMeshPlane - Generate plane mesh (with subdivisions)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue