This commit is contained in:
Rob Loach
2019-08-10 14:53:47 -04:00
parent a7856d72f3
commit 14acffeb46
41 changed files with 677 additions and 81 deletions

View File

@@ -28,6 +28,7 @@ int main()
int screenWidth = 800;
int screenHeight = 450;
raylib::Color background(RAYWHITE);
raylib::Color textColor(LIGHTGRAY);
raylib::Window w(screenWidth, screenHeight, "raylib [core] example - basic window");
SetTargetFPS(60);
@@ -45,13 +46,13 @@ int main()
//----------------------------------------------------------------------------------
BeginDrawing();
ClearBackground(background);
background.ClearBackground();
DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);
textColor.DrawText("Congrats! You created your first window!", 190, 200, 20);
EndDrawing();
//----------------------------------------------------------------------------------
}
return 0;
}
}