Sam Hocevar
861568b146
misc: some cleanup in files, including UTF-8 BOM.
9 years ago
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
f139a7e164
LolImGui integration 2nd pass: It now works perfectly (to the extent of the api)
SDL2: Mouse is back ! With correct focus support
SDL2: Added typing support with keyboard
ShaderBuilder: Refactored and simplified Shader block creation
Several warning removal
Fixed Image::Copy
10 years ago
Benjamin ‘Touky’ Huet
bd9fddc5d9
Split Tileset in TextureImage -> Tileset
Added Texture (by image) update in TextureImage (and tileset)
Added lolimgui first integration pass
10 years ago
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 years ago
Sam Hocevar
3835dc62e0
base: minor variable renaming.
10 years ago
Sam Hocevar
a07844682e
build: remove dead PS3 code.
10 years ago
Sam Hocevar
f8b29001cd
base: convert map and avl_tree methods to lowercase. Because.
10 years ago
Sam Hocevar
90a60ba446
image: revert GDI+ animated GIF tests; we’ll try something else.
10 years ago
Sam Hocevar
28e8fd6834
image: first GIF encoder iteration.
10 years ago
Sam Hocevar
cd988786b9
build: reorganise includes so that we can use precompiled headers later.
10 years ago
Sam Hocevar
e2f53bb71a
image: fix bug introduced in Image::Lock2D().
10 years ago
Sam Hocevar
2a5150e060
base: VISUQL STUDIO JTE NIAUE Q LQ KQLQSH.
10 years ago
Sam Hocevar
fe665f85b4
base: strip core.h from its contents and put it in public/private headers.
10 years ago
Sam Hocevar
3862ad59dc
base: going on a lowercase rampage; today’s victim: Array.
10 years ago
Sam Hocevar
7e9f926c43
base: switch map, hash, array2d and array3d to lowercase, like standard
C++ containers.
10 years ago
Sam Hocevar
1ad2430ba9
image: implement Image::Lock2D().
10 years ago
Sam Hocevar
546e76987d
image: fix inconsistent data after image resizing.
10 years ago
Sam Hocevar
478b74c6fe
image: we can now read Oric .tap files.
10 years ago
Sam Hocevar
b369be3dd7
build: various Windows compilation fixes.
10 years ago
Sam Hocevar
1e23be81a0
base: remove Array::PushFirst() because Array::Insert(..., 0) works just
as well, remove PushUniqueFirst in favour of InsertUnique(), and optimise
Array::Swap().
10 years ago
Sam Hocevar
1dc1c0583a
image: port some error diffusion dithering algorithms.
10 years ago
Sam Hocevar
60a8a64c8f
image: fix two small but nasty bugs in the Image methods.
10 years ago
Sam Hocevar
eac62b436b
image: start to implement some conversions between pixel spaces.
10 years ago
Sam Hocevar
347e6a0551
image: port libpipi stock images, plus noise and screen rendering.
10 years ago
Sam Hocevar
9e08928ad3
base: allow to retrieve the keys in Map, and use that to clean up Image.
10 years ago
Sam Hocevar
5fc5d62849
image: add an optional Imlib2 codec, prepare for float32 images, make the
Lock/Unlock mechanism safer, and implement the rule of three.
10 years ago
Sam Hocevar
227411f337
image: refactor codecs so that they no longer store anything in the image
objects themselves.
10 years ago
Sam Hocevar
f455f0e2d1
image: start reworking the Image class to properly split the pixel handling
and the codec logic.
10 years ago
Benjamin ‘Touky’ Huet
809600ea47
Fixed Thread-safe image loading
10 years ago
Sam Hocevar
d16595a0bc
image: some refactoring of the Image class. Not final.
10 years ago
Sam Hocevar
d982b67aaa
image: add methods to save images and a small test program.
10 years ago
Benjamin ‘Touky’ Huet
3d4b3d53c3
Added bunch of stuff on threads and images.
10 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
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
1c3ca01ea0
build: fix a few compiler warnings here and there.
12 years ago
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
12 years ago
Sam Hocevar
28728814cc
core: replace usage of sin() or std::sin() with lol::sin() where appropriate.
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
fbdec834dd
image: add a GDI+ loader.
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
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
Sam Hocevar
6bbe943492
core: rename vec2i to ivec2 etc. to better match GLSL.
13 years ago
Sam Hocevar
df638532d8
image: error reporting in the Android image loading class.
13 years ago