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.
hace 6 años
Sam Hocevar
37abf6193f
RIP lol::String ⚰️ LOL
hace 7 años
Sam Hocevar
44e39867b1
Fix approximately 80 billion compilation warnings.
hace 7 años
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 .....)
hace 8 años
touky
19545aa446
imgui extension + tileset
imGui docking extension tweak
tileset new getters
hace 8 años
Sam Hocevar
969911a10a
gpu: remove 1200 lines of old DirectX 9 code.
hace 8 años
Sam Hocevar
3d95e93cea
tileset: remove an old PS3 hack.
hace 8 años
Sam Hocevar
848344cc7b
build: fix some issues with WIN32_LEAN_AND_MEAN redefinitions.
hace 9 años
Sam Hocevar
d84605c105
Remove Xbox 360 support, too much stuff no longer compiles.
hace 9 años
Sam Hocevar
3eb7db5e4d
tileset: rename AddTile() to define_tile().
This is to avoid confusion with Scene::AddTile().
hace 9 años
Sam Hocevar
6f1b4353a8
scene: make the sprite tile API use matrices internally.
The old public API is maintained for now but should be considered
deprecated.
hace 9 años
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.
hace 9 años
Sam Hocevar
2fa398926d
math: improve the 2D and 3D box classes.
Box objects (AABB) now have the long awaited extent() and center()
methods. Corners are now called “aa” and “bb” for convenience. The
WorldEntity class uses a box3 for its AABB instead of two vec3s.
This allows us to simplify a lot of verbose code.
hace 10 años
Sam Hocevar
6914c4e05e
tileset: disable weird inheritance code.
This sort of pImpl inheritance code code was weird, I got rid of it
and added a new pointer in the TileSet class instead.
hace 10 años
Benjamin ‘Touky’ Huet
bd9fddc5d9
Split Tileset in TextureImage -> Tileset
Added Texture (by image) update in TextureImage (and tileset)
Added lolimgui first integration pass
hace 10 años
Sam Hocevar
cd988786b9
build: reorganise includes so that we can use precompiled headers later.
hace 10 años
Sam Hocevar
d88217d413
base: fix header inconsistencies that broke the build.
hace 10 años
Sam Hocevar
ad9a388e80
misc: remove 100% of the "using namespace std;" madness.
hace 10 años
Sam Hocevar
fe665f85b4
base: strip core.h from its contents and put it in public/private headers.
hace 10 años
Sam Hocevar
3862ad59dc
base: going on a lowercase rampage; today’s victim: Array.
hace 10 años
Sam Hocevar
12d249f3fa
image: add Convolution() method, with optimisation for separable filters.
hace 10 años
Sam Hocevar
da6b3d5cd0
scenegraph: Entity::TickDraw() now provides a reference to the current
scene so that g_scene can be deprecated later.
hace 10 años
Sam Hocevar
227411f337
image: refactor codecs so that they no longer store anything in the image
objects themselves.
hace 10 años
Sam Hocevar
f455f0e2d1
image: start reworking the Image class to properly split the pixel handling
and the codec logic.
hace 10 años
Sam Hocevar
d16595a0bc
image: some refactoring of the Image class. Not final.
hace 10 años
Sam Hocevar
44dec8612e
core: fix minor Windows and Raspberry compilation issues.
hace 10 años
Benjamin ‘Touky’ Huet
f5e37a4337
AddedSprite_sorter stores parameters now.
Added palette in Scene.
hace 10 años
Benjamin ‘Touky’ Huet
a78293bf92
tileset zoom fix -sowwwwy-
hace 10 años
Benjamin ‘Touky’ Huet
58a0c1001a
ThreadManager is now an entity, it's awesooooome
hace 10 años
Benjamin ‘Touky’ Huet
3d4b3d53c3
Added bunch of stuff on threads and images.
hace 10 años
Sam Hocevar
c9b8ff54a1
misc: some refactoring in texture handling.
hace 10 años
Sam Hocevar
c29058ac87
gpu: give access to the Texture behind a TileSet.
hace 10 años
Sam Hocevar
32143b8bb4
scene: allow to rotate sprites around the Z axis.
hace 11 años
Sam Hocevar
6c0cab193c
scene: position sprite tiles from their centre instead of their corner.
hace 11 años
Sam Hocevar
7c8fc6df12
gpu: move more platform-specific code from Video to Render.
hace 11 años
Benlitz
60b06ee98e
added BytesPerPixel() method to PixelFormat structure
hace 11 años
Sam Hocevar
95369e26db
base: a few minor style tweaks.
hace 12 años
Sam Hocevar
9a752c84d8
tileset: refactor the tile generation code.
hace 12 años
Sam Hocevar
9e236b8946
gpu: fix several bugs introduced by the tileset refactoring.
hace 12 años
Sam Hocevar
d34d31dae0
base: some refactoring in the tileset class.
hace 12 años
Sam Hocevar
aeda5c74f7
gpu: ugly hack to avoid sprite artifacts on the PS3.
hace 12 años
Sam Hocevar
d4dcdb75e6
gpu: account for the HLSL half-texel offset on the PS3.
hace 12 años
Sam Hocevar
e6b0bd07bf
image: hide the constructor behind a factory so that we can later
return an already created object if necessary.
hace 12 años
Sam Hocevar
f16704ecb0
image: GetData returns uint8_t* instead of void*, it's a lot safer.
hace 12 años
Sam Hocevar
c46b3fbfec
image: remove the Image::Format enum and use PixelFormat instead.
hace 12 años
Sam Hocevar
6e282a674a
base: remove some sprintf() calls in profit of string ops.
hace 12 años
Sam Hocevar
39a8c26fb5
base: start removing occurrences of NULL on our long journey to nullptr.
hace 12 años
Benjamin ‘Touky’ Huet
77dcb3c146
EasyMesh : vdecl/vbo flag test fixup.
Tileset : added GetTileSize().
hace 12 años
Benjamin ‘Touky’ Huet
a573b0908b
MeshViewer : Added shitty texture to bulletproof easymesh UV, and therefore correct wrongly set ones.
hace 12 años
Sam Hocevar
42fb9b6853
gpu: support 1-component (luminance) textures.
hace 12 años