diff options
| author | Ray <raysan5@gmail.com> | 2018-07-13 19:57:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-13 19:57:38 +0200 |
| commit | ea72c9e5afb1ca19a79a54932e0b9066a2060642 (patch) | |
| tree | 0b5f70fcec52fef0b97249b6d6805024abdd0060 /projects/CodeBlocks | |
| parent | c19bd3eb04ed6f7a9886dd0fb6538d207dae8f29 (diff) | |
| parent | f0ac73ef8b4aaf4929fbe58ea7ac4e9a23a71f31 (diff) | |
| download | raylib-ea72c9e5afb1ca19a79a54932e0b9066a2060642.tar.gz raylib-ea72c9e5afb1ca19a79a54932e0b9066a2060642.zip | |
Merge pull request #577 from D3nX/master
Added Code::Blocks template !
Diffstat (limited to 'projects/CodeBlocks')
| -rw-r--r-- | projects/CodeBlocks/README.md | 15 | ||||
| -rw-r--r-- | projects/CodeBlocks/compiler_bg.png | bin | 0 -> 71748 bytes | |||
| -rw-r--r-- | projects/CodeBlocks/main.c | 62 | ||||
| -rw-r--r-- | projects/CodeBlocks/obj/Debug/main.o | bin | 0 -> 2530 bytes | |||
| -rw-r--r-- | projects/CodeBlocks/obj/Release/main.o | bin | 0 -> 1466 bytes | |||
| -rw-r--r-- | projects/CodeBlocks/raylib_codeblocks_tpl.cbp | 54 | ||||
| -rw-r--r-- | projects/CodeBlocks/raylib_codeblocks_tpl.depend | 6 | ||||
| -rw-r--r-- | projects/CodeBlocks/raylib_codeblocks_tpl.layout | 10 |
8 files changed, 147 insertions, 0 deletions
diff --git a/projects/CodeBlocks/README.md b/projects/CodeBlocks/README.md new file mode 100644 index 00000000..d00b9ceb --- /dev/null +++ b/projects/CodeBlocks/README.md @@ -0,0 +1,15 @@ +# 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 !
+<br /><br />
+Hope it helped you =)
diff --git a/projects/CodeBlocks/compiler_bg.png b/projects/CodeBlocks/compiler_bg.png Binary files differnew file mode 100644 index 00000000..67f9b7a1 --- /dev/null +++ b/projects/CodeBlocks/compiler_bg.png diff --git a/projects/CodeBlocks/main.c b/projects/CodeBlocks/main.c new file mode 100644 index 00000000..e7ab3012 --- /dev/null +++ b/projects/CodeBlocks/main.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/obj/Debug/main.o b/projects/CodeBlocks/obj/Debug/main.o Binary files differnew file mode 100644 index 00000000..29bbb3b3 --- /dev/null +++ b/projects/CodeBlocks/obj/Debug/main.o diff --git a/projects/CodeBlocks/obj/Release/main.o b/projects/CodeBlocks/obj/Release/main.o Binary files differnew file mode 100644 index 00000000..9fc5de5f --- /dev/null +++ b/projects/CodeBlocks/obj/Release/main.o diff --git a/projects/CodeBlocks/raylib_codeblocks_tpl.cbp b/projects/CodeBlocks/raylib_codeblocks_tpl.cbp new file mode 100644 index 00000000..dcf065ae --- /dev/null +++ b/projects/CodeBlocks/raylib_codeblocks_tpl.cbp @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> +<CodeBlocks_project_file> + <FileVersion major="1" minor="6" /> + <Project> + <Option title="raylib_codeblocks_tpl" /> + <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 object_output="obj/Debug/" /> + <Option type="1" /> + <Option compiler="gcc" /> + <Compiler> + <Add option="-g" /> + <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" /> + </Linker> + </Target> + <Target title="Release"> + <Option output="bin/Release/raylib_codeblocks_tpl" 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" /> + </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" /> + </Linker> + </Target> + </Build> + <Compiler> + <Add option="-Wall" /> + </Compiler> + <Unit filename="main.c"> + <Option compilerVar="CC" /> + </Unit> + <Extensions> + <code_completion /> + <envvars /> + <debugger /> + <lib_finder disable_auto="1" /> + </Extensions> + </Project> +</CodeBlocks_project_file> diff --git a/projects/CodeBlocks/raylib_codeblocks_tpl.depend b/projects/CodeBlocks/raylib_codeblocks_tpl.depend new file mode 100644 index 00000000..615d5c23 --- /dev/null +++ b/projects/CodeBlocks/raylib_codeblocks_tpl.depend @@ -0,0 +1,6 @@ +# 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 new file mode 100644 index 00000000..f2a627a3 --- /dev/null +++ b/projects/CodeBlocks/raylib_codeblocks_tpl.layout @@ -0,0 +1,10 @@ +<?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> |
