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