A multi-platform 2D_Engine made in C.
Go to file
Ulysse Cura 825c768fab Enabling vsync. 2026-09-29 13:34:25 +02:00
.vscode Cleaned files and persmissions. 2026-09-27 21:30:19 +02:00
asset_builder Fixed compatibility with Windows. 2026-09-29 12:38:37 +02:00
assets Cleaned files and persmissions. 2026-09-27 21:30:19 +02:00
core Enabling vsync. 2026-09-29 13:34:25 +02:00
src Merge branch 'develop' into windows-support 2026-09-25 21:30:04 +02:00
.gitignore Build chain compiling engine. 2026-09-07 23:01:36 +02:00
LICENSE.txt Moved headers files into src folders, Started to change build chain, and moved core into its own drectory. 2026-09-06 08:59:30 +02:00
Makefile Cleaned files and persmissions. 2026-09-27 21:30:19 +02:00
README.md Adding building instructions. 2026-09-29 13:16:39 +02:00
SCENARIO.fr.txt More ideas ! 2026-08-19 14:13:02 +02:00
TODO.md Updated TODO. 2026-09-12 22:15:40 +02:00
configure Cleaned files and persmissions. 2026-09-27 21:30:19 +02:00
shell.nix Adding building instructions. 2026-09-29 13:16:39 +02:00

README.md

License: GPL v3

2D_Engine_C

Description

A multi-platform 2D_Engine made in C.

Summary

  1. Licenses
  2. Building

Licences

  • This program is open-source : you can redistribute and/or modify it under the term of the GNU GPLv3. Copyright (C) 2025 - 2026 Ulysse Cura. See LICENSE or gnu.org/licenses/gpl-3.0.html.

Building

Setup

Linux

The only tools needed are :

  • gcc
  • make
  • pkg-config

With the librairies (tested with version) :

  • sdl3 version >= 3.2.1O
  • libpng version >= 1.6.48
  • json-c version >= 0.18

On Debian, the command to install dependencies is :

sudo apt install gcc make pkg-config libsdl3-dev libpng-dev libjson-c-dev

On Nix, the shell.nix file manage the dependencies for you, but it might not be up to date, as support for Nix is not a priority.

Windows

To build on windows you will need MSYS2 or Cygwin. For the moment only MSYS2 is officialy supported.

The only tools needed are :

  • x86_64-w64-mingw32-gcc
  • make
  • x86_64-w64-mingw32-pkg-config

With the librairies (tested with version) :

  • sdl3 version >= 3.4.10
  • libpng version >= 1.6.58
  • json-c version >= 0.18

On MSYS2, the command to install dependencies is :

pacman -S mingw-w64-ucrt-x86_64-gcc make mingw-w64-ucrt-x86_64-pkg-config mingw-w64-ucrt-x86_64-sdl3 mingw-w64-ucrt-x86_64-libpng mingw-w64-ucrt-x86_64-json-c

Cross compiling

For the moment cross compiling from linux to windows is the only supported cross compiling option. To do that you will need the following tools :

  • x86_64-w64-mingw32-gcc
  • make
  • x86_64-w64-mingw32-pkg-config

With the librairies (tested with version) :

  • sdl3 version >= 3.4.10 (mingw devel)
  • libpng version >= 1.6.58
  • json-c version >= 0.18

On Debian the command to install dependencies is :

sudo apt install mingw-w64 mingw-w64-tools mingw-w64-ucrt64-dev make libpng-dev libjson-c-dev

For the sdl3 mingw devel package you will need to install it manually. See README-windows. Or releases.

Commands

The configure script automaticaly test compilers and libs versions for your target host.

See ./configure --help for usage.

The aim is to support linux, windows and the fxcg50 calculator. However the option --target-host only officialy supports linux and windows but fxcg50 is also an accepted option.