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 година