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 лет назад