From cadcc05a84b6f0d5660dcf9031d9d81fcb097072 Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 13 Jul 2018 20:26:56 +0200 Subject: Reviewed Code::Blocks project template - Removed unnecesary files - Renamed project - Reviewed paths --- projects/CodeBlocks/HELPME | 0 projects/CodeBlocks/README.md | 27 +++++----- projects/CodeBlocks/compiler_bg.png | Bin 71748 -> 0 bytes projects/CodeBlocks/compiler_settings.png | Bin 0 -> 71748 bytes projects/CodeBlocks/core_basic_window.c | 62 +++++++++++++++++++++++ projects/CodeBlocks/core_basic_window.cbp | 52 +++++++++++++++++++ projects/CodeBlocks/main.c | 62 ----------------------- projects/CodeBlocks/obj/Debug/main.o | Bin 2530 -> 0 bytes projects/CodeBlocks/obj/Release/main.o | Bin 1466 -> 0 bytes projects/CodeBlocks/raylib_codeblocks_tpl.cbp | 54 -------------------- projects/CodeBlocks/raylib_codeblocks_tpl.depend | 6 --- projects/CodeBlocks/raylib_codeblocks_tpl.layout | 10 ---- 12 files changed, 128 insertions(+), 145 deletions(-) delete mode 100644 projects/CodeBlocks/HELPME delete mode 100644 projects/CodeBlocks/compiler_bg.png create mode 100644 projects/CodeBlocks/compiler_settings.png create mode 100644 projects/CodeBlocks/core_basic_window.c create mode 100644 projects/CodeBlocks/core_basic_window.cbp delete mode 100644 projects/CodeBlocks/main.c delete mode 100644 projects/CodeBlocks/obj/Debug/main.o delete mode 100644 projects/CodeBlocks/obj/Release/main.o delete mode 100644 projects/CodeBlocks/raylib_codeblocks_tpl.cbp delete mode 100644 projects/CodeBlocks/raylib_codeblocks_tpl.depend delete mode 100644 projects/CodeBlocks/raylib_codeblocks_tpl.layout (limited to 'projects/CodeBlocks') diff --git a/projects/CodeBlocks/HELPME b/projects/CodeBlocks/HELPME deleted file mode 100644 index e69de29b..00000000 diff --git a/projects/CodeBlocks/README.md b/projects/CodeBlocks/README.md index d00b9ceb..0e4db919 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_bg.png deleted file mode 100644 index 67f9b7a1..00000000 Binary files a/projects/CodeBlocks/compiler_bg.png and /dev/null differ diff --git a/projects/CodeBlocks/compiler_settings.png b/projects/CodeBlocks/compiler_settings.png new file mode 100644 index 00000000..67f9b7a1 Binary files /dev/null and b/projects/CodeBlocks/compiler_settings.png differ diff --git a/projects/CodeBlocks/core_basic_window.c b/projects/CodeBlocks/core_basic_window.c new file mode 100644 index 00000000..588f80c2 --- /dev/null +++ b/projects/CodeBlocks/core_basic_window.c @@ -0,0 +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; +} diff --git a/projects/CodeBlocks/core_basic_window.cbp b/projects/CodeBlocks/core_basic_window.cbp new file mode 100644 index 00000000..10390e25 --- /dev/null +++ b/projects/CodeBlocks/core_basic_window.cbp @@ -0,0 +1,52 @@ + + + + + + diff --git a/projects/CodeBlocks/main.c b/projects/CodeBlocks/main.c deleted file mode 100644 index e7ab3012..00000000 --- a/projects/CodeBlocks/main.c +++ /dev/null @@ -1,62 +0,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/obj/Debug/main.o b/projects/CodeBlocks/obj/Debug/main.o deleted file mode 100644 index 29bbb3b3..00000000 Binary files a/projects/CodeBlocks/obj/Debug/main.o and /dev/null differ diff --git a/projects/CodeBlocks/obj/Release/main.o b/projects/CodeBlocks/obj/Release/main.o deleted file mode 100644 index 9fc5de5f..00000000 Binary files a/projects/CodeBlocks/obj/Release/main.o and /dev/null differ diff --git a/projects/CodeBlocks/raylib_codeblocks_tpl.cbp b/projects/CodeBlocks/raylib_codeblocks_tpl.cbp deleted file mode 100644 index dcf065ae..00000000 --- a/projects/CodeBlocks/raylib_codeblocks_tpl.cbp +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - diff --git a/projects/CodeBlocks/raylib_codeblocks_tpl.depend b/projects/CodeBlocks/raylib_codeblocks_tpl.depend deleted file mode 100644 index 615d5c23..00000000 --- a/projects/CodeBlocks/raylib_codeblocks_tpl.depend +++ /dev/null @@ -1,6 +0,0 @@ -# depslib dependency file v1.0 -1531496075 source:c:\programmation c\raylib_codeblocks_tpl\main.c - "raylib.h" - -1508702984 c:\raylib\raylib\release\include\raylib.h - diff --git a/projects/CodeBlocks/raylib_codeblocks_tpl.layout b/projects/CodeBlocks/raylib_codeblocks_tpl.layout deleted file mode 100644 index f2a627a3..00000000 --- a/projects/CodeBlocks/raylib_codeblocks_tpl.layout +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - -- cgit v1.2.3