Sam Hocevar
6ffaca4bbd
engine: move some files around.
pirms 10 gadiem
Sam Hocevar
2fa398926d
math: improve the 2D and 3D box classes.
Box objects (AABB) now have the long awaited extent() and center()
methods. Corners are now called “aa” and “bb” for convenience. The
WorldEntity class uses a box3 for its AABB instead of two vec3s.
This allows us to simplify a lot of verbose code.
pirms 10 gadiem
Benjamin ‘Touky’ Huet
a89dac5c30
Fixed some stuff and added some small tweaks
pirms 11 gadiem
Sam Hocevar
cd988786b9
build: reorganise includes so that we can use precompiled headers later.
pirms 11 gadiem
Sam Hocevar
fe665f85b4
base: strip core.h from its contents and put it in public/private headers.
pirms 11 gadiem
Sam Hocevar
da6b3d5cd0
scenegraph: Entity::TickDraw() now provides a reference to the current
scene so that g_scene can be deprecated later.
pirms 11 gadiem
Sam Hocevar
5f3ad5cc15
math: add constant vectors vec2::zero, vec2::axis_x, etc.
pirms 12 gadiem
Sam Hocevar
428178bc39
core: remove deprecated WorldEntity member variables.
pirms 12 gadiem
Sam Hocevar
c1428fc1f9
input: support up to 32 mouse buttons.
pirms 12 gadiem
Benjamin ‘Touky’ Huet
c7219ff1dd
New year copyright update.
pirms 13 gadiem
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
pirms 13 gadiem
Lolbot
23807ea88e
fixed 23 files out of 277:
- fixed 1270 CR characters
- fixed 56 trailing spaces
- fixed 5085 tabs
pirms 13 gadiem
Benjamin ‘Touky’ Huet
cfbacb625f
Small WorldEntity tweaks.
pirms 13 gadiem
Sam Hocevar
032b7ed47d
core: make WorldEntity rotation a quaternion.
pirms 13 gadiem
Sam Hocevar
90bfc79b22
core: tick methods now use seconds, like any sane system.
pirms 13 gadiem
Sam Hocevar
b49ba4ef56
core: prefix some member variables with m_ for clarity.
pirms 13 gadiem
Sam Hocevar
01ebcec3b8
core: split vector operations into linear and non-linear so that we can
reuse the linear operations in quaternions. Also mark some constructors
explicit to better spot coding errors.
pirms 14 gadiem
Sam Hocevar
10b321b204
core: get rid of now useless <cstdio> includes.
pirms 15 gadiem
Sam Hocevar
233ad8bb89
core: fix uninitialised WorldEntity members.
pirms 15 gadiem
Sam Hocevar
8848cf53db
Put everything in the "lol" namespace. Better late than never.
pirms 15 gadiem
Sam Hocevar
de3da71331
Create the WorldEntity class, for objects with world coordinates.
pirms 15 gadiem
Sam Hocevar
21fd077d12
Reduce audio latency by using 1K samples instead of 4K.
pirms 15 gadiem
Sam Hocevar
640735731a
Add preliminary support for sound samples. Implement click.
pirms 15 gadiem
Sam Hocevar
0ed566d3cc
Complete Lol Engine / Deus Hax / Monsterz split.
pirms 15 gadiem
Sam Hocevar
50e4f67254
Get the timer to talk milliseconds instead of seconds.
pirms 15 gadiem
Sam Hocevar
0d78ca44ca
Implement Timer::PollSeconds(), if necessary.
pirms 15 gadiem
Sam Hocevar
8bfb98c160
Implement a better timing mechanism for fixed framerate. Accuracy is
sub-millisecond but can be improved if we get rid of SDL timers.
pirms 15 gadiem