From cdda4c4182c9ee068567529715e4a5c68a8efb58 Mon Sep 17 00:00:00 2001 From: bonmas14 Date: Sat, 20 Sep 2025 22:28:15 +0300 Subject: Init commit v1.0 --- deps/raylib/projects/CodeBlocks/README.md | 22 ++++ .../projects/CodeBlocks/compiler_settings.png | Bin 0 -> 53305 bytes .../raylib/projects/CodeBlocks/core_basic_window.c | 58 +++++++++ .../projects/CodeBlocks/core_basic_window.cbp | 137 +++++++++++++++++++++ 4 files changed, 217 insertions(+) create mode 100644 deps/raylib/projects/CodeBlocks/README.md create mode 100644 deps/raylib/projects/CodeBlocks/compiler_settings.png create mode 100644 deps/raylib/projects/CodeBlocks/core_basic_window.c create mode 100644 deps/raylib/projects/CodeBlocks/core_basic_window.cbp (limited to 'deps/raylib/projects/CodeBlocks') 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. + +![Compiler Settings](compiler_settings.png) + +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 new file mode 100644 index 0000000..f87574d Binary files /dev/null and b/deps/raylib/projects/CodeBlocks/compiler_settings.png differ 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 @@ + + + + + + -- cgit v1.2.3-70-g09d2