Sam Hocevar
1186c08ad7
entity: add a flag system.
This lets us get rid of m_autorelease and m_destroy and we’ll be able
to implement init_game/init_draw later, for stuff that must happen
on the render thread.
5 years ago
Sam Hocevar
4ee191fbf4
engine: start working on a tickable object, cleaner than entities.
6 years ago
Sam Hocevar
1d8083af86
engine: get rid of the Dict class (WIP).
This was not a very smart class. We replace it with a bidirectional map.
6 years ago
Sam Hocevar
6dd7a0cb39
Another lowercase switching frenzy, because why not.
6 years ago
Sam Hocevar
37abf6193f
RIP lol::String ⚰️ LOL
7 years ago
Sam Hocevar
968f7c92bb
Get rid of String::format in favour of a std::string version.
7 years ago
Sam Hocevar
861568b146
misc: some cleanup in files, including UTF-8 BOM.
9 years ago
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 years ago
Benjamin ‘Touky’ Huet
cfcff9acc3
MultiScene: Phase 1: g_scene removal and conversion to Scene::
9 years ago
Sam Hocevar
a6c681d392
text: fix alignment when rendering text with inter-character spacing.
9 years ago
Sam Hocevar
591db6b866
text: fix a minor accuracy issue in the text alignment logic.
9 years ago
Sam Hocevar
d4e3ad4a4e
text: new features and minor refactoring.
Text objects now support character spacing (as a fraction of the character
width) and text scaling. Also, the alignment enum is now safe.
9 years ago
Sam Hocevar
3cd4c4d413
base: more lowercase shit.
10 years ago
Benjamin ‘Touky’ Huet
1756726fca
Added some shit in controller and text
10 years ago
Sam Hocevar
cd988786b9
build: reorganise includes so that we can use precompiled headers later.
10 years ago
Sam Hocevar
ad9a388e80
misc: remove 100% of the "using namespace std;" madness.
10 years ago
Sam Hocevar
fe665f85b4
base: strip core.h from its contents and put it in public/private headers.
10 years ago
Sam Hocevar
da6b3d5cd0
scenegraph: Entity::TickDraw() now provides a reference to the current
scene so that g_scene can be deprecated later.
10 years ago
Sam Hocevar
5ff15c08d4
core: Text constructor now wants a String object.
11 years ago
Sam Hocevar
6e282a674a
base: remove some sprintf() calls in profit of string ops.
12 years ago
Sam Hocevar
39a8c26fb5
base: start removing occurrences of NULL on our long journey to nullptr.
12 years ago
jeunathe
3e4469007a
added GetPos method to get text position
12 years ago
Benjamin ‘Touky’ Huet
c7219ff1dd
New year copyright update.
12 years ago
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
12 years ago
Sam Hocevar
90bfc79b22
core: tick methods now use seconds, like any sane system.
12 years ago
Sam Hocevar
b2d73f6310
core: prefix Entity members with m_ to avoid accidental shadowing.
13 years ago
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.
13 years ago
Sam Hocevar
2b9d64f7a8
core: more vec?i -> ?veci renames.
13 years ago
Sam Hocevar
3d4af0869a
ps3: start a minimal PS3 port using PSGL, but not CG yet.
13 years ago
Sam Hocevar
8848cf53db
Put everything in the "lol" namespace. Better late than never.
14 years ago
Sam Hocevar
6405ef32ea
Get rid of float3, float4, int3 etc. in favour of GLSL types.
14 years ago
Sam Hocevar
50ed9ffecc
Test entity alignment features. Also, start working on the mouse tracking.
14 years ago
Sam Hocevar
8df4d092a5
Implement Text::SetInt().
14 years ago
Sam Hocevar
e9e1390454
Display mashed monsterz statistics, up to 12 icons.
14 years ago
Sam Hocevar
1dbd80b2a0
Text objects don't do bold by default. The fonts themselves should be bold.
14 years ago
Sam Hocevar
f76b95f200
Rename Float3 to float3, Int3 to int3 etc. and add the 4-member versions.
14 years ago
Sam Hocevar
c43194554f
Add a Text object for OSD and possibly other effects.
14 years ago