Skip to content

Simple 2D/3D graphics engine for Linux, MorphOs, AmigaOs and MacOs

License

Notifications You must be signed in to change notification settings

eliot-exdev/exdev-gfx

Repository files navigation

exdev-gfx

Simple 2D/3D graphics engine for Linux (amd64, arm64), MorphOs (ppc), AmigaOs (68k) and macOS (amd64, arm64) written in C99.
Currently macOS support is not yet ready (but this will come in near future). This library is for private learning purposes only, but there might be some interesting stuff inside.

examples

There are two interesting examples which are using this graphics engine.

julia

A simple mandelbrot renderer:
julia

voxelspace

A simple voxelspace renderer (do you remember Comanche?):
voxelspace

sprite

A simple sprite renderer with alpha, scaling and rotation: sprite

tools

convert_palette_to_pgm

Converts an existing palette to pgm. Usage:

convert_palette_to_pgm: <palette> <pgm>

palette

build

linux

morphos

To set up a cross-compiler for Linux you can use this script from git: https://bigfoot.morphos-team.net/files/setup-cross-sdk.sh Afterwards you should have the cross-compiler and the SDK in path /gg installed.
You can now cross compile for MorphOs with CMake:

mkdir build-mos
cd build-mos
cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/morphos-pcc.toolchain -DCMAKE_BUILD_TYPE=Release -CCMAKE_INSTALL_PREFIX=/tmp/exdevgfx-mos
cmake --build . --target install --paralllel 4

For native builds please use the Makefile!

amigaos

macos

About

Simple 2D/3D graphics engine for Linux, MorphOs, AmigaOs and MacOs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published