Fixing all other macros by adding RL_ prefix.

This commit is contained in:
Marco Lizza 2018-12-20 16:15:55 +01:00
commit b6cb51e3e8

View file

@ -95,36 +95,36 @@ int main()
//----------------------------------------------------------------------------------
BeginDrawing();
ClearBackground(RAYWHITE);
ClearBackground(RL_RAYWHITE);
BeginMode2D(camera);
DrawRectangle(-6000, 320, 13000, 8000, DARKGRAY);
DrawRectangle(-6000, 320, 13000, 8000, RL_DARKGRAY);
for (int i = 0; i < MAX_BUILDINGS; i++) DrawRectangleRec(buildings[i], buildColors[i]);
DrawRectangleRec(player, RED);
DrawRectangleRec(player, RL_RED);
DrawLine(camera.target.x, -screenHeight*10, camera.target.x, screenHeight*10, GREEN);
DrawLine(-screenWidth*10, camera.target.y, screenWidth*10, camera.target.y, GREEN);
DrawLine(camera.target.x, -screenHeight*10, camera.target.x, screenHeight*10, RL_GREEN);
DrawLine(-screenWidth*10, camera.target.y, screenWidth*10, camera.target.y, RL_GREEN);
EndMode2D();
DrawText("SCREEN AREA", 640, 10, 20, RED);
DrawText("SCREEN AREA", 640, 10, 20, RL_RED);
DrawRectangle(0, 0, screenWidth, 5, RED);
DrawRectangle(0, 5, 5, screenHeight - 10, RED);
DrawRectangle(screenWidth - 5, 5, 5, screenHeight - 10, RED);
DrawRectangle(0, screenHeight - 5, screenWidth, 5, RED);
DrawRectangle(0, 0, screenWidth, 5, RL_RED);
DrawRectangle(0, 5, 5, screenHeight - 10, RL_RED);
DrawRectangle(screenWidth - 5, 5, 5, screenHeight - 10, RL_RED);
DrawRectangle(0, screenHeight - 5, screenWidth, 5, RL_RED);
DrawRectangle( 10, 10, 250, 113, Fade(SKYBLUE, 0.5f));
DrawRectangleLines( 10, 10, 250, 113, BLUE);
DrawRectangle( 10, 10, 250, 113, Fade(RL_SKYBLUE, 0.5f));
DrawRectangleLines( 10, 10, 250, 113, RL_BLUE);
DrawText("Free 2d camera controls:", 20, 20, 10, BLACK);
DrawText("- Right/Left to move Offset", 40, 40, 10, DARKGRAY);
DrawText("- Mouse Wheel to Zoom in-out", 40, 60, 10, DARKGRAY);
DrawText("- A / S to Rotate", 40, 80, 10, DARKGRAY);
DrawText("- R to reset Zoom and Rotation", 40, 100, 10, DARKGRAY);
DrawText("Free 2d camera controls:", 20, 20, 10, RL_BLACK);
DrawText("- Right/Left to move Offset", 40, 40, 10, RL_DARKGRAY);
DrawText("- Mouse Wheel to Zoom in-out", 40, 60, 10, RL_DARKGRAY);
DrawText("- A / S to Rotate", 40, 80, 10, RL_DARKGRAY);
DrawText("- R to reset Zoom and Rotation", 40, 100, 10, RL_DARKGRAY);
EndDrawing();
//----------------------------------------------------------------------------------