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