From 448f9737c4b7bfad4f173adc99937eabb1027065 Mon Sep 17 00:00:00 2001 From: Luke Benstead Date: Sat, 10 Apr 2021 13:15:46 +0100 Subject: [PATCH] Update README --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/README.md b/README.md index 3f26f69..b4b0fc7 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,34 @@ Things I'd like to do: - Define an extension for modifier volumes - Add support for point sprites - Optimise, add unit tests for correctness + +# Compiling + +GLdc uses CMake for its build system, it currently ships with two "backends": + + - kospvr - This is the hardware-accelerated Dreamcast backend + - software - This is a stub software rasterizer used for testing testing and debugging + +To compile for Dreamcast, you'll want to do something like the following: + +``` +mkdir dcbuild +cd dcbuild +cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/Dreamcast.cmake -G "Unix Makefiles" .. +make +``` + +You will need KallistiOS compiled and configured (e.g. the KOS_BASE environment +variable must be set) + +To compile for PC: + +``` +mkdir pcbuild +cd pcbuild +cmake -G "Unix Makefiles" .. +make +``` # Special Thanks!