mirror of
https://github.com/bloeys/assimp-go.git
synced 2025-12-29 08:28:20 +00:00
Support apple silicon
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@ -15,4 +15,6 @@
|
|||||||
vendor/
|
vendor/
|
||||||
*.obj
|
*.obj
|
||||||
*.fbx
|
*.fbx
|
||||||
*.glb
|
*.glb
|
||||||
|
!libassimp_darwin_arm64.dylib
|
||||||
|
.DS_Store
|
||||||
@ -1,12 +1,13 @@
|
|||||||
package asig
|
package asig
|
||||||
|
|
||||||
/*
|
/*
|
||||||
//Note: We don't link directly to libIrrXML and libzlib libraries in `./libs`, but they are required by assimp. Removing them will error on compilation.
|
|
||||||
#cgo CFLAGS: -I .
|
#cgo CFLAGS: -I .
|
||||||
#cgo LDFLAGS: -L ./libs -l assimp_windows_amd64
|
#cgo LDFLAGS: -L libs
|
||||||
|
#cgo windows,amd64 LDFLAGS: -l assimp_windows_amd64
|
||||||
|
#cgo darwin,arm64 LDFLAGS: -l assimp_darwin_arm64
|
||||||
|
|
||||||
#include <wrap.cxx>
|
#include "wrap.c"
|
||||||
#include <stdlib.h> //Needed for C.free
|
#include <stdlib.h>
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
import (
|
import (
|
||||||
|
|||||||
BIN
asig/libs/libassimp_darwin_arm64.dylib
Executable file
BIN
asig/libs/libassimp_darwin_arm64.dylib
Executable file
Binary file not shown.
@ -2,26 +2,12 @@ package asig
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
#cgo CFLAGS: -I .
|
#cgo CFLAGS: -I .
|
||||||
#cgo LDFLAGS: -L ./libs -l assimp_windows_amd64 -l IrrXML_windows_amd64 -l zlib_windows_amd64
|
#cgo LDFLAGS: -L libs
|
||||||
|
#cgo windows,amd64 LDFLAGS: -l assimp_windows_amd64
|
||||||
|
#cgo darwin,arm64 LDFLAGS: -l assimp_darwin_arm64
|
||||||
|
|
||||||
#include <stdlib.h> //Needed for C.free
|
#include "wrap.c"
|
||||||
|
#include <stdlib.h>
|
||||||
#include <assimp/scene.h>
|
|
||||||
|
|
||||||
//Functions
|
|
||||||
unsigned int aiGetMaterialTextureCount(const struct aiMaterial* pMat, enum aiTextureType type);
|
|
||||||
|
|
||||||
enum aiReturn aiGetMaterialTexture(
|
|
||||||
const struct aiMaterial* mat,
|
|
||||||
enum aiTextureType type,
|
|
||||||
unsigned int index,
|
|
||||||
struct aiString* path,
|
|
||||||
enum aiTextureMapping* mapping,
|
|
||||||
unsigned int* uvindex,
|
|
||||||
ai_real* blend,
|
|
||||||
enum aiTextureOp* op,
|
|
||||||
enum aiTextureMapMode* mapmode,
|
|
||||||
unsigned int* flags);
|
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
import (
|
import (
|
||||||
|
|||||||
Reference in New Issue
Block a user