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
5 changed files with 1821 additions and 1821 deletions

View file

@ -45,9 +45,9 @@ int main()
//----------------------------------------------------------------------------------
BeginDrawing();
ClearBackground(RAYWHITE);
ClearBackground(RL_RAYWHITE);
DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);
DrawText("Congrats! You created your first window!", 190, 200, 20, RL_LIGHTGRAY);
EndDrawing();
//----------------------------------------------------------------------------------

View file

@ -45,9 +45,9 @@ int main()
//----------------------------------------------------------------------------------
BeginDrawing();
ClearBackground(RAYWHITE);
ClearBackground(RL_RAYWHITE);
DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);
DrawText("Congrats! You created your first window!", 190, 200, 20, RL_LIGHTGRAY);
EndDrawing();
//----------------------------------------------------------------------------------

View file

@ -35,9 +35,9 @@ int main()
//----------------------------------------------------------------------------------
BeginDrawing();
ClearBackground(RAYWHITE);
ClearBackground(RL_RAYWHITE);
DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);
DrawText("Congrats! You created your first window!", 190, 200, 20, RL_LIGHTGRAY);
EndDrawing();
//----------------------------------------------------------------------------------

View file

@ -451,17 +451,17 @@ void App::Run()
// Draw
BeginDrawing();
ClearBackground(RAYWHITE);
ClearBackground(RL_RAYWHITE);
posX += gamepadAxisState[GAMEPAD_PLAYER1][GAMEPAD_XBOX_AXIS_LEFT_X] * 5;
posY += gamepadAxisState[GAMEPAD_PLAYER1][GAMEPAD_XBOX_AXIS_LEFT_Y] * -5;
DrawRectangle(posX, posY, 400, 100, RED);
DrawRectangle(posX, posY, 400, 100, RL_RED);
DrawLine(0, 0, GetScreenWidth(), GetScreenHeight(), BLUE);
DrawLine(0, 0, GetScreenWidth(), GetScreenHeight(), RL_BLUE);
DrawCircle(mousePosition.x, mousePosition.y, 40, BLUE);
DrawCircle(mousePosition.x, mousePosition.y, 40, RL_BLUE);
if (UWPIsKeyDown(KEY_S)) DrawCircle(100, 100, 100, BLUE);
if (UWPIsKeyDown(KEY_S)) DrawCircle(100, 100, 100, RL_BLUE);
if (UWPIsKeyPressed(KEY_A))
{
@ -475,15 +475,15 @@ void App::Run()
UWPDisableCursor();
}
if (currentKeyState[KEY_LEFT_ALT]) DrawRectangle(250, 250, 20, 20, BLACK);
if (currentKeyState[KEY_BACKSPACE]) DrawRectangle(280, 250, 20, 20, BLACK);
if (currentMouseState[MOUSE_LEFT_BUTTON]) DrawRectangle(280, 250, 20, 20, BLACK);
if (currentKeyState[KEY_LEFT_ALT]) DrawRectangle(250, 250, 20, 20, RL_BLACK);
if (currentKeyState[KEY_BACKSPACE]) DrawRectangle(280, 250, 20, 20, RL_BLACK);
if (currentMouseState[MOUSE_LEFT_BUTTON]) DrawRectangle(280, 250, 20, 20, RL_BLACK);
static int pos = 0;
pos -= currentMouseWheelY;
DrawRectangle(280, pos + 50, 20, 20, BLACK);
DrawRectangle(250, 280 + (time++ % 60), 10, 10, PURPLE);
DrawRectangle(280, pos + 50, 20, 20, RL_BLACK);
DrawRectangle(250, 280 + (time++ % 60), 10, 10, RL_PURPLE);
EndDrawing();

View file

@ -23,13 +23,13 @@ int main() {
cam.position.z = cos(GetTime()) * 10.f;
BeginDrawing();
ClearBackground(RAYWHITE);
ClearBackground(RL_RAYWHITE);
BeginMode3D(cam);
DrawCube(cubePos, 2.f, 2.f, 2.f, RED);
DrawCubeWires(cubePos, 2.f, 2.f, 2.f, MAROON);
DrawCube(cubePos, 2.f, 2.f, 2.f, RL_RED);
DrawCubeWires(cubePos, 2.f, 2.f, 2.f, RL_MAROON);
DrawGrid(10, 1.f);
EndMode3D();
DrawText("This is a raylib example", 10, 40, 20, DARKGRAY);
DrawText("This is a raylib example", 10, 40, 20, RL_DARKGRAY);
DrawFPS(10, 10);
EndDrawing();
}