Sam Hocevar
6dd7a0cb39
Another lowercase switching frenzy, because why not.
7 年之前
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.
7 年之前
Sam Hocevar
37abf6193f
RIP lol::String ⚰️ LOL
8 年之前
Sam Hocevar
1105a075ce
Rename lol::Timer to lol::timer. Because.
8 年之前
Sam Hocevar
aca1660e1e
Disable debug messages by default and downgrade a few messages.
From now on, msg::debug will not display anything, unless this is a debug
build, or the LOL_DEBUG environment variable is set.
8 年之前
Guillaume Bittoun
3525d1f317
Crash fix: first call to TickGame must not occur before TickDraw. referencing #3
9 年之前
Sam Hocevar
25ad63d33d
scene: add Scene::pre_render and post_render
This allows actors to perform draw commands in TickDraw(), even
if it’s not exactly what we want in the future.
9 年之前
Sam Hocevar
3a90766614
scene: start working on a postprocess mechanism.
Not all programs support this feature for now, but that’s because they
don’t support the scene framework either, and will need patching. Also
the default postprocess is deliberately exaggerated for now.
9 年之前
Sam Hocevar
581ecea541
engine: fix scene rendering.
Now TickDraw() can be called several times per frame, because we
may have several scenes. This is expected, but it will require
some adjustments later.
9 年之前
Sam Hocevar
861568b146
misc: some cleanup in files, including UTF-8 BOM.
11 年之前
Sam Hocevar
6ffaca4bbd
engine: move some files around.
11 年之前
Sam Hocevar
70edc0d38e
misc: carry on with the lowercase rampage.
Using “Array” instead of “array” is now fully deprecated, and I replaced
the Log::Debug() etc. functions with msg::debug() etc. because log:: was
unavailable due to being a maths function.
Added up-to-date copyright notice and BOM to modified files, just in case.
11 年之前
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.
11 年之前
Benjamin ‘Touky’ Huet
7605caace4
MultiScene: Phase 4: Rendering is fixed.
Though it still is not possible to create a new window from a thread that did not init SDL
11 年之前
Benjamin ‘Touky’ Huet
2170b89b11
MultiScene: Phase 4: Added SceneDisplay class to have multiple windows + implementation with SDL. Not with the others.
11 年之前
Benjamin ‘Touky’ Huet
49e1588f52
MultiScene: Phase 3: Small PrimitiveSource & PrimitiveRenderer tweaks
11 年之前
Benjamin ‘Touky’ Huet
a7d6e0190e
Scene stuff is back to non-static logic with a few tricks
Scene rendering logic is now better
11 年之前
Benjamin ‘Touky’ Huet
fc35f25d3e
Fixed the scene destroy crash
11 年之前
Benjamin ‘Touky’ Huet
71ee91fcb1
MultiplMultiScene: Phase 2: No more g_scene access and multiple scene calls support
11 年之前
Benjamin ‘Touky’ Huet
25603464d1
Added DRAWGROUP_NONE for entities that don't want to be DrawTicked (for Batcher entities or SpatialPartitioning)
11 年之前
Benjamin ‘Touky’ Huet
cfcff9acc3
MultiScene: Phase 1: g_scene removal and conversion to Scene::
11 年之前
Sam Hocevar
8657a3adfa
sys: use std::bind for thread workers to avoid ugly casts.
11 年之前
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
7dba2ff3a1
base: use ptrdiff_t for array and string sizes and some other things.
11 年之前
Sam Hocevar
fe665f85b4
base: strip core.h from its contents and put it in public/private headers.
11 年之前
Sam Hocevar
3862ad59dc
base: going on a lowercase rampage; today’s victim: Array.
11 年之前
Sam Hocevar
8d99eb3715
base: fix some typos that prevented disabling asserts.
11 年之前
Sam Hocevar
da6b3d5cd0
scenegraph: Entity::TickDraw() now provides a reference to the current
scene so that g_scene can be deprecated later.
11 年之前
Benjamin ‘Touky’ Huet
b1fbc0259f
Added Mask & StickyTime to Draw Debug
12 年之前
Benlitz
c1da4619f7
input: renamed xinput keys to something more human readable (such as A or DPadLeft) and inverted mouse Y axis to match joystick axis (negatives being up)
core: calling InitGame() at the first tick of an entity. InitDraw is still uncalled yet
fixed mrpigeon and orbital accordingly
12 年之前
Sam Hocevar
f193bc2caa
scene: break text rendering again so that 2D games work properly...
12 年之前
Sam Hocevar
aab8ecfd3e
core: fix grave logic bugs in the entity ticker.
12 年之前
Sam Hocevar
a65c0b7749
ticker: replace linked lists wih dynamic arrays for entity groups.
12 年之前
Sam Hocevar
ad8144f0e8
scene: use a global g_scene object instead of Scene::GetDefault().
12 年之前
Sam Hocevar
13fb52cebe
gpu: move Video::Clear to Renderer::Clear.
12 年之前
Sam Hocevar
1b213612a5
gpu: handle depth test, alpha blending and face culling in Renderer.
12 年之前
Sam Hocevar
98f8246323
build: lol-build now passes flags to configure, and configure now uses
optimisation flag -Os instead of -O3.
12 年之前
Sam Hocevar
a6e65e3e0c
base: don’t wait for next frame on Emscripten builds.
13 年之前
Sam Hocevar
f852e8d7e1
build: a lot more emscripten build fixes.
13 年之前
Sam Hocevar
edffeb6d2e
base: refactor Ticker so that it may one day work without threads.
13 年之前
Sam Hocevar
9819425ba0
math: replace RandF() with a more generic rand() template function
that lets us draw integer random values too.
13 年之前
Sam Hocevar
39a8c26fb5
base: start removing occurrences of NULL on our long journey to nullptr.
13 年之前
Sam Hocevar
bb28344eb7
build: fix compiler warnings and Linux and PS3 build issues.
13 年之前
Sam Hocevar
e086100292
base: add some minor randomness to the main Ticker.
13 年之前
Sam Hocevar
b221629ae0
base: start being more aggressive in the error reportings; most error
messages in the Ticker class are now full asserts.
13 年之前
Benjamin ‘Touky’ Huet
c7219ff1dd
New year copyright update.
13 年之前
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
13 年之前
Sam Hocevar
5f137d077c
debug: add minor debug messages to the ticker, ensure LOL_DEBUG and
LOL_RELEASE are set by msbuild, and use the debug PSGL on the PS3.
13 年之前
Sam Hocevar
3829380c3c
core: revert unfinished commit that wasn't really interesting.
13 年之前