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