Sam Hocevar
6dd7a0cb39
Another lowercase switching frenzy, because why not.
7 anos atrás
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 anos atrás
Sam Hocevar
144cb0df31
sys: get rid of pthreads.
Since C++11 threads are available on every platform that has threads, we
no longer need our pthread implementation. The LOL_FEATURE_CXX11_THREADS
macro is gone, too, and we now just use LOL_FEATURE_THREADS.
Note that it is still necessary to link with -lpthread or -pthread on
some platforms, so we don’t throw that part away.
11 anos atrás
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 anos atrás
Benjamin ‘Touky’ Huet
a7d6e0190e
Scene stuff is back to non-static logic with a few tricks
Scene rendering logic is now better
11 anos atrás
Benjamin ‘Touky’ Huet
71ee91fcb1
MultiplMultiScene: Phase 2: No more g_scene access and multiple scene calls support
11 anos atrás
Sam Hocevar
a07844682e
build: remove dead PS3 code.
11 anos atrás
Sam Hocevar
8657a3adfa
sys: use std::bind for thread workers to avoid ugly casts.
11 anos atrás
Sam Hocevar
d373081b80
build: use #pragma once instead of header guards because 1) fuck the dinosaurs,
and 2) fuck the Visual Studio compiler that crashes when confused.
11 anos atrás
Sam Hocevar
cd988786b9
build: reorganise includes so that we can use precompiled headers later.
11 anos atrás
Sam Hocevar
fe665f85b4
base: strip core.h from its contents and put it in public/private headers.
11 anos atrás
Sam Hocevar
3862ad59dc
base: going on a lowercase rampage; today’s victim: Array.
11 anos atrás
Benjamin ‘Touky’ Huet
e04367b138
mouse input fix
12 anos atrás
Benjamin ‘Touky’ Huet
70395b5da2
Mouse support is now OK in NaCl
12 anos atrás
Benjamin ‘Touky’ Huet
056df1d9a0
NaCl build FIX
12 anos atrás
Benjamin ‘Touky’ Huet
3337671dfa
NaCl : First pass on input re-implementation
MViewer : Small tweak
12 anos atrás
Benjamin ‘Touky’ Huet
17109e369f
MessageService : Safe Enum added to ensure good usage.
12 anos atrás
Benjamin ‘Touky’ Huet
2e3c5e6e94
build FIX
12 anos atrás
Benjamin ‘Touky’ Huet
b0181eafd2
nacl-instance : ::HandleMessage now does a MessageService::Send()
12 anos atrás
Benjamin ‘Touky’ Huet
2c36522ece
nacl : CODE FAIL. today is not the day.
12 anos atrás
Benjamin ‘Touky’ Huet
0c750b9fcd
nacl : deactivated input to get build back.
12 anos atrás
Sam Hocevar
39a8c26fb5
base: start removing occurrences of NULL on our long journey to nullptr.
13 anos atrás
Sam Hocevar
f44e3e323b
core: you can now while(app.MustTick()) { Tick(); } instead of app.Run().
13 anos atrás
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
13 anos atrás
Sam Hocevar
bd649af62d
nacl: NaCl binaries no longer need a modified main() to work, the NaCl
instance object takes care of everything for us.
14 anos atrás
Sam Hocevar
32f232e112
nacl: preliminary gamepad support in the NaCl backend.
14 anos atrás
Sam Hocevar
b83a7eccca
nacl: remove our old hack of #including the file containing main() from
the NaCl instance object. Now we properly override main() and we can at
last build all the executables as NaCl binaries.
14 anos atrás
Sam Hocevar
0a52e68f6f
math: rename matrix.h to vector.h and simplify some stuff, especially in
the matrix code itself.
14 anos atrás
Sam Hocevar
48bf48a4e4
math: move the Remez algorithm implementation to the core.
14 anos atrás
Sam Hocevar
0161879a84
core: try to merge Ticker and Emcee. Still not very good.
14 anos atrás
Sam Hocevar
e5df84100b
nacl: quick and dirty mouse support.
14 anos atrás
Sam Hocevar
6743bb45cd
nacl: the Mandelbrot zoomer is starting to work on NaCl.
14 anos atrás
Sam Hocevar
2edb8115e6
core: port all code to NativeClient. Nothing runs for now, but it builds.
14 anos atrás