touky
24d9405ff3
ResourceLoader + tileset tweaks
Moved ImageLoader to ResourceLoader, so that loading is extensible.
i.e. here: Zed image loader now loads up a tileset instead of being a
hacked image loader.
Goal is to support more funky stuff (wad, pak .....)
9 lat temu
Sam Hocevar
861568b146
misc: some cleanup in files, including UTF-8 BOM.
10 lat temu
Sam Hocevar
d64b117b8d
build: fix license and copyright information.
10 lat temu
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 lat temu
Benjamin ‘Touky’ Huet
e1d1ecfd81
Added AsyncImageLoader to load images on threads
Inverted image/all.h and thread/all.h to ensure build
Added Image::DummyFill that uses DummyImageCodec to fill empty image
Added Log:: Error/Info in image Load/Save
10 lat temu
Sam Hocevar
cd988786b9
build: reorganise includes so that we can use precompiled headers later.
11 lat temu
Sam Hocevar
ad9a388e80
misc: remove 100% of the "using namespace std;" madness.
11 lat temu
Sam Hocevar
fe665f85b4
base: strip core.h from its contents and put it in public/private headers.
11 lat temu
Sam Hocevar
3862ad59dc
base: going on a lowercase rampage; today’s victim: Array.
11 lat temu
Sam Hocevar
227411f337
image: refactor codecs so that they no longer store anything in the image
objects themselves.
11 lat temu
Sam Hocevar
f455f0e2d1
image: start reworking the Image class to properly split the pixel handling
and the codec logic.
11 lat temu
Sam Hocevar
d982b67aaa
image: add methods to save images and a small test program.
11 lat temu
Sam Hocevar
92385ac1ee
android: more NativeActivity migration work.
12 lat temu
Sam Hocevar
98f8246323
build: lol-build now passes flags to configure, and configure now uses
optimisation flag -Os instead of -O3.
12 lat temu
Sam Hocevar
f16704ecb0
image: GetData returns uint8_t* instead of void*, it's a lot safer.
12 lat temu
Sam Hocevar
c46b3fbfec
image: remove the Image::Format enum and use PixelFormat instead.
12 lat temu
Sam Hocevar
39a8c26fb5
base: start removing occurrences of NULL on our long journey to nullptr.
13 lat temu
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
13 lat temu
Sam Hocevar
291fd0c3c6
android: if current thread is unknown to the JVM, try to register it.
13 lat temu
Sam Hocevar
28728814cc
core: replace usage of sin() or std::sin() with lol::sin() where appropriate.
13 lat temu
Sam Hocevar
fe0d76cede
build: fix PS3 and Android build; it was broken since the ImageData refactor.
14 lat temu
Sam Hocevar
a59f2efb07
build: bring the iOS port up to date by synchronising new source file
names with the project file.
14 lat temu
Sam Hocevar
abbf9ba44c
build: fix a shitload of build errors introduced by the Image refactoring
and the OS X port.
14 lat temu
Sam Hocevar
bcea65d273
core: remove calls to exit() in image loaders since they can now report
on errors.
14 lat temu
Sam Hocevar
c61ae1ffa7
core: implement dynamic registration of image loaders.
14 lat temu