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 години