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