|
@@ -37,17 +37,17 @@ int main(void)
|
|
camera.target = (Vector3){ 0.0f, 0.0f, 0.0f }; // Camera looking at point
|
|
camera.target = (Vector3){ 0.0f, 0.0f, 0.0f }; // Camera looking at point
|
|
camera.up = (Vector3){ 0.0f, 1.0f, 0.0f }; // Camera up vector (rotation towards target)
|
|
camera.up = (Vector3){ 0.0f, 1.0f, 0.0f }; // Camera up vector (rotation towards target)
|
|
camera.fovy = 45.0f; // Camera field-of-view Y
|
|
camera.fovy = 45.0f; // Camera field-of-view Y
|
|
- camera.projection = CAMERA_PERSPECTIVE; // Camera mode type
|
|
|
|
|
|
+ camera.projection = CAMERA_PERSPECTIVE; // Camera mode type
|
|
|
|
|
|
- Model model = LoadModel("resources/guy/guy.iqm"); // Load the animated model mesh and basic data
|
|
|
|
- Texture2D texture = LoadTexture("resources/guy/guytex.png"); // Load model texture and set material
|
|
|
|
- SetMaterialTexture(&model.materials[0], MATERIAL_MAP_DIFFUSE, texture); // Set model material map texture
|
|
|
|
|
|
+ Model model = LoadModel("resources/models/iqm/guy.iqm"); // Load the animated model mesh and basic data
|
|
|
|
+ Texture2D texture = LoadTexture("resources/models/iqm/guytex.png"); // Load model texture and set material
|
|
|
|
+ SetMaterialTexture(&model.materials[0], MATERIAL_MAP_DIFFUSE, texture); // Set model material map texture
|
|
|
|
|
|
Vector3 position = { 0.0f, 0.0f, 0.0f }; // Set model position
|
|
Vector3 position = { 0.0f, 0.0f, 0.0f }; // Set model position
|
|
|
|
|
|
// Load animation data
|
|
// Load animation data
|
|
int animsCount = 0;
|
|
int animsCount = 0;
|
|
- ModelAnimation *anims = LoadModelAnimations("resources/guy/guyanim.iqm", &animsCount);
|
|
|
|
|
|
+ ModelAnimation *anims = LoadModelAnimations("resources/models/iqm/guyanim.iqm", &animsCount);
|
|
int animFrameCounter = 0;
|
|
int animFrameCounter = 0;
|
|
|
|
|
|
SetCameraMode(camera, CAMERA_FREE); // Set free camera mode
|
|
SetCameraMode(camera, CAMERA_FREE); // Set free camera mode
|