diff options
author | bonmas14 <bonmas14@gmail.com> | 2025-09-20 22:28:15 +0300 |
---|---|---|
committer | bonmas14 <bonmas14@gmail.com> | 2025-09-20 22:28:15 +0300 |
commit | cdda4c4182c9ee068567529715e4a5c68a8efb58 (patch) | |
tree | 38a63f62a64018a2d35fc33354f8589fd33b7514 /deps/raylib/projects/CodeBlocks | |
download | c_wizard-cdda4c4182c9ee068567529715e4a5c68a8efb58.tar.gz c_wizard-cdda4c4182c9ee068567529715e4a5c68a8efb58.zip |
Init commit v1.0
Diffstat (limited to 'deps/raylib/projects/CodeBlocks')
-rw-r--r-- | deps/raylib/projects/CodeBlocks/README.md | 22 | ||||
-rw-r--r-- | deps/raylib/projects/CodeBlocks/compiler_settings.png | bin | 0 -> 53305 bytes | |||
-rw-r--r-- | deps/raylib/projects/CodeBlocks/core_basic_window.c | 58 | ||||
-rw-r--r-- | deps/raylib/projects/CodeBlocks/core_basic_window.cbp | 137 |
4 files changed, 217 insertions, 0 deletions
diff --git a/deps/raylib/projects/CodeBlocks/README.md b/deps/raylib/projects/CodeBlocks/README.md new file mode 100644 index 0000000..49767d7 --- /dev/null +++ b/deps/raylib/projects/CodeBlocks/README.md @@ -0,0 +1,22 @@ +# raylib template for Code::Blocks + +1. Install raylib. + +On Windows you should install the **Windows Installer (with MinGW compiler)** package. +On other platforms you can install however you like following the instructions in the wiki. + + * https://github.com/raysan5/raylib/releases/download/4.2.0/raylib_installer_v420.mingw.exe + * https://github.com/raysan5/raylib/wiki/Working-on-GNU-Linux + * https://github.com/raysan5/raylib/wiki/Working-on-macOS + +2. Install and run Code::Blocks. + +3. **Windows only**: Select `Settings` `Compiler` `Toolchain executables`. +Change `Compiler's installation directory` to `C:\raylib\MingGW`. Do *not* press auto-detect. +There is a screenshot below showing how it should look. Press `OK`. + +4. Select `File` `Open` and open the `core_basic_windows.cbp` file. + + + +For an example with resources, see https://github.com/electronstudio/raylib-game-template-codeblocks
\ No newline at end of file diff --git a/deps/raylib/projects/CodeBlocks/compiler_settings.png b/deps/raylib/projects/CodeBlocks/compiler_settings.png Binary files differnew file mode 100644 index 0000000..f87574d --- /dev/null +++ b/deps/raylib/projects/CodeBlocks/compiler_settings.png diff --git a/deps/raylib/projects/CodeBlocks/core_basic_window.c b/deps/raylib/projects/CodeBlocks/core_basic_window.c new file mode 100644 index 0000000..da5b2e0 --- /dev/null +++ b/deps/raylib/projects/CodeBlocks/core_basic_window.c @@ -0,0 +1,58 @@ +/******************************************************************************************* +* raylib [core] example - Basic window +* +* Welcome to raylib! +* +* 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/deps/raylib/projects/CodeBlocks/core_basic_window.cbp b/deps/raylib/projects/CodeBlocks/core_basic_window.cbp new file mode 100644 index 0000000..ab9fe58 --- /dev/null +++ b/deps/raylib/projects/CodeBlocks/core_basic_window.cbp @@ -0,0 +1,137 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> +<CodeBlocks_project_file> + <FileVersion major="1" minor="6" /> + <Project> + <Option title="raylib-game-template" /> + <Option execution_dir="." /> + <Option pch_mode="2" /> + <Option compiler="gcc" /> + <Build> + <Target title="Debug (Mac)"> + <Option platforms="Mac;" /> + <Option output="bin/Debug/raylib-game-template" prefix_auto="1" extension_auto="1" /> + <Option working_dir="." /> + <Option object_output="obj/Debug/" /> + <Option type="1" /> + <Option compiler="gcc" /> + <Compiler> + <Add option="-g" /> + </Compiler> + <Linker> + <Add library="raylib" /> + <Add option="-framework OpenGL" /> + <Add option="-framework Cocoa" /> + <Add option="-framework IOKit" /> + <Add option="-framework CoreAudio" /> + <Add option="-framework CoreVideo" /> + </Linker> + </Target> + <Target title="Release (Mac)"> + <Option platforms="Mac;" /> + <Option output="bin/Release/raylib-game-template" prefix_auto="1" extension_auto="1" /> + <Option working_dir="." /> + <Option object_output="obj/Release/" /> + <Option type="1" /> + <Option compiler="gcc" /> + <Compiler> + <Add option="-O2" /> + </Compiler> + <Linker> + <Add option="-s" /> + <Add library="raylib" /> + <Add option="-framework OpenGL" /> + <Add option="-framework Cocoa" /> + <Add option="-framework IOKit" /> + <Add option="-framework CoreAudio" /> + <Add option="-framework CoreVideo" /> + </Linker> + </Target> + <Target title="Debug (Linux)"> + <Option platforms="Unix;" /> + <Option output="bin/Debug/raylib-game-template" prefix_auto="1" extension_auto="1" /> + <Option working_dir="." /> + <Option object_output="obj/Debug/" /> + <Option type="1" /> + <Option compiler="gcc" /> + <Compiler> + <Add option="-g" /> + </Compiler> + <Linker> + <Add library="raylib" /> + <Add library="GL" /> + <Add library="m" /> + <Add library="pthread" /> + <Add library="dl" /> + <Add library="rt" /> + <Add library="X11" /> + </Linker> + </Target> + <Target title="Release (Linux)"> + <Option platforms="Unix;" /> + <Option output="bin/Release/raylib-game-template" prefix_auto="1" extension_auto="1" /> + <Option working_dir="." /> + <Option object_output="obj/Release/" /> + <Option type="1" /> + <Option compiler="gcc" /> + <Compiler> + <Add option="-O2" /> + </Compiler> + <Linker> + <Add option="-s" /> + <Add library="raylib" /> + <Add library="GL" /> + <Add library="m" /> + <Add library="pthread" /> + <Add library="dl" /> + <Add library="rt" /> + <Add library="X11" /> + </Linker> + </Target> + <Target title="Debug (Windows)"> + <Option platforms="Windows;" /> + <Option output="bin/Debug/raylib-game-template" prefix_auto="1" extension_auto="1" /> + <Option working_dir="." /> + <Option object_output="obj/Debug/" /> + <Option type="1" /> + <Option compiler="gcc" /> + <Compiler> + <Add option="-g" /> + </Compiler> + <Linker> + <Add library="raylib" /> + <Add library="opengl32" /> + <Add library="gdi32" /> + <Add library="winmm" /> + <Add option="-static" /> + <Add library="pthread" /> + </Linker> + </Target> + <Target title="Release (Windows)"> + <Option platforms="Windows;" /> + <Option output="bin/Release/raylib-game-template" prefix_auto="1" extension_auto="1" /> + <Option working_dir="." /> + <Option object_output="obj/Release/" /> + <Option type="1" /> + <Option compiler="gcc" /> + <Compiler> + <Add option="-O2" /> + </Compiler> + <Linker> + <Add option="-s" /> + <Add library="raylib" /> + <Add library="opengl32" /> + <Add library="gdi32" /> + <Add library="winmm" /> + <Add option="-static" /> + <Add library="pthread" /> + </Linker> + </Target> + </Build> + <Compiler> + <Add option="-Wall" /> + </Compiler> + <Unit filename="core_basic_window.c"> + <Option compilerVar="CC" /> + </Unit> + </Project> +</CodeBlocks_project_file> |