diff options
| author | Ray <[email protected]> | 2016-03-17 13:51:48 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2016-03-17 13:51:48 +0100 |
| commit | e2ba22ec596757d62f8b22cf8b722d68040f23d3 (patch) | |
| tree | 28b9e0ddfe60534b167dd659e27c4fa10288d329 /examples/core_3d_camera_first_person.c | |
| parent | 49df957058b2f602c7e6873fec0007fcd7a4dc4c (diff) | |
| download | raylib-e2ba22ec596757d62f8b22cf8b722d68040f23d3.tar.gz raylib-e2ba22ec596757d62f8b22cf8b722d68040f23d3.zip | |
Improved 2D-3D drawing
Depth test disabled for 2D and only used on 3D; consequently LINES vs
TRIANGLES vs QUADS buffers drawing order maters... but blending also
works ok.
Diffstat (limited to 'examples/core_3d_camera_first_person.c')
| -rw-r--r-- | examples/core_3d_camera_first_person.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/examples/core_3d_camera_first_person.c b/examples/core_3d_camera_first_person.c index 16d388df..56e38a23 100644 --- a/examples/core_3d_camera_first_person.c +++ b/examples/core_3d_camera_first_person.c @@ -74,10 +74,13 @@ int main() } End3dMode(); + + DrawRectangle( 10, 10, 220, 70, Fade(SKYBLUE, 0.5f)); + DrawRectangleLines( 10, 10, 220, 70, BLUE); - DrawText("First person camera default controls:", 20, 20, 10, GRAY); - DrawText("- Move with keys: W, A, S, D", 40, 50, 10, DARKGRAY); - DrawText("- Mouse move to look around", 40, 70, 10, DARKGRAY); + DrawText("First person camera default controls:", 20, 20, 10, BLACK); + DrawText("- Move with keys: W, A, S, D", 40, 40, 10, DARKGRAY); + DrawText("- Mouse move to look around", 40, 60, 10, DARKGRAY); EndDrawing(); //---------------------------------------------------------------------------------- |
