diff options
| author | Dennis E. Hamilton <[email protected]> | 2021-10-03 03:13:46 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-03 12:13:46 +0200 |
| commit | f60e0e6c948e346b8545d2cff58046dc264a64c3 (patch) | |
| tree | 293fa20edc84e503d6e536d7a9d94c281ccb6878 /projects/scripts | |
| parent | 9fce26bb068dc327735d0cdba35b8ef011a7b815 (diff) | |
| download | raylib-f60e0e6c948e346b8545d2cff58046dc264a64c3.tar.gz raylib-f60e0e6c948e346b8545d2cff58046dc264a64c3.zip | |
Tidying the core_basic_window.c in projects/scripts (#2025)
* Match build-windows.bat changes
The location for manual setting of the vcvarsall.bat location moved to line 38 in the latest change.
* Update flags for clean x64/x86 building
std:c11 is required for initialization features used in raylib. UTF-8 for consistency in contemporary systems. /W3 gets rid of puzzling slack byte and linker in-lining warnings. /sdl for some insecure library usages in the user code that beginners should learn about early.
* 2021-10-01 core_basic_windows.c adjustment
1. The press F6 message and the placement of the compiled executable statement are incorrect for the scripts case.
2. <raylib.h> because "raylib.h" is meaningful only when compiling inside raylib/src/ folder.
3. main(void) to get rid of a novice-confusing warning.
Diffstat (limited to 'projects/scripts')
| -rw-r--r-- | projects/scripts/core_basic_window.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/projects/scripts/core_basic_window.c b/projects/scripts/core_basic_window.c index b30f05de..1af45fb8 100644 --- a/projects/scripts/core_basic_window.c +++ b/projects/scripts/core_basic_window.c @@ -4,24 +4,23 @@ * * Welcome to raylib! * -* To test examples, just press F6 and execute raylib_compile_execute script -* Note that compiled executable is placed in the same folder as .c file -* * You can find all basic examples on C:\raylib\raylib\examples folder or * raylib official webpage: www.raylib.com * * Enjoy using raylib. :) * * This example has been created using raylib 1.0 (www.raylib.com) +* It has been re-confirmed with raylib 3.7.0 * raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details) * * Copyright (c) 2013-2016 Ramon Santamaria (@raysan5) +* Simple adjustments on 2021-10-01 * ********************************************************************************************/ -#include "raylib.h" +#include <raylib.h> -int main() +int main(void) { // Initialization //-------------------------------------------------------------------------------------- @@ -29,7 +28,7 @@ int main() int screenHeight = 450; InitWindow(screenWidth, screenHeight, "raylib [core] example - basic window"); - + SetTargetFPS(60); //-------------------------------------------------------------------------------------- @@ -54,9 +53,9 @@ int main() } // De-Initialization - //-------------------------------------------------------------------------------------- + //-------------------------------------------------------------------------------------- CloseWindow(); // Close window and OpenGL context //-------------------------------------------------------------------------------------- return 0; -}
\ No newline at end of file +} |
