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.
10 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.
10 years ago
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
10 years ago
Benjamin ‘Touky’ Huet
2170b89b11
MultiScene: Phase 4: Added SceneDisplay class to have multiple windows + implementation with SDL. Not with the others.
10 years ago
Benjamin ‘Touky’ Huet
49e1588f52
MultiScene: Phase 3: Small PrimitiveSource & PrimitiveRenderer tweaks
10 years ago
Benjamin ‘Touky’ Huet
a7d6e0190e
Scene stuff is back to non-static logic with a few tricks
Scene rendering logic is now better
10 years ago
Benjamin ‘Touky’ Huet
fc35f25d3e
Fixed the scene destroy crash
10 years ago
Benjamin ‘Touky’ Huet
71ee91fcb1
MultiplMultiScene: Phase 2: No more g_scene access and multiple scene calls support
10 years ago
Benjamin ‘Touky’ Huet
25603464d1
Added DRAWGROUP_NONE for entities that don't want to be DrawTicked (for Batcher entities or SpatialPartitioning)
10 years ago
Benjamin ‘Touky’ Huet
cfcff9acc3
MultiScene: Phase 1: g_scene removal and conversion to Scene::
10 years ago
Sam Hocevar
8657a3adfa
sys: use std::bind for thread workers to avoid ugly casts.
11 years ago
Benjamin ‘Touky’ Huet
a89dac5c30
Fixed some stuff and added some small tweaks
11 years ago
Sam Hocevar
cd988786b9
build: reorganise includes so that we can use precompiled headers later.
11 years ago
Sam Hocevar
7dba2ff3a1
base: use ptrdiff_t for array and string sizes and some other things.
11 years ago
Sam Hocevar
fe665f85b4
base: strip core.h from its contents and put it in public/private headers.
11 years ago
Sam Hocevar
3862ad59dc
base: going on a lowercase rampage; today’s victim: Array.
11 years ago
Sam Hocevar
8d99eb3715
base: fix some typos that prevented disabling asserts.
11 years ago
Sam Hocevar
da6b3d5cd0
scenegraph: Entity::TickDraw() now provides a reference to the current
scene so that g_scene can be deprecated later.
11 years ago
Benjamin ‘Touky’ Huet
b1fbc0259f
Added Mask & StickyTime to Draw Debug
11 years ago
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 years ago
Sam Hocevar
f193bc2caa
scene: break text rendering again so that 2D games work properly...
12 years ago
Sam Hocevar
aab8ecfd3e
core: fix grave logic bugs in the entity ticker.
12 years ago
Sam Hocevar
a65c0b7749
ticker: replace linked lists wih dynamic arrays for entity groups.
12 years ago
Sam Hocevar
ad8144f0e8
scene: use a global g_scene object instead of Scene::GetDefault().
12 years ago
Sam Hocevar
13fb52cebe
gpu: move Video::Clear to Renderer::Clear.
12 years ago
Sam Hocevar
1b213612a5
gpu: handle depth test, alpha blending and face culling in Renderer.
12 years ago
Sam Hocevar
98f8246323
build: lol-build now passes flags to configure, and configure now uses
optimisation flag -Os instead of -O3.
12 years ago
Sam Hocevar
a6e65e3e0c
base: don’t wait for next frame on Emscripten builds.
12 years ago
Sam Hocevar
f852e8d7e1
build: a lot more emscripten build fixes.
12 years ago
Sam Hocevar
edffeb6d2e
base: refactor Ticker so that it may one day work without threads.
12 years ago
Sam Hocevar
9819425ba0
math: replace RandF() with a more generic rand() template function
that lets us draw integer random values too.
12 years ago
Sam Hocevar
39a8c26fb5
base: start removing occurrences of NULL on our long journey to nullptr.
13 years ago
Sam Hocevar
bb28344eb7
build: fix compiler warnings and Linux and PS3 build issues.
13 years ago
Sam Hocevar
e086100292
base: add some minor randomness to the main Ticker.
13 years ago
Sam Hocevar
b221629ae0
base: start being more aggressive in the error reportings; most error
messages in the Ticker class are now full asserts.
13 years ago
Benjamin ‘Touky’ Huet
c7219ff1dd
New year copyright update.
13 years ago
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
13 years ago
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 years ago
Sam Hocevar
3829380c3c
core: revert unfinished commit that wasn't really interesting.
13 years ago
Sam Hocevar
0b7c51b992
ofsdiofisdoifods
13 years ago
Sam Hocevar
51bf8067a9
gpu: get rid of the glClearColor, glClearDepth and glClear calls in all
projects, we now use Video::SetClearColor, Video::SetClearDepth and
Video::Clear instead, so that the Direct3D equivalents can be called.
13 years ago
Sam Hocevar
400c75a69c
core: clamp deltatime to 15 fps to avoid erratic behaviour.
13 years ago
Sam Hocevar
456dbe134e
core: make the IO thread exit cleanly.
13 years ago
Sam Hocevar
b4b2019efc
core: the IO thread tweak needn't be PS3-specific.
13 years ago
Sam Hocevar
4c6b4b9e14
core: display names for entities that forget to call Entity::Tick*.
13 years ago
Sam Hocevar
9a95a8ec30
ps3: fix CPU and stack size performance issues on the PS3.
13 years ago
Sam Hocevar
23a55c53fe
core: workaround for systems that don't like thread exiting early.
13 years ago
Sam Hocevar
c035a1c2b7
core: fix a few build warnings and remove useless operators from the
"half" class. The build is now 3% faster.
13 years ago
Sam Hocevar
bfada5d920
core: move some of the camera view logic from the Video class to the
Scene and Camera classes.
13 years ago
Sam Hocevar
90bfc79b22
core: tick methods now use seconds, like any sane system.
13 years ago