Sam Hocevar
861568b146
misc: some cleanup in files, including UTF-8 BOM.
pirms 9 gadiem
Sam Hocevar
d64b117b8d
build: fix license and copyright information.
pirms 9 gadiem
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.
pirms 9 gadiem
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.
pirms 9 gadiem
Sam Hocevar
a07844682e
build: remove dead PS3 code.
pirms 10 gadiem
Sam Hocevar
cd988786b9
build: reorganise includes so that we can use precompiled headers later.
pirms 10 gadiem
Sam Hocevar
ad9a388e80
misc: remove 100% of the "using namespace std;" madness.
pirms 10 gadiem
Sam Hocevar
fe665f85b4
base: strip core.h from its contents and put it in public/private headers.
pirms 10 gadiem
Sam Hocevar
3862ad59dc
base: going on a lowercase rampage; today’s victim: Array.
pirms 10 gadiem
Sam Hocevar
c7a3c42a19
audio: report SDL mixer loading errors.
pirms 11 gadiem
Sam Hocevar
0c85df6717
audio: don't die when failing to load a sample with SDL.
pirms 11 gadiem
Sam Hocevar
75d4503a01
ps3: implement very simple audio playback.
pirms 11 gadiem
Sam Hocevar
6e282a674a
base: remove some sprintf() calls in profit of string ops.
pirms 11 gadiem
Sam Hocevar
f72381c28a
audio: add Sampler::LoopSample().
pirms 11 gadiem
Sam Hocevar
578ec1d413
audio: add a simple Stop() method to samples.
pirms 11 gadiem
Sam Hocevar
b12e6f914c
base: fix typo in sample.cpp that prevented sample loads.
pirms 11 gadiem
Sam Hocevar
ba1824ef83
sys: cycle through all possible directories to load resource files.
pirms 11 gadiem
Sam Hocevar
6a6e46cf0d
system: try to autodetect the data directory from the executable path;
currently works for images (SDL and GDI+ loaders) and sound samples.
pirms 12 gadiem
Benjamin ‘Touky’ Huet
c7219ff1dd
New year copyright update.
pirms 12 gadiem
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
pirms 12 gadiem
Sam Hocevar
9b5880936c
build: tweak everything to allow building with SDL on the Raspberry Pi.
pirms 12 gadiem
Sam Hocevar
28728814cc
core: replace usage of sin() or std::sin() with lol::sin() where appropriate.
pirms 12 gadiem
Sam Hocevar
90bfc79b22
core: tick methods now use seconds, like any sane system.
pirms 12 gadiem
Sam Hocevar
beb141dd5b
build: fix Win64 compilation with mingw64, using an updated SDL build.
pirms 13 gadiem
Sam Hocevar
3d4af0869a
ps3: start a minimal PS3 port using PSGL, but not CG yet.
pirms 13 gadiem
Sam Hocevar
1e5624d551
core: create a logger class to reduce printf usage.
pirms 13 gadiem
Sam Hocevar
700cfbd8ea
core: fix a few compilation errors and warnings on OS X.
pirms 13 gadiem
Sam Hocevar
8848cf53db
Put everything in the "lol" namespace. Better late than never.
pirms 13 gadiem
Sam Hocevar
e41dd3a949
Create the SdlApp class to avoid code duplication. Ensure USE_SDL is
tested wherever relevant.
pirms 13 gadiem
Sam Hocevar
4df4ba3a78
Get rid of the SHADER_CRAP macro and use LOL_EXPERIMENTAL instead,
together with the --enable-experimental flag. Use LOL_DEBUG and
LOL_RELEASE instead of the previous values.
pirms 13 gadiem
Sam Hocevar
d697fd40b1
Name tilers, samples and pieces for easier debugging.
pirms 14 gadiem
Sam Hocevar
87ed8cdf52
Print error reports before panicking when asset loads fail.
pirms 14 gadiem
Sam Hocevar
f84b659c62
Slightly change the ...Data initialisation in classes.
pirms 14 gadiem
Sam Hocevar
640735731a
Add preliminary support for sound samples. Implement click.
pirms 14 gadiem
Sam Hocevar
290c8f40d7
Skeleton for sample entity and sampler manager classes.
pirms 14 gadiem