mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-24 16:19:18 -05:00
Review variables initialization
This commit is contained in:
@ -94,7 +94,7 @@ int main()
|
||||
{
|
||||
// Initialization
|
||||
//--------------------------------------------------------------------------------------
|
||||
static unsigned char key;
|
||||
static unsigned char key = 0;
|
||||
|
||||
InitAudioDevice();
|
||||
|
||||
|
||||
@ -131,7 +131,7 @@ int main(void)
|
||||
rlClearColor(245, 245, 245, 255); // Define clear color
|
||||
rlEnableDepthTest(); // Enable DEPTH_TEST for 3D
|
||||
|
||||
Camera camera;
|
||||
Camera camera = { 0 };
|
||||
camera.position = (Vector3){ 5.0f, 5.0f, 5.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)
|
||||
|
||||
Reference in New Issue
Block a user