Browse Source

Reviewed Code::Blocks project template

- Removed unnecesary files
 - Renamed project
 - Reviewed paths
pull/579/head
Ray 6 years ago
parent
commit
cadcc05a84
9 changed files with 86 additions and 103 deletions
  1. +0
    -0
      projects/CodeBlocks/HELPME
  2. +14
    -13
      projects/CodeBlocks/README.md
  3. +0
    -0
      projects/CodeBlocks/compiler_settings.png
  4. +62
    -62
      projects/CodeBlocks/core_basic_window.c
  5. +10
    -12
      projects/CodeBlocks/core_basic_window.cbp
  6. BIN
      projects/CodeBlocks/obj/Debug/main.o
  7. BIN
      projects/CodeBlocks/obj/Release/main.o
  8. +0
    -6
      projects/CodeBlocks/raylib_codeblocks_tpl.depend
  9. +0
    -10
      projects/CodeBlocks/raylib_codeblocks_tpl.layout

+ 0
- 0
projects/CodeBlocks/HELPME View File


+ 14
- 13
projects/CodeBlocks/README.md View File

@ -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 :
![alt text](https://github.com/D3nX/raylib/blob/master/projects/CodeBlocks/compiler_bg.png)
<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>
![Compiler Settings](compiler_settings.png)
<br/>
Finally, you can run the program and enjoy raylib running on `Code::Blocks`!
<br /><br />
Hope it helped you =)

projects/CodeBlocks/compiler_bg.png → projects/CodeBlocks/compiler_settings.png View File


projects/CodeBlocks/main.c → projects/CodeBlocks/core_basic_window.c View File

@ -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()
{
c1">// Initialization
c1">//--------------------------------------------------------------------------------------
int screenWidth = 800;
int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [core] example - basic window");
SetTargetFPS(60);
c1">//--------------------------------------------------------------------------------------
c1">// Main game loop
while (!WindowShouldClose()) c1">// Detect window close button or ESC key
{
c1">// Update
c1">//----------------------------------------------------------------------------------
c1">// TODO: Update your variables here
c1">//----------------------------------------------------------------------------------
c1">// Draw
c1">//----------------------------------------------------------------------------------
BeginDrawing();
ClearBackground(RAYWHITE);
DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);
EndDrawing();
c1">//----------------------------------------------------------------------------------
}
c1">// De-Initialization
c1">//--------------------------------------------------------------------------------------
CloseWindow(); c1">// Close window and OpenGL context
c1">//--------------------------------------------------------------------------------------
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()
{
o">// Initialization
o">//--------------------------------------------------------------------------------------
int screenWidth = 800;
int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [core] example - basic window");
SetTargetFPS(60);
o">//--------------------------------------------------------------------------------------
o">// Main game loop
while (!WindowShouldClose()) o">// Detect window close button or ESC key
{
o">// Update
o">//----------------------------------------------------------------------------------
o">// TODO: Update your variables here
o">//----------------------------------------------------------------------------------
o">// Draw
o">//----------------------------------------------------------------------------------
BeginDrawing();
ClearBackground(RAYWHITE);
DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);
EndDrawing();
o">//----------------------------------------------------------------------------------
}
o">// De-Initialization
o">//--------------------------------------------------------------------------------------
CloseWindow(); o">// Close window and OpenGL context
o">//--------------------------------------------------------------------------------------
return 0;
}

projects/CodeBlocks/raylib_codeblocks_tpl.cbp → projects/CodeBlocks/core_basic_window.cbp View File

@ -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>

BIN
projects/CodeBlocks/obj/Debug/main.o View File


BIN
projects/CodeBlocks/obj/Release/main.o View File


+ 0
- 6
projects/CodeBlocks/raylib_codeblocks_tpl.depend View File

@ -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

+ 0
- 10
projects/CodeBlocks/raylib_codeblocks_tpl.layout View File

@ -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>

Loading…
Cancel
Save