update mac build to latest github version

This commit is contained in:
electronstudio 2019-11-22 16:20:29 +00:00
parent a43b0fd9ea
commit 92dcc91b82
11 changed files with 3417 additions and 2698 deletions

View file

@ -20,15 +20,15 @@ InitWindow(screenWidth, screenHeight, b"raylib [models] example - obj model load
# Define the camera to look into our 3d world
camera = ffi.new("struct Camera3D *")
camera.position = [ 8.0, 8.0, 8.0 ] # Camera position
camera.position = [ 50.0, 50.0, 50.0 ] # Camera position
camera.target = [ 0.0, 2.5, 0.0 ] # Camera looking at point
camera.up = [ 0.0, 1.0, 0.0 ] # Camera up vector (rotation towards target)
camera.fovy = 45.0 # Camera field-of-view Y
camera.type = CAMERA_PERSPECTIVE # Camera mode type
model = LoadModel(b"resources/models/castle.obj") # Load OBJ model
model = LoadModel(b"resources/models/monkey/monkey4.gltf") # Load OBJ model
texture = LoadTexture(b"resources/models/castle_diffuse.png") # Load model texture
model.materials.maps[MAP_DIFFUSE].texture = texture # Set map diffuse texture
#model.materials.maps[MAP_DIFFUSE].texture = texture # Set map diffuse texture
position = [ 0.0, 0.0, 0.0 ] # Set model position
SetTargetFPS(60) # Set our game to run at 60 frames-per-second