mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-11-22 00:42:16 -05:00
Add tcc
This commit is contained in:
parent
93947c98a0
commit
3f1344e596
@ -70,9 +70,9 @@ lines of code (80 column wrapping, a lot of empty lines):
|
|||||||
compiled:
|
compiled:
|
||||||
|
|
||||||
| binary | size | FPS | resolution | RAM usage |
|
| binary | size | FPS | resolution | RAM usage |
|
||||||
| -------------------- | ------------------------ | ---- | ---------- | ---------- |
|
| -------------------- | ------------------------------------ | ---- | ---------- | ---------- |
|
||||||
| GNU/Linux, SDL | TODO (gcc), TODO (clang) | TODO | TODO | TODO |
|
| GNU/Linux, SDL | TODO (gcc), TODO (clang), TODO (tcc) | TODO | TODO | TODO |
|
||||||
| GNU/Linux, terminal | TODO (gcc), TODO (clang) | TODO | TODO | TODO |
|
| GNU/Linux, terminal | TODO (gcc), TODO (clang), TODO (tcc) | TODO | TODO | TODO |
|
||||||
| Pokitto | TODO | TODO | TODO | TODO |
|
| Pokitto | TODO | TODO | TODO | TODO |
|
||||||
| Gamebuino Meta | TODO | TODO | TODO | TODO |
|
| Gamebuino Meta | TODO | TODO | TODO | TODO |
|
||||||
| browser | TODO (JS script) | TODO | TODO | TODO |
|
| browser | TODO (JS script) | TODO | TODO | TODO |
|
||||||
@ -317,3 +317,4 @@ I therefore release everything in this repository under CC0 1.0 (public domain,
|
|||||||
I would like to ask you, without it being any requirement at all, to please support free software and free culture by sharing at least some of your own work in a similar way I do with this project.
|
I would like to ask you, without it being any requirement at all, to please support free software and free culture by sharing at least some of your own work in a similar way I do with this project.
|
||||||
|
|
||||||
If you'd like to support me or just read something about me and my projects, visit my site: [www.tastyfish.cz](http://www.tastyfish.cz/).
|
If you'd like to support me or just read something about me and my projects, visit my site: [www.tastyfish.cz](http://www.tastyfish.cz/).
|
||||||
|
|
||||||
|
6
make.sh
6
make.sh
@ -20,6 +20,12 @@ COMPILER='g++'
|
|||||||
|
|
||||||
if [ $# -eq 2 ]; then
|
if [ $# -eq 2 ]; then
|
||||||
COMPILER=$2
|
COMPILER=$2
|
||||||
|
|
||||||
|
if [ $2 == "tcc" ]; then # you'll probably want to modify this
|
||||||
|
C_FLAGS="${C_FLAGS} -L/usr/lib/x86_64-linux-gnu/pulseaudio/
|
||||||
|
-I/home/tastyfish/git/tcc/tcc-0.9.27/include
|
||||||
|
-I/usr/lib/gcc/x86_64-linux-gnu/8/include/"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "compiling"
|
echo "compiling"
|
||||||
|
11
raycastlib.h
11
raycastlib.h
@ -26,7 +26,11 @@
|
|||||||
|
|
||||||
author: Miloslav "drummyfish" Ciz
|
author: Miloslav "drummyfish" Ciz
|
||||||
license: CC0 1.0
|
license: CC0 1.0
|
||||||
version: 0.908
|
version: 0.908d
|
||||||
|
|
||||||
|
Version numbering: major.minor[d], id 'd' is appended, this is a
|
||||||
|
in-development version based on the previous stable major.minor version. Two
|
||||||
|
'd' versions with the same version number, .e.g. 1.0d, may be different.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@ -840,7 +844,7 @@ void RCL_castRayMultiHit(RCL_Ray ray, RCL_ArrayFunction arrayFunc,
|
|||||||
|
|
||||||
CORRECT(X,y)
|
CORRECT(X,y)
|
||||||
|
|
||||||
#endif
|
#endif // RCL_RECTILINEAR
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -864,8 +868,7 @@ void RCL_castRayMultiHit(RCL_Ray ray, RCL_ArrayFunction arrayFunc,
|
|||||||
|
|
||||||
#undef CORRECT
|
#undef CORRECT
|
||||||
|
|
||||||
// ^ / 4 is here to prevent overflow
|
#endif // RCL_RECTILINEAR
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !RCL_RECTILINEAR
|
#if !RCL_RECTILINEAR
|
||||||
|
Loading…
Reference in New Issue
Block a user