Sam Hocevar
6ffaca4bbd
engine: move some files around.
il y a 9 ans
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.
il y a 9 ans
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.
il y a 9 ans
Lolbot
4a7d0ca2c5
fixed 36 files out of 4318:
- removed 18805 CR characters
- removed 774 trailing whitespaces
- replaced 1922 tabs with spaces
- fixed 31 svn:eol-style properties
il y a 9 ans
Benjamin ‘Touky’ Huet
bd9fddc5d9
Split Tileset in TextureImage -> Tileset
Added Texture (by image) update in TextureImage (and tileset)
Added lolimgui first integration pass
il y a 9 ans
Sam Hocevar
d373081b80
build: use #pragma once instead of header guards because 1) fuck the dinosaurs,
and 2) fuck the Visual Studio compiler that crashes when confused.
il y a 10 ans
Sam Hocevar
d88217d413
base: fix header inconsistencies that broke the build.
il y a 10 ans
Sam Hocevar
7dba2ff3a1
base: use ptrdiff_t for array and string sizes and some other things.
il y a 10 ans
Sam Hocevar
da6b3d5cd0
scenegraph: Entity::TickDraw() now provides a reference to the current
scene so that g_scene can be deprecated later.
il y a 10 ans
Benjamin ‘Touky’ Huet
f5e37a4337
AddedSprite_sorter stores parameters now.
Added palette in Scene.
il y a 10 ans
Benjamin ‘Touky’ Huet
36b5b9e228
tweaks
il y a 10 ans
Benjamin ‘Touky’ Huet
3d4b3d53c3
Added bunch of stuff on threads and images.
il y a 10 ans
Sam Hocevar
c9b8ff54a1
misc: some refactoring in texture handling.
il y a 10 ans
Sam Hocevar
c29058ac87
gpu: give access to the Texture behind a TileSet.
il y a 10 ans
Sam Hocevar
32143b8bb4
scene: allow to rotate sprites around the Z axis.
il y a 10 ans
Sam Hocevar
6c0cab193c
scene: position sprite tiles from their centre instead of their corner.
il y a 10 ans
Sam Hocevar
bd2abf9a78
mrpigeon: try the new tile definition system… which doesn’t work.
il y a 11 ans
Sam Hocevar
9a752c84d8
tileset: refactor the tile generation code.
il y a 11 ans
Sam Hocevar
d34d31dae0
base: some refactoring in the tileset class.
il y a 11 ans
Sam Hocevar
d4dcdb75e6
gpu: account for the HLSL half-texel offset on the PS3.
il y a 11 ans
Benjamin ‘Touky’ Huet
77dcb3c146
EasyMesh : vdecl/vbo flag test fixup.
Tileset : added GetTileSize().
il y a 11 ans
Benjamin ‘Touky’ Huet
a573b0908b
MeshViewer : Added shitty texture to bulletproof easymesh UV, and therefore correct wrongly set ones.
il y a 11 ans
Benjamin ‘Touky’ Huet
c7219ff1dd
New year copyright update.
il y a 12 ans
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
il y a 12 ans
Sam Hocevar
90bfc79b22
core: tick methods now use seconds, like any sane system.
il y a 12 ans
Sam Hocevar
f7770f7387
gpu: add an Unbind() method for textures for clean up. Unfortunately
the Scene code still breaks Direct3D rendering.
il y a 12 ans
Sam Hocevar
f35f4284b0
core: allow each blitted tile to be stretched differently.
il y a 12 ans
Sam Hocevar
edfa3dfc4b
core: allow to stretch 2D sprits in both X and Y directions.
il y a 12 ans
Sam Hocevar
2b9d64f7a8
core: more vec?i -> ?veci renames.
il y a 13 ans
Sam Hocevar
6bbe943492
core: rename vec2i to ivec2 etc. to better match GLSL.
il y a 13 ans
Sam Hocevar
dc13c1f742
tiler: ensure AddTile() and BlitTile() accept vec3i arguments.
il y a 13 ans
Sam Hocevar
1fb4205d61
tiler: Tiler::GetSize can now return a different value for different tiles.
il y a 13 ans
Sam Hocevar
22b7a41c2e
core: fix include guard naming scheme.
il y a 13 ans
Sam Hocevar
8848cf53db
Put everything in the "lol" namespace. Better late than never.
il y a 13 ans
Sam Hocevar
6405ef32ea
Get rid of float3, float4, int3 etc. in favour of GLSL types.
il y a 13 ans
Sam Hocevar
9a66d6b1bb
Switch scene rendering method to vertex buffer objects.
il y a 14 ans
Sam Hocevar
bcca962ba9
Allow to query for a tileset's size and/or number of tiles.
il y a 14 ans
Sam Hocevar
375d7ee14d
TileSets can now be initialised either using the tile size, or the
known number of tiles in a row and a column. Necessary for ticket #24 .
il y a 14 ans
Sam Hocevar
5ebe9f9c85
Add support for rotated views and stretched tiles.
il y a 14 ans
Sam Hocevar
0ed566d3cc
Complete Lol Engine / Deus Hax / Monsterz split.
il y a 14 ans
Sam Hocevar
c73ee58065
The Tile size can now be specified upon TileSet load. Add a sample
with the Monsterz tiles.
il y a 14 ans
Sam Hocevar
54a05e0c2c
Allow for different priorities in game and draw tick levels.
il y a 14 ans
Sam Hocevar
57a0cb5102
Refactor stuff.
il y a 14 ans
Sam Hocevar
3bb8c8aa2f
Factor Forge and Tiler using the new Dict class.
il y a 14 ans
Sam Hocevar
50e4f67254
Get the timer to talk milliseconds instead of seconds.
il y a 14 ans
Sam Hocevar
4d63ad6ada
Rename "asset" to "entity". It's way cooler.
il y a 14 ans
Sam Hocevar
2edd7f4dbf
Start to handle differences between vertical and horizontal tiles.
il y a 14 ans
Sam Hocevar
47bf73f680
Make the Game class an asset like the others.
il y a 14 ans
Sam Hocevar
9112d94d19
Create a helper class for easy scene setup. Highly reduces the number
of includes in a few source files.
il y a 14 ans
Sam Hocevar
183b24bf51
Do not tick destroyed objects.
il y a 14 ans