Sam Hocevar
|
6faf4ee067
|
base: roll our own constants because it’s always a pain in the ass
to get M_PI from the platform headers and cast it to float.
|
12 years ago |
Sam Hocevar
|
ba58bbbdcd
|
ps3: implement Lua file loading.
|
12 years ago |
Sam Hocevar
|
c54ca8bf40
|
image: try to reuse existing images when loading them, and don't unload
tilesets yet, but make sure the architecture will allow it.
|
12 years ago |
Sam Hocevar
|
e6b0bd07bf
|
image: hide the constructor behind a factory so that we can later
return an already created object if necessary.
|
12 years ago |
Sam Hocevar
|
3106fcfd9d
|
image: fix an invalid implicit cast on Win32.
|
12 years ago |
Sam Hocevar
|
f16704ecb0
|
image: GetData returns uint8_t* instead of void*, it's a lot safer.
|
12 years ago |
Sam Hocevar
|
c46b3fbfec
|
image: remove the Image::Format enum and use PixelFormat instead.
|
12 years ago |
Sam Hocevar
|
1b07850346
|
build: a few iOS build fixes; nowhere near ready though.
|
12 years ago |
Sam Hocevar
|
3dd8f8118b
|
ps3: fix a bug and add better error reporting in the image loader.
|
12 years ago |
Sam Hocevar
|
39a8c26fb5
|
base: start removing occurrences of NULL on our long journey to nullptr.
|
12 years ago |
Sam Hocevar
|
1c3ca01ea0
|
build: fix a few compiler warnings here and there.
|
12 years ago |
Sam Hocevar
|
14447c6061
|
ps3: use System::GetPathList() to open images.
|
12 years ago |
Sam Hocevar
|
ba1824ef83
|
sys: cycle through all possible directories to load resource files.
|
12 years ago |
Sam Hocevar
|
4be5ebd8b3
|
ps3: use network fallback for image files.
|
12 years ago |
Sam Hocevar
|
bbf72e1a64
|
core: pass the project directory to the binary build and get rid of
that 2-year old "temporary Win32 hack".
|
12 years ago |
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.
|
12 years ago |
Sam Hocevar
|
99b0874652
|
color: simplify CIEDE2000 distance code.
|
12 years ago |
Sam Hocevar
|
b12c16448a
|
color: fix a mistake in the CIEDE2000 color-difference formula.
|
12 years ago |
Sam Hocevar
|
a5ba03b405
|
color: unit test data for the CIEDE2000 color-difference formula.
|
12 years ago |
Sam Hocevar
|
eae9dae863
|
color: fix typo in float table.
|
12 years ago |
Sam Hocevar
|
d8577e0ec7
|
color: move the CIEDE2000 distance code into the C++ file and
reorganise the CIE-1931 and CIE-1964 tables.
|
12 years ago |
Sam Hocevar
|
4e678e2cd0
|
color: linear interpolation for the wavelength to colour function.
|
12 years ago |
Sam Hocevar
|
44f324a354
|
color: add conversion from CIE-xyY to CIE-XYZ and start working on
a wavelength to saturated xyY function based on the standard observer
data.
|
12 years ago |
Sam Hocevar
|
d6634da83f
|
build: fix the WTFPL site URL in all code comments.
|
12 years ago |
Sam Hocevar
|
72a6839dce
|
image: better error detection in the GDI+ image codec.
|
12 years ago |
Sam Hocevar
|
291fd0c3c6
|
android: if current thread is unknown to the JVM, try to register it.
|
12 years ago |
Sam Hocevar
|
9b5880936c
|
build: tweak everything to allow building with SDL on the Raspberry Pi.
|
12 years ago |
Sam Hocevar
|
28728814cc
|
core: replace usage of sin() or std::sin() with lol::sin() where appropriate.
|
12 years ago |
Sam Hocevar
|
6eb41c04ff
|
win32: better error reporting in the GDI+ loader, based on a patch by ponce.
|
12 years ago |
Sam Hocevar
|
d855e72198
|
win32: the GDI+ byte swapping was wrong; fix that.
|
12 years ago |
Sam Hocevar
|
d539f3b80c
|
win32: shuffle bytes in GDI images to match what OpenGL supports.
|
12 years ago |
Sam Hocevar
|
ad64711c84
|
sdl: convert any opened image to 8 bit per channel because we don't have
any mechanism yet for uploading exotic formats to the GPU.
|
12 years ago |
Sam Hocevar
|
c0cb995fd2
|
win32: various compilation fixes, mostly project updates, but also a
workaround for a Visual Studio compiler bug (Connect Id #730878).
|
13 years ago |
Sam Hocevar
|
06d9d00c34
|
win32: no longer ship GDI+ because MinGW ships a working version, including
for Win64.
|
13 years ago |
Sam Hocevar
|
0a52e68f6f
|
math: rename matrix.h to vector.h and simplify some stuff, especially in
the matrix code itself.
|
13 years ago |
Sam Hocevar
|
48bf48a4e4
|
math: move the Remez algorithm implementation to the core.
|
13 years ago |
Sam Hocevar
|
7e337a0607
|
ps3: compilation fixes for the PS3.
|
13 years ago |
Sam Hocevar
|
01ebcec3b8
|
core: split vector operations into linear and non-linear so that we can
reuse the linear operations in quaternions. Also mark some constructors
explicit to better spot coding errors.
|
13 years ago |
Sam Hocevar
|
fbdec834dd
|
image: add a GDI+ loader.
|
13 years ago |
Sam Hocevar
|
fe0d76cede
|
build: fix PS3 and Android build; it was broken since the ImageData refactor.
|
13 years ago |
Sam Hocevar
|
a59f2efb07
|
build: bring the iOS port up to date by synchronising new source file
names with the project file.
|
13 years ago |
Sam Hocevar
|
abbf9ba44c
|
build: fix a shitload of build errors introduced by the Image refactoring
and the OS X port.
|
13 years ago |
Sam Hocevar
|
2435bd47ed
|
osx: automake does not support .mm files yet, so rename ios-image.mm back
to ios-image.cpp, but disable it on OS X because UIKit isn't available.
|
13 years ago |
Sam Hocevar
|
11dce0c620
|
ios: rename iOS image loader to .mm.
|
13 years ago |
Sam Hocevar
|
bcea65d273
|
core: remove calls to exit() in image loaders since they can now report
on errors.
|
13 years ago |
Sam Hocevar
|
c61ae1ffa7
|
core: implement dynamic registration of image loaders.
|
13 years ago |
Sam Hocevar
|
beb141dd5b
|
build: fix Win64 compilation with mingw64, using an updated SDL build.
|
13 years ago |
Sam Hocevar
|
7b7d4fe003
|
build: stop defining ANDROID_NDK and check for __ANDROID__ instead.
According to David Turner, “it should be the only thing that NDK users
should be testing again.”
|
13 years ago |
Sam Hocevar
|
6b1985d95f
|
android: keep a pointer on the global Java VM instead of the current
environment, so back-to-jvm techniques can work from any thread.
|
13 years ago |