Sam Hocevar
6ffaca4bbd
engine: move some files around.
vor 10 Jahren
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.
vor 10 Jahren
Benjamin ‘Touky’ Huet
a89dac5c30
Fixed some stuff and added some small tweaks
vor 11 Jahren
Sam Hocevar
cd988786b9
build: reorganise includes so that we can use precompiled headers later.
vor 11 Jahren
Sam Hocevar
fe665f85b4
base: strip core.h from its contents and put it in public/private headers.
vor 11 Jahren
Sam Hocevar
da6b3d5cd0
scenegraph: Entity::TickDraw() now provides a reference to the current
scene so that g_scene can be deprecated later.
vor 11 Jahren
Sam Hocevar
5f3ad5cc15
math: add constant vectors vec2::zero, vec2::axis_x, etc.
vor 12 Jahren
Sam Hocevar
428178bc39
core: remove deprecated WorldEntity member variables.
vor 12 Jahren
Sam Hocevar
c1428fc1f9
input: support up to 32 mouse buttons.
vor 12 Jahren
Benjamin ‘Touky’ Huet
c7219ff1dd
New year copyright update.
vor 13 Jahren
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
vor 13 Jahren
Lolbot
23807ea88e
fixed 23 files out of 277:
- fixed 1270 CR characters
- fixed 56 trailing spaces
- fixed 5085 tabs
vor 13 Jahren
Benjamin ‘Touky’ Huet
cfbacb625f
Small WorldEntity tweaks.
vor 13 Jahren
Sam Hocevar
032b7ed47d
core: make WorldEntity rotation a quaternion.
vor 13 Jahren
Sam Hocevar
90bfc79b22
core: tick methods now use seconds, like any sane system.
vor 13 Jahren
Sam Hocevar
b49ba4ef56
core: prefix some member variables with m_ for clarity.
vor 13 Jahren
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.
vor 14 Jahren
Sam Hocevar
10b321b204
core: get rid of now useless <cstdio> includes.
vor 15 Jahren
Sam Hocevar
233ad8bb89
core: fix uninitialised WorldEntity members.
vor 15 Jahren
Sam Hocevar
8848cf53db
Put everything in the "lol" namespace. Better late than never.
vor 15 Jahren
Sam Hocevar
de3da71331
Create the WorldEntity class, for objects with world coordinates.
vor 15 Jahren
Sam Hocevar
21fd077d12
Reduce audio latency by using 1K samples instead of 4K.
vor 15 Jahren
Sam Hocevar
640735731a
Add preliminary support for sound samples. Implement click.
vor 15 Jahren
Sam Hocevar
0ed566d3cc
Complete Lol Engine / Deus Hax / Monsterz split.
vor 15 Jahren
Sam Hocevar
50e4f67254
Get the timer to talk milliseconds instead of seconds.
vor 15 Jahren
Sam Hocevar
0d78ca44ca
Implement Timer::PollSeconds(), if necessary.
vor 15 Jahren
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.
vor 15 Jahren