mirror of
				https://github.com/raysan5/raylib.git
				synced 2025-10-26 12:27:01 +00:00 
			
		
		
		
	REVIEWED: Camera redesign PR
This commit is contained in:
		| @@ -44,11 +44,11 @@ int main(void) | ||||
|  | ||||
|     // Define the camera to look into our 3d world | ||||
|     Camera camera = { 0 }; | ||||
|     camera.position = (Vector3){ -125.0f, 125.0f, -125.0f }; | ||||
|     camera.target = (Vector3){ 0.0f, 0.0f, 0.0f }; | ||||
|     camera.up = (Vector3){ 0.0f, 1.0f, 0.0f }; | ||||
|     camera.fovy = 45.0f; | ||||
|     camera.projection = CAMERA_PERSPECTIVE; | ||||
|     camera.position = (Vector3){ -125.0f, 125.0f, -125.0f };    // Camera position | ||||
|     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.fovy = 45.0f;                                        // Camera field-of-view Y | ||||
|     camera.projection = CAMERA_PERSPECTIVE;                     // Camera projection type | ||||
|  | ||||
|     // Define mesh to be instanced | ||||
|     Mesh cube = GenMeshCube(1.0f, 1.0f, 1.0f); | ||||
| @@ -94,12 +94,12 @@ int main(void) | ||||
|     Material matDefault = LoadMaterialDefault(); | ||||
|     matDefault.maps[MATERIAL_MAP_DIFFUSE].color = BLUE; | ||||
|  | ||||
|     DisableCursor();                       // Catch cursor | ||||
|     SetTargetFPS(60);                      // Set our game to run at 60 frames-per-second | ||||
|     DisableCursor();                    // Limit cursor to relative movement inside the window | ||||
|     SetTargetFPS(60);                   // Set our game to run at 60 frames-per-second | ||||
|     //-------------------------------------------------------------------------------------- | ||||
|  | ||||
|     // Main game loop | ||||
|     while (!WindowShouldClose())            // Detect window close button or ESC key | ||||
|     while (!WindowShouldClose())        // Detect window close button or ESC key | ||||
|     { | ||||
|         // Update | ||||
|         //---------------------------------------------------------------------------------- | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Ray
					Ray