GLdc/README.md

64 lines
1.7 KiB
Markdown
Raw Normal View History

2018-05-16 20:50:05 +00:00
# GLdc
2018-10-21 09:11:45 +00:00
**Development of GLdc has moved to [Gitlab](https://gitlab.com/simulant/GLdc)**
2018-05-16 20:50:05 +00:00
This is a partial implementation of OpenGL 1.2 for the SEGA Dreamcast for use
with the KallistiOS SDK.
It began as a fork of libGL by Josh Pearson but has undergone a large refactor
which is essentially a rewrite.
The aim is to implement as much of OpenGL 1.2 as possible, and to add additional
features via extensions.
Things left to (re)implement:
2018-05-19 12:43:22 +00:00
- Spotlights (Trivial)
- Framebuffer extension (Trivial)
- Texture Matrix (Trivial)
2018-05-16 20:50:05 +00:00
Things I'd like to do:
- Use a clean "gl.h"
- Define an extension for modifier volumes
- Add support for point sprites
- Optimise, add unit tests for correctness
2021-04-10 12:15:46 +00:00
# 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
2023-04-17 17:35:06 +00:00
To compile a Dreamcast debug build, you'll want to do something like the following:
2021-04-10 12:15:46 +00:00
```
mkdir dcbuild
cd dcbuild
cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/Dreamcast.cmake -G "Unix Makefiles" ..
make
```
2023-04-17 17:35:06 +00:00
For a release build, replace the cmake line with with the following:
```
cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/Dreamcast.cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
```
2021-04-10 12:15:46 +00:00
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
```
2018-05-16 20:50:05 +00:00
# Special Thanks!
- Massive shout out to Hayden Kowalchuk for diagnosing and fixing a large number of bugs while porting GL Quake to the Dreamcast. Absolute hero!