Optional color

This commit is contained in:
Rob Loach
2019-08-10 17:02:56 -04:00
parent 45a0a2a6c1
commit f67a74008c
2 changed files with 3 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ int main()
ClearBackground(RAYWHITE);
texture.Draw(screenWidth / 2 - texture.getWidth() / 2, screenHeight / 2 - texture.getHeight() / 2, WHITE);
texture.Draw(screenWidth / 2 - texture.getWidth() / 2, screenHeight / 2 - texture.getHeight() / 2);
DrawText("this IS a texture loaded from an image!", 300, 370, 10, GRAY);
@@ -46,4 +46,4 @@ int main()
}
return 0;
}
}

View File

@@ -54,7 +54,7 @@ namespace raylib {
set(LoadTexture(fileName.c_str()));
}
void Draw(int posX, int posY, ::Color tint) {
void Draw(int posX, int posY, ::Color tint = WHITE) {
DrawTexture(*this, posX, posY, tint);
}