mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-14 10:37:17 -07:00
git subrepo clone (merge) https://github.com/HarbourMasters/otrgui.git OTRGui
subrepo: subdir: "OTRGui" merged: "a6066a251" upstream: origin: "https://github.com/HarbourMasters/otrgui.git" branch: "master" commit: "a6066a251" git-subrepo: version: "0.4.1" origin: "???" commit: "???"
This commit is contained in:
parent
442a88f03b
commit
f52a2a6406
1018 changed files with 511803 additions and 0 deletions
22
OTRGui/libs/raylib/projects/CodeBlocks/README.md
Normal file
22
OTRGui/libs/raylib/projects/CodeBlocks/README.md
Normal file
|
@ -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.0.0/raylib_installer_v400.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 instrallation 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
|
BIN
OTRGui/libs/raylib/projects/CodeBlocks/compiler_settings.png
Normal file
BIN
OTRGui/libs/raylib/projects/CodeBlocks/compiler_settings.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 52 KiB |
58
OTRGui/libs/raylib/projects/CodeBlocks/core_basic_window.c
Normal file
58
OTRGui/libs/raylib/projects/CodeBlocks/core_basic_window.c
Normal file
|
@ -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;
|
||||
}
|
137
OTRGui/libs/raylib/projects/CodeBlocks/core_basic_window.cbp
Normal file
137
OTRGui/libs/raylib/projects/CodeBlocks/core_basic_window.cbp
Normal file
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue