Sam Hocevar
0f5913edce
base: deprecate lol::array.
Unfortunately, easymesh code still relies heavily on its specifics, so I’m
letting it live as lol::easy_array for the near future. But it’s going away.
5 лет назад
Sam Hocevar
9e982a51a7
Major header refactoring.
5 лет назад
Sam Hocevar
35955b2ac1
Remove several deprecated headers.
5 лет назад
Sam Hocevar
53e86aa9c5
Clean up header usage.
5 лет назад
Sam Hocevar
65abcac37b
Use std::tuple for our custom dynamic arrays.
This is the first step to getting rid of lol::array in favour of std::vector.
5 лет назад
Sam Hocevar
2a798387fb
Refactor all code that uses the color class.
5 лет назад
Sam Hocevar
cf02d4b0d0
gpu: rename a few methods.
5 лет назад
Sam Hocevar
8c81b07465
input: start replacing controller functions with standard input functions.
Controller::WasKeyReleasedThisFrame() is now keyboard->key_released() so
there is usually no need for a controller. They will completely disappear
when joystick axis binding has been ported to InputDevice.
6 лет назад
Sam Hocevar
a57cecaf98
input: remove a lot of unnecessarily convoluted code.
In particular, get rid of the enum magic; we can use map<string,int> if we
really need some named enums. Which we usually don’t.
6 лет назад
Sam Hocevar
1f9be92a66
Use smart pointers in a lot of the rendering code.
6 лет назад
Sam Hocevar
beeded3d85
render: simplify Renderer code
The scene now owns its renderer, so there is no need to keep a list
of existing renderers and to call Renderer::Get().
6 лет назад
Sam Hocevar
6dd7a0cb39
Another lowercase switching frenzy, because why not.
6 лет назад
Sam Hocevar
50e494803d
Replace array::empty() with array::clear().
We used to have lol::map::empty() to empty maps, but in std::map
this method is called clear(). It sounds safe to harmonise between
our types and have lol::array::clear() too.
6 лет назад
Sam Hocevar
1105a075ce
Rename lol::Timer to lol::timer. Because.
7 лет назад
touky
6c2aee32a4
fixes
debug draw fixes are really un-numerous in ze lol, it seems
8 лет назад
Sam Hocevar
0ef4e3c203
Clean up a lot of shader crap
8 лет назад
Sam Hocevar
6a35a64dd5
sys: make a few functions lowercase.
8 лет назад
Sam Hocevar
078751a820
math: all API functions dealing with angles now use radians.
We already have the convenient degrees() and radians() functions to convert
between angle formats. This commit involves a lot of refactoring here and
there and I may have missed some places where conversions were needed. But
hopefully there aren’t may such places.
9 лет назад
Sam Hocevar
103f60d48b
misc: replace NULL with nullptr in most places.
9 лет назад
Sam Hocevar
38733fade7
math: move the matrix-to-quaternion code to a global header.
This lets us use the code for non-float variable types. I also got
rid of the mat4-to-quat code so that users are forced to use the
mat3-to-quat code and possibly discover places where their code is
suboptimal.
9 лет назад
Benjamin ‘Touky’ Huet
6ab67e8f86
btPhysTest is working again, but it still has 7 Ticker::Unref(Shader) that should be there ......
9 лет назад
Sam Hocevar
03c17fcae4
base: clean up and refactor containers.
The containers no longer force the user to use the ptrdiff_t type for
size information. For convenience, size() now always returns an int,
and the size_s() method offers a way to handle arrays with more than
2 billion elements. Internally, we still use ptrdiff_t, though.
Since so much code had to be changed, I took the opportunity to get
rid of capitalised accessors for classes that are lowercase.
9 лет назад
Benjamin ‘Touky’ Huet
2170b89b11
MultiScene: Phase 4: Added SceneDisplay class to have multiple windows + implementation with SDL. Not with the others.
9 лет назад
Benjamin ‘Touky’ Huet
a7d6e0190e
Scene stuff is back to non-static logic with a few tricks
Scene rendering logic is now better
9 лет назад
Benjamin ‘Touky’ Huet
cfcff9acc3
MultiScene: Phase 1: g_scene removal and conversion to Scene::
9 лет назад
Benjamin ‘Touky’ Huet
3e9e6178ae
Small refactor controller tweak
10 лет назад
Benjamin ‘Touky’ Huet
9477f1f722
Moved GetKey/Axis status tests to protected, and made them accessible through controller directly to implement layer system in the future.
10 лет назад
Benjamin ‘Touky’ Huet
4d3d7de4f2
Name refactors for doc stuff
10 лет назад
Benjamin ‘Touky’ Huet
6c3dd67bc0
Controller refactor to enforce InputProfile usage (because why not)
DefaultThreadManager build FIX
10 лет назад
Benjamin ‘Touky’ Huet
f67da65818
First pass of EasyMesh split & refactor
Big FAT pass on windows-warning. It is better now.
10 лет назад
Sam Hocevar
d72cb24bc0
build: move sample and tutorial files around.
10 лет назад
Sam Hocevar
cd988786b9
build: reorganise includes so that we can use precompiled headers later.
10 лет назад
Sam Hocevar
cadc4d18b0
test: move the unit tests to the engine, and lolunit out of the engine.
10 лет назад
Sam Hocevar
7a28671dee
math: get rid of the base_vec* classes (thanks to relaxed unions), rename
MASK to SWIZZLE in the vector templates, rename matrix<> to mat<> for
consistency, implement transposition for all matrix sizes, make matrix
columns private and only accessible through operator[].
10 лет назад
Sam Hocevar
fe665f85b4
base: strip core.h from its contents and put it in public/private headers.
10 лет назад
Sam Hocevar
398ee1b4d5
base: use lol::array in most places.
10 лет назад
Sam Hocevar
da6b3d5cd0
scenegraph: Entity::TickDraw() now provides a reference to the current
scene so that g_scene can be deprecated later.
10 лет назад
Sam Hocevar
c9b8ff54a1
misc: some refactoring in texture handling.
10 лет назад
Sam Hocevar
c29058ac87
gpu: give access to the Texture behind a TileSet.
10 лет назад
Sam Hocevar
ca87acd033
scene: fix light object usage in various demos and example programs.
11 лет назад
Sam Hocevar
5f3ad5cc15
math: add constant vectors vec2::zero, vec2::axis_x, etc.
11 лет назад
Benlitz
eab5c46b1e
input: added a name the controllers, and a static Get() function to easily retrieve a registered controller
11 лет назад
Sam Hocevar
b45c1dc7fe
physics: always activate Bullet and remove dead code.
11 лет назад
Benjamin ‘Touky’ Huet
83cfb79f8e
btphystest : InitApp delay
11 лет назад
Benjamin ‘Touky’ Huet
fb7d8a25e2
btphystest tweak to delay app init.
11 лет назад
Benjamin ‘Touky’ Huet
5f3b0157e6
btphystest : small damp tweak.
11 лет назад
Benjamin ‘Touky’ Huet
876f62228c
btphystest : added new camera functions. Added funny camera stuff for cat simulation.
11 лет назад
Benjamin ‘Touky’ Huet
67d59ae9cb
btphystest : added small border effect
11 лет назад
Lolbot
4f2663acd9
fixed 4 files out of 2792:
- removed 6 CR characters
- removed 24 trailing whitespaces
- replaced 15 tabs with spaces
- fixed 1 svn:eol-style properties
11 лет назад
Benjamin ‘Touky’ Huet
40a1a18758
btphystest : cat movement update
11 лет назад