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