diff --git a/projects/CodeBlocks/HELPME b/projects/CodeBlocks/HELPME deleted file mode 100644 index e69de29bb..000000000 diff --git a/projects/CodeBlocks/README.md b/projects/CodeBlocks/README.md index d00b9cebc..0e4db919c 100644 --- a/projects/CodeBlocks/README.md +++ b/projects/CodeBlocks/README.md @@ -1,15 +1,16 @@ -# Raylib for Code::Blocks -**By D3nX**
-
-Hey ! There is the template for use with Code::Blocks =) -

-First, you will need to download the raylib installer and run it from the raylib website (https://www.raylib.com). -

-Then, download the template, and open the project from Code::Blocks -And before running the template, make sure following set the raylib -compiler for the IDE as show below : -![alt text](https://github.com/D3nX/raylib/blob/master/projects/CodeBlocks/compiler_bg.png) -
-Finally, you can run the program and enjoy raylib running on Code::Blocks ! +# raylib for Code::Blocks +**by D3nX** +
+Hey! Here it is a project template to use with `Code::Blocks` =) +

+First, you need to download the [raylib installer](https://www.raylib.com) and run it. It will install raylib with the compiler. +

+Then, download the template, and open the project with `Code::Blocks`. + +Before running the template, make sure following set the raylib compiler for the IDE as show below: +
+![Compiler Settings](compiler_settings.png) +
+Finally, you can run the program and enjoy raylib running on `Code::Blocks`!

Hope it helped you =) diff --git a/projects/CodeBlocks/compiler_bg.png b/projects/CodeBlocks/compiler_settings.png similarity index 100% rename from projects/CodeBlocks/compiler_bg.png rename to projects/CodeBlocks/compiler_settings.png diff --git a/projects/CodeBlocks/main.c b/projects/CodeBlocks/core_basic_window.c similarity index 97% rename from projects/CodeBlocks/main.c rename to projects/CodeBlocks/core_basic_window.c index e7ab30129..588f80c23 100644 --- a/projects/CodeBlocks/main.c +++ b/projects/CodeBlocks/core_basic_window.c @@ -1,62 +1,62 @@ -/*******************************************************************************************-lraylib -lglfw3 -lopengl32 -lgdi32 -lopenal32 -lwinmm -* -* raylib [core] example - Basic window -* -* 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) -* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details) -* -* Copyright (c) 2013-2016 Ramon Santamaria (@raysan5) -* -********************************************************************************************/ - -#include "raylib.h" - -int main() -{ - // Initialization - //-------------------------------------------------------------------------------------- - int screenWidth = 800; - int screenHeight = 450; - - InitWindow(screenWidth, screenHeight, "raylib [core] example - basic window"); - - SetTargetFPS(60); - //-------------------------------------------------------------------------------------- - - // Main game loop - while (!WindowShouldClose()) // Detect window close button or ESC key - { - // Update - //---------------------------------------------------------------------------------- - // TODO: Update your variables here - //---------------------------------------------------------------------------------- - - // Draw - //---------------------------------------------------------------------------------- - BeginDrawing(); - - ClearBackground(RAYWHITE); - - DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY); - - EndDrawing(); - //---------------------------------------------------------------------------------- - } - - // De-Initialization - //-------------------------------------------------------------------------------------- - CloseWindow(); // Close window and OpenGL context - //-------------------------------------------------------------------------------------- - - return 0; -} +/*******************************************************************************************-lraylib -lglfw3 -lopengl32 -lgdi32 -lopenal32 -lwinmm +* +* raylib [core] example - Basic window +* +* 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) +* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details) +* +* Copyright (c) 2013-2016 Ramon Santamaria (@raysan5) +* +********************************************************************************************/ + +#include "raylib.h" + +int main() +{ + // Initialization + //-------------------------------------------------------------------------------------- + int screenWidth = 800; + int screenHeight = 450; + + InitWindow(screenWidth, screenHeight, "raylib [core] example - basic window"); + + SetTargetFPS(60); + //-------------------------------------------------------------------------------------- + + // Main game loop + while (!WindowShouldClose()) // Detect window close button or ESC key + { + // Update + //---------------------------------------------------------------------------------- + // TODO: Update your variables here + //---------------------------------------------------------------------------------- + + // Draw + //---------------------------------------------------------------------------------- + BeginDrawing(); + + ClearBackground(RAYWHITE); + + DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY); + + EndDrawing(); + //---------------------------------------------------------------------------------- + } + + // De-Initialization + //-------------------------------------------------------------------------------------- + CloseWindow(); // Close window and OpenGL context + //-------------------------------------------------------------------------------------- + + return 0; +} diff --git a/projects/CodeBlocks/raylib_codeblocks_tpl.cbp b/projects/CodeBlocks/core_basic_window.cbp similarity index 55% rename from projects/CodeBlocks/raylib_codeblocks_tpl.cbp rename to projects/CodeBlocks/core_basic_window.cbp index dcf065ae5..10390e256 100644 --- a/projects/CodeBlocks/raylib_codeblocks_tpl.cbp +++ b/projects/CodeBlocks/core_basic_window.cbp @@ -2,12 +2,12 @@ -