Sam Hocevar
|
b1d9c511bf
|
core: some clang and g++ 4.7 compilation fixes.
|
12 years ago |
Sam Hocevar
|
1443b5628f
|
win32: add a custom build rule for '.lolfx' files. The files are properly
transformed to C++ but aren't compiled into the project yet.
|
12 years ago |
Benjamin ‘Touky’ Huet
|
cfbacb625f
|
Small WorldEntity tweaks.
|
12 years ago |
Benjamin ‘Touky’ Huet
|
a031bad19c
|
Added some convenient functions in camera.
|
12 years ago |
Sam Hocevar
|
4770daf4ac
|
math: replace len(vec) with length(vec) to match the GLSL naming.
|
12 years ago |
Sam Hocevar
|
6f19f877a8
|
orbital: new snake enemy.
|
12 years ago |
Sam Hocevar
|
c02e57365c
|
orbital: add the two parallax starfields.
|
12 years ago |
Sam Hocevar
|
440e86eb68
|
orbital: use both thumb sticks to pilot ships.
|
12 years ago |
Sam Hocevar
|
70f992bb36
|
win32: add an Xinput class for Xbox360 controllers, because they're not
properly detected using the generic SDL driver.
|
12 years ago |
Sam Hocevar
|
54fe8937ad
|
input: support Xbox input system for gamepads.
|
12 years ago |
Sam Hocevar
|
c0141debea
|
input: allow to remap gamepad axes in the generic input layer.
|
12 years ago |
Sam Hocevar
|
2723dabfac
|
orbital: play with the camera.
|
12 years ago |
Sam Hocevar
|
f30105e675
|
math: implement all Euler conversions for 3×3 matrices.
|
12 years ago |
Sam Hocevar
|
552dfee5b1
|
math: implement quaternion creation from true Euler angles (as opposed
to the Tait-Bryan angles we had for now). Also, change quaternion storage
order to wxyz in order to match the constructors.
|
12 years ago |
Sam Hocevar
|
da6062de06
|
core: add methods to set the camera's view matrix.
|
12 years ago |
Sam Hocevar
|
e1d0beae1a
|
math: support all Tait-Bryan angle combinations in quaternions.
|
12 years ago |
Sam Hocevar
|
4934e9dbee
|
orbital: move ship with arrows.
|
12 years ago |
Sam Hocevar
|
102d007cda
|
input: blacklist HDAPS as a joystick, it's not really a joystick.
|
12 years ago |
Sam Hocevar
|
d0dbbde159
|
core: allow to concatenate arrays, and add unit tests for that.
|
12 years ago |
Sam Hocevar
|
95fccabc7a
|
orbital: create a Player class with joystick support.
|
12 years ago |
Sam Hocevar
|
45bab95127
|
input: do not let the joystick override the keyboard.
|
12 years ago |
Sam Hocevar
|
58b3c20b86
|
input: add core joystick support and bind the SDL input to that.
|
12 years ago |
Sam Hocevar
|
c276dbb1ff
|
math: allow to write 1.f / q to take a quaternion's inverse.
|
12 years ago |
Sam Hocevar
|
d452194326
|
gpu: activate backface culling on OpenGL to remain consistent with
the Direct3D backend.
|
12 years ago |
Sam Hocevar
|
8f7d28c169
|
orbital: play with the tanks.
|
12 years ago |
Sam Hocevar
|
032b7ed47d
|
core: make WorldEntity rotation a quaternion.
|
12 years ago |
Sam Hocevar
|
75021144ae
|
orbital: put the tanks in a separate class.
|
12 years ago |
Sam Hocevar
|
8954a123aa
|
core: add Last() and Pop() methods to the Array class.
|
12 years ago |
Sam Hocevar
|
6467a06e90
|
core: convert some realloc() calls to our nice dynamic Array class.
|
12 years ago |
Sam Hocevar
|
82aaaae62c
|
core: the Array class now properly works with non-POD types.
|
12 years ago |
Benjamin ‘Touky’ Huet
|
38332c5f47
|
Added CommandParser parent class to Mesh to prepare other Parser implementation.
|
12 years ago |
Sam Hocevar
|
0315413285
|
core: rename Array::Append() to Array::Push() for brevity and arbitrary
personal taste.
|
12 years ago |
Sam Hocevar
|
bfada5d920
|
core: move some of the camera view logic from the Video class to the
Scene and Camera classes.
|
12 years ago |
Sam Hocevar
|
64b37d8897
|
gpu: fix a memory leak in the VertexBuffer and IndexBuffer classes.
|
12 years ago |
Sam Hocevar
|
2d34fd8358
|
core: reduce compilation time by about 30% by playing with namespaces
and avoid cluttering the compiler's symbol table.
|
12 years ago |
Sam Hocevar
|
fad3e434cf
|
math: fix a bug in mat3::fromeuler().
|
12 years ago |
Sam Hocevar
|
bbdd59032d
|
test: add matrix determinant and quaternion norm checks in the unit tests.
|
12 years ago |
Sam Hocevar
|
ecda7cd569
|
math: replace mat3::rotate(quat) with an explicit constructor, and add
more unit tests for the quaternion to 3×3 matrix conversion.
|
12 years ago |
Sam Hocevar
|
032b32271b
|
math: fix a bug in the rotation matrix to quaternion conversion, found
with the unit tests.
|
12 years ago |
Sam Hocevar
|
9e9c18d37e
|
test: add several unit tests for rotations with matrices and quaternions.
|
12 years ago |
Sam Hocevar
|
5ff96967a0
|
math: add Quat::transform() to directly apply a quaternion to a vector.
|
12 years ago |
Sam Hocevar
|
90c8a58937
|
build: add gcov files to the Git ignore list.
|
12 years ago |
Sam Hocevar
|
e91c326f57
|
math: add methods to convert from a quaternion to Euler angles and from
Euler angles to a rotation matrix. Also fix quat::rotate() which was not
building the correct quaternion.
|
12 years ago |
Sam Hocevar
|
fceeaf1c74
|
math: add quat::fromeuler static constructor for quaternions.
|
12 years ago |
Sam Hocevar
|
1bc2a7d705
|
build: fix compilation on Windows by undefining the min and max macros
that WinDef.h insists on shoving down our throats.
|
12 years ago |
Sam Hocevar
|
ade0514b15
|
math: add min(), max() and clamp() for half, real and vector types.
|
12 years ago |
Sam Hocevar
|
90bfc79b22
|
core: tick methods now use seconds, like any sane system.
|
12 years ago |
Sam Hocevar
|
fbaf32f1b9
|
core: make timers second-based rather than millisecond-based.
|
12 years ago |
Benjamin ‘Touky’ Huet
|
9c27915507
|
Added GetButtonState() in Input class.
Added Escape button in to quit Orbital.
Added Camera control with some little damping sweetness in Camera logic in main Tick.
First Commit \o/
|
12 years ago |
Sam Hocevar
|
08fc460668
|
core: move the Camera class from Orbital to the engine core.
|
12 years ago |