diff options
| author | raysan5 <raysan5@gmail.com> | 2013-11-28 19:59:56 +0100 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2013-11-28 19:59:56 +0100 |
| commit | e9143b8a8d2eb439b01b94c00518db2b59ffb1e7 (patch) | |
| tree | 8539603494a773f852721da1d6f7b19bca0d8f64 /examples/ex02a_logo_raylib.c | |
| parent | 818e79638b5ff14fdae9f6a162e596bf119f82c5 (diff) | |
| download | raylib-e9143b8a8d2eb439b01b94c00518db2b59ffb1e7.tar.gz raylib-e9143b8a8d2eb439b01b94c00518db2b59ffb1e7.zip | |
Added some functions and Updated examples
View CHANGELOG for details
Diffstat (limited to 'examples/ex02a_logo_raylib.c')
| -rw-r--r-- | examples/ex02a_logo_raylib.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/examples/ex02a_logo_raylib.c b/examples/ex02a_logo_raylib.c index fb2933f9..c43b682e 100644 --- a/examples/ex02a_logo_raylib.c +++ b/examples/ex02a_logo_raylib.c @@ -13,42 +13,42 @@ int main() { + // Initialization + //-------------------------------------------------------------------------------------- int screenWidth = 800; int screenHeight = 450; - // Initialization - //--------------------------------------------------------- InitWindow(screenWidth, screenHeight, "raylib example 02a - raylib logo"); - //---------------------------------------------------------- + //-------------------------------------------------------------------------------------- // Main game loop while (!WindowShouldClose()) // Detect window close button or ESC key { // Update - //----------------------------------------------------- + //---------------------------------------------------------------------------------- // TODO: Update your variables here - //----------------------------------------------------- + //---------------------------------------------------------------------------------- // Draw - //----------------------------------------------------- + //---------------------------------------------------------------------------------- BeginDrawing(); ClearBackground(RAYWHITE); DrawRectangle(screenWidth/2 - 128, screenHeight/2 - 128, 256, 256, BLACK); DrawRectangle(screenWidth/2 - 112, screenHeight/2 - 112, 224, 224, RAYWHITE); - DrawText("raylib", 356, 273, 50, 1, BLACK); + DrawText("raylib", 356, 273, 50, BLACK); - DrawText("this is NOT a texture!", 350, 370, 10, 1, GRAY); + DrawText("this is NOT a texture!", 350, 370, 10, GRAY); EndDrawing(); - //----------------------------------------------------- + //---------------------------------------------------------------------------------- } // De-Initialization - //--------------------------------------------------------- + //-------------------------------------------------------------------------------------- CloseWindow(); // Close window and OpenGL context - //---------------------------------------------------------- + //-------------------------------------------------------------------------------------- return 0; }
\ No newline at end of file |
