Sam Hocevar
52529cd8b9
bullet: update code to most recent GitHub branch.
8 vuotta sitten
Sam Hocevar
969911a10a
gpu: remove 1200 lines of old DirectX 9 code.
8 vuotta sitten
Sam Hocevar
3a90766614
scene: start working on a postprocess mechanism.
Not all programs support this feature for now, but that’s because they
don’t support the scene framework either, and will need patching. Also
the default postprocess is deliberately exaggerated for now.
8 vuotta sitten
Sam Hocevar
42e56399d4
base: hide an old warning from the GCC optimiser.
8 vuotta sitten
Sam Hocevar
6a6cd8dc1d
ld36: bootstrap project.
8 vuotta sitten
Sam Hocevar
f9cef654c5
zepto8: add a Visual Studio project.
8 vuotta sitten
Sam Hocevar
3db14cd669
win64: various VS 2015 build fixes.
8 vuotta sitten
Sam Hocevar
f1c34b8660
lua: import lua 5.3.3 source (was 5.2.1).
8 vuotta sitten
Sam Hocevar
2e997f24f1
math: allow rand(0), it’s arguably better than raising SIGFPE.
8 vuotta sitten
Sam Hocevar
64a12b1ad4
sys: allow to load images with an absolute path.
8 vuotta sitten
Sam Hocevar
f687beeb9e
math: add lol::round() to our maths functions.
8 vuotta sitten
Sam Hocevar
3d95e93cea
tileset: remove an old PS3 hack.
8 vuotta sitten
Sam Hocevar
bd96cfeb51
Add LuaLoader::Find() helper to find the state’s loader.
8 vuotta sitten
Sam Hocevar
581ecea541
engine: fix scene rendering.
Now TickDraw() can be called several times per frame, because we
may have several scenes. This is expected, but it will require
some adjustments later.
8 vuotta sitten
Sam Hocevar
8044747ac3
base: new string functions.
Add String.split(char) to split into an array, and add a simple
char const * + lol::String free operator.
8 vuotta sitten
Sam Hocevar
2f66dcc33f
Switch PEGTL external to latest Git snapshot.
8 vuotta sitten
Sam Hocevar
6a6ecc66e9
Port all parsers to PEGTL 1.3.1.
There might be issues with lolremez but at first sight it seems to work.
8 vuotta sitten
Sam Hocevar
cb10d6fbdf
zepto8: try to execute Lua code
This doesn’t work properly yet because PICO-8 uses a few language
extensions; we will have to decide whether to modify the Lua
interpreter, or change the code on the fly, or something entirely
different.
8 vuotta sitten
Sam Hocevar
78c33c6fbc
zepto8: new project.
For now, all it can do is read and decompress .p8.png files.
8 vuotta sitten
Sam Hocevar
5508d102fe
Fix numerous build errors.
Various changes in GCC, clang, and libflex had triggered build failures.
8 vuotta sitten
Sam Hocevar
8e63078f0e
allturdbeast: in-game documentation.
8 vuotta sitten
Sam Hocevar
c36f2a79ba
allturdbeast: move to main namespace.
8 vuotta sitten
Sam Hocevar
cfaa27df47
scene: change sprite tile angles to radians.
8 vuotta sitten
Sam Hocevar
b0f8b24b4b
lua: fix a very old bug in the Lua hooks.
8 vuotta sitten
Sam Hocevar
7939719ce1
gpu: fix GLES 2.x support.
8 vuotta sitten
Sam Hocevar
7926ccf9b0
ld35: it’s that time of the year again.
8 vuotta sitten
Benjamin ‘Touky’ Huet
ba5c900b32
Added a few TODOs
9 vuotta sitten
Sam Hocevar
12f5cecbb9
core: minor cosmetic fix.
9 vuotta sitten
Sam Hocevar
0566c16b69
sampler: add a few sanity checks to sampler.
9 vuotta sitten
Sam Hocevar
94f71f27c2
build: compilation fixes for Visual Studio.
9 vuotta sitten
Sam Hocevar
c7567975e3
math: add τ (tau) to the list of maths constants.
9 vuotta sitten
Sam Hocevar
1b2a4ca8d1
build: fix issues with SDL detection on 32-bit systems.
9 vuotta sitten
Sam Hocevar
848344cc7b
build: fix some issues with WIN32_LEAN_AND_MEAN redefinitions.
9 vuotta sitten
Sam Hocevar
868a0502ef
build: _C conflicts with other macros (rightly so); fix this.
9 vuotta sitten
Sam Hocevar
1280e15c9e
build: use <GL/glew.h> instead of <glew.h>.
9 vuotta sitten
Sam Hocevar
d84605c105
Remove Xbox 360 support, too much stuff no longer compiles.
9 vuotta sitten
Sam Hocevar
ab930faa05
ld34: it’s that time of the year again.
9 vuotta sitten
Sam Hocevar
1cb187abd5
Some cleanup in the Visual Studio files.
9 vuotta sitten
Sam Hocevar
bc9c8ff411
Move LD33 entry to main games directory.
9 vuotta sitten
Sam Hocevar
4bd6538a87
Fix a bug in SDL detection causing false positives.
If SDL_CFLAGS is defined to a non-empty value, even spaces, a later
test will wrongly succeed and think SDL_CFLAGS is a user override.
9 vuotta sitten
Sam Hocevar
37837ebdf1
Prepare files and project for LD33.
9 vuotta sitten
Sam Hocevar
155dc4af14
Work around an apparent Visual Studio compiler bug.
9 vuotta sitten
Guillaume Bittoun
3f6cd5b120
polynomial: accuracy improvement on double root in order 3
9 vuotta sitten
Guillaume Bittoun
51d8ed6458
polynomial: Improving tests for double/triple roots in order 3
9 vuotta sitten
Sam Hocevar
fd25e64d5c
lolunit: explicitly cast lolunit_assert_doubles_equal() arguments to double.
9 vuotta sitten
Sam Hocevar
75035be227
math: fix epsilon in some double equality unit tests.
9 vuotta sitten
Sam Hocevar
d332ad0f6f
math: add unit tests to check that radians(90) == radians(90.0).
9 vuotta sitten
Sam Hocevar
41af385a4c
math: degrees() and radians() return floating point even with integer arguments.
This avoids silly mistakes when calling radians(180) instead of
radians(180.0). The first one used to return 3 instead of 3.14159…
9 vuotta sitten
Sam Hocevar
078751a820
math: all API functions dealing with angles now use radians.
We already have the convenient degrees() and radians() functions to convert
between angle formats. This commit involves a lot of refactoring here and
there and I may have missed some places where conversions were needed. But
hopefully there aren’t may such places.
9 vuotta sitten
Sam Hocevar
45b57cc102
math: rename re() to inverse() in all classes.
The name “re” came from “reciprocal” but since we have “inverse” for
matrices, I thought it would be nice to make everything consistent.
9 vuotta sitten