Преглед изворни кода

Add files via upload

pull/577/head
D3nX пре 6 година
committed by GitHub
родитељ
комит
1c9537b5e7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
10 измењених фајлова са 147 додато и 0 уклоњено
  1. +15
    -0
      projects/CodeBlocks/REAME.md
  2. BIN
      projects/CodeBlocks/bin/Debug/raylib_codeblocks_tpl.exe
  3. BIN
      projects/CodeBlocks/bin/Release/raylib_codeblocks_tpl.exe
  4. BIN
      projects/CodeBlocks/compiler_bg.png
  5. +62
    -0
      projects/CodeBlocks/main.c
  6. BIN
      projects/CodeBlocks/obj/Debug/main.o
  7. BIN
      projects/CodeBlocks/obj/Release/main.o
  8. +54
    -0
      projects/CodeBlocks/raylib_codeblocks_tpl.cbp
  9. +6
    -0
      projects/CodeBlocks/raylib_codeblocks_tpl.depend
  10. +10
    -0
      projects/CodeBlocks/raylib_codeblocks_tpl.layout

+ 15
- 0
projects/CodeBlocks/REAME.md Прегледај датотеку

@ -0,0 +1,15 @@
# Raylib for Code::Blocks
**By D3nX**<br />
<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](link)
<br />
Finally, you can run the program and enjoy raylib running on Code::Blocks !
<br /><br />
Hope it helped you =)

BIN
projects/CodeBlocks/bin/Debug/raylib_codeblocks_tpl.exe Прегледај датотеку


BIN
projects/CodeBlocks/bin/Release/raylib_codeblocks_tpl.exe Прегледај датотеку


BIN
projects/CodeBlocks/compiler_bg.png Прегледај датотеку

Before After
Width: 787  |  Height: 583  |  Size: 70 KiB

+ 62
- 0
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;
}

BIN
projects/CodeBlocks/obj/Debug/main.o Прегледај датотеку


BIN
projects/CodeBlocks/obj/Release/main.o Прегледај датотеку


+ 54
- 0
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>

+ 6
- 0
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

+ 10
- 0
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>

Loading…
Откажи
Сачувај