diff options
| author | Ray <raysan5@gmail.com> | 2018-07-13 20:26:56 +0200 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2018-07-13 20:26:56 +0200 |
| commit | cadcc05a84b6f0d5660dcf9031d9d81fcb097072 (patch) | |
| tree | 5600aab5f58e50819484ffb61cce6f4ab96a4fa6 /projects/CodeBlocks | |
| parent | b5b4da1d05252a84e19cd473a0b7dcd78dba6bb8 (diff) | |
| download | raylib-cadcc05a84b6f0d5660dcf9031d9d81fcb097072.tar.gz raylib-cadcc05a84b6f0d5660dcf9031d9d81fcb097072.zip | |
Reviewed Code::Blocks project template
- Removed unnecesary files
- Renamed project
- Reviewed paths
Diffstat (limited to 'projects/CodeBlocks')
| -rw-r--r-- | projects/CodeBlocks/HELPME | 0 | ||||
| -rw-r--r-- | projects/CodeBlocks/README.md | 27 | ||||
| -rw-r--r-- | projects/CodeBlocks/compiler_settings.png (renamed from projects/CodeBlocks/compiler_bg.png) | bin | 71748 -> 71748 bytes | |||
| -rw-r--r-- | projects/CodeBlocks/core_basic_window.c (renamed from projects/CodeBlocks/main.c) | 124 | ||||
| -rw-r--r-- | projects/CodeBlocks/core_basic_window.cbp (renamed from projects/CodeBlocks/raylib_codeblocks_tpl.cbp) | 22 | ||||
| -rw-r--r-- | projects/CodeBlocks/obj/Debug/main.o | bin | 2530 -> 0 bytes | |||
| -rw-r--r-- | projects/CodeBlocks/obj/Release/main.o | bin | 1466 -> 0 bytes | |||
| -rw-r--r-- | projects/CodeBlocks/raylib_codeblocks_tpl.depend | 6 | ||||
| -rw-r--r-- | projects/CodeBlocks/raylib_codeblocks_tpl.layout | 10 |
9 files changed, 86 insertions, 103 deletions
diff --git a/projects/CodeBlocks/HELPME b/projects/CodeBlocks/HELPME deleted file mode 100644 index e69de29b..00000000 --- a/projects/CodeBlocks/HELPME +++ /dev/null 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**<br />
-<br />
-Hey ! There is the template for use with Code::Blocks =)
-<br /><br />
-First, you will need to download the raylib installer and run it from the raylib website (https://www.raylib.com).
-<br /><br />
-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 :
-
-<br />
-Finally, you can run the program and enjoy raylib running on Code::Blocks !
+# raylib for Code::Blocks
+**by D3nX**
+<br/>
+Hey! Here it is a project template to use with `Code::Blocks` =)
+<br/><br/>
+First, you need to download the [raylib installer](https://www.raylib.com) and run it. It will install raylib with the compiler.
+<br/><br/>
+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:
+<br>
+
+<br/>
+Finally, you can run the program and enjoy raylib running on `Code::Blocks`!
<br /><br />
Hope it helped you =)
diff --git a/projects/CodeBlocks/compiler_bg.png b/projects/CodeBlocks/compiler_settings.png Binary files differindex 67f9b7a1..67f9b7a1 100644 --- a/projects/CodeBlocks/compiler_bg.png +++ b/projects/CodeBlocks/compiler_settings.png diff --git a/projects/CodeBlocks/main.c b/projects/CodeBlocks/core_basic_window.c index e7ab3012..588f80c2 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 index dcf065ae..10390e25 100644 --- a/projects/CodeBlocks/raylib_codeblocks_tpl.cbp +++ b/projects/CodeBlocks/core_basic_window.cbp @@ -2,12 +2,12 @@ <CodeBlocks_project_file> <FileVersion major="1" minor="6" /> <Project> - <Option title="raylib_codeblocks_tpl" /> + <Option title="core_basic_window" /> <Option pch_mode="2" /> <Option compiler="gcc" /> <Build> <Target title="Debug"> - <Option output="bin/Debug/raylib_codeblocks_tpl" prefix_auto="1" extension_auto="1" /> + <Option output="bin/Debug/core_basic_window" prefix_auto="1" extension_auto="1" /> <Option object_output="obj/Debug/" /> <Option type="1" /> <Option compiler="gcc" /> @@ -16,32 +16,30 @@ <Add directory="../../raylib/raylib/release/include" /> </Compiler> <Linker> - <Add option="-lraylib -lglfw3 -lopengl32 -lgdi32 -lopenal32 -lwinmm" /> - <Add library="../../raylib/MinGW/lib/libraylib.a" /> - <Add library="../../raylib/MinGW/lib/libraylibdll.a" /> + <Add option="-lraylib -lopengl32 -lgdi32 -lwinmm" /> + <Add library="../../../../raylib/raylib/release/libs/win32/mingw32/libraylib.a" /> </Linker> </Target> <Target title="Release"> - <Option output="bin/Release/raylib_codeblocks_tpl" prefix_auto="1" extension_auto="1" /> + <Option output="bin/Release/core_basic_window" prefix_auto="1" extension_auto="1" /> <Option object_output="obj/Release/" /> <Option type="1" /> <Option compiler="gcc" /> <Compiler> <Add option="-O2" /> - <Add directory="../../raylib/raylib/release/include" /> + <Add directory="../../../../raylib/raylib/release/include" /> </Compiler> <Linker> <Add option="-s" /> - <Add option="-lraylib -lglfw3 -lopengl32 -lgdi32 -lopenal32 -lwinmm" /> - <Add library="../../raylib/raylib/release/libs/win32/mingw32/libraylib.a" /> - <Add library="../../raylib/raylib/release/libs/win32/mingw32/libraylibdll.a" /> + <Add option="-lraylib -lopengl32 -lgdi32" /> + <Add library="../../../../raylib/raylib/release/libs/win32/mingw32/libraylib.a" /> </Linker> </Target> </Build> <Compiler> - <Add option="-Wall" /> + <Add option="-Wall -std=c99" /> </Compiler> - <Unit filename="main.c"> + <Unit filename="core_basic_window.c"> <Option compilerVar="CC" /> </Unit> <Extensions> diff --git a/projects/CodeBlocks/obj/Debug/main.o b/projects/CodeBlocks/obj/Debug/main.o Binary files differdeleted file mode 100644 index 29bbb3b3..00000000 --- a/projects/CodeBlocks/obj/Debug/main.o +++ /dev/null diff --git a/projects/CodeBlocks/obj/Release/main.o b/projects/CodeBlocks/obj/Release/main.o Binary files differdeleted file mode 100644 index 9fc5de5f..00000000 --- a/projects/CodeBlocks/obj/Release/main.o +++ /dev/null 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 @@ -<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> -<CodeBlocks_layout_file> - <FileVersion major="1" minor="0" /> - <ActiveTarget name="Release" /> - <File name="main.c" open="1" top="1" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0"> - <Cursor> - <Cursor1 position="848" topLine="0" /> - </Cursor> - </File> -</CodeBlocks_layout_file> |
