diff options
Diffstat (limited to 'examples/web/shaders/shaders_eratosthenes.c')
| -rw-r--r-- | examples/web/shaders/shaders_eratosthenes.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/web/shaders/shaders_eratosthenes.c b/examples/web/shaders/shaders_eratosthenes.c index 374c9aa..0ceb4bf 100644 --- a/examples/web/shaders/shaders_eratosthenes.c +++ b/examples/web/shaders/shaders_eratosthenes.c @@ -38,8 +38,8 @@ //---------------------------------------------------------------------------------- // Global Variables Definition //---------------------------------------------------------------------------------- -int screenWidth = 800; -int screenHeight = 450; +const int screenWidth = 800; +const int screenHeight = 450; // NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required) @@ -52,14 +52,14 @@ Shader shader = { 0 }; void UpdateDrawFrame(void); // Update and Draw one frame //---------------------------------------------------------------------------------- -// Main Enry Point +// Program Main Entry Point //---------------------------------------------------------------------------------- -int main() +int main(void) { // Initialization //-------------------------------------------------------------------------------------- InitWindow(screenWidth, screenHeight, "raylib [shaders] example - Sieve of Eratosthenes"); - + // Load Eratosthenes shader // NOTE: Defining 0 (NULL) for vertex shader forces usage of internal default vertex shader shader = LoadShader(0, FormatText("resources/shaders/glsl%i/eratosthenes.fs", GLSL_VERSION)); @@ -72,7 +72,7 @@ int main() #else SetTargetFPS(60); // Set our game to run at 60 frames-per-second //-------------------------------------------------------------------------------------- - + // Main game loop while (!WindowShouldClose()) // Detect window close button or ESC key { |
