Move src/main.c to src/tests/draw.c

This commit is contained in:
Fierelier 2024-05-11 02:55:46 +02:00
parent 3032426c13
commit c3be40e186
2 changed files with 4 additions and 5 deletions

View File

@ -22,15 +22,15 @@ The pixel format and screen coordinates are standardized, however, the HID input
## Platform: null
This platform has a very simple implementation, that is essentially a no-op for any possible target. It's meant for running a basic test before one makes a proper port.
1. `cc src/main.c -Dunigi_flag_platform_null`
1. `cc src/tests/draw.c -Dunigi_flag_platform_null`
## Platform: dos
This platform implements DOS (MS-DOS, FreeDOS, etc.), Tested with Open Watcom.
1. `cc src/main.c -Dunigi_flag_platform_dos`
1. `cc src/tests/draw.c -Dunigi_flag_platform_dos`
## Platform: sdl1
This platform implements the highly compatible SDL 1.2, which runs on all sorts of versions of Linux and Windows, as well as big endian CPUs.
1. `cc src/main.c -Dunigi_flag_platform_sdl1 -lSDL`
1. `cc src/tests/draw.c -Dunigi_flag_platform_sdl1 -lSDL`
## Advanced configuration
### No stdint.h

View File

@ -1,5 +1,4 @@
// This is a test and demonstration of unigi. You probably do not want to include this.
#include "main.h"
#include "../main.h"
#ifndef unigi_flag_exception
#include <stdio.h>