Commit graph

177 commits

Author SHA1 Message Date
Gered 47933222cd add tilemap POJO for json serialization/deserialization 2013-08-28 23:57:26 -04:00
Gered 7638eac510 add tile data container serialize/deserialize overloads 2013-08-28 23:55:31 -04:00
Gered fb7b85d6ab add basic Tile serialize/deserialize to binary methods 2013-08-28 23:52:57 -04:00
Gered 7435ccfaed move texture atlas json deserializing classes into separate namespace
For consistency with how we laid out the json deserializing stuff for
tile mesh collections
2013-08-28 23:42:52 -04:00
Gered ff46db9d90 add TileMeshCollectionLoader 2013-08-28 23:39:49 -04:00
Gered 420f134654 type changes 2013-08-28 23:26:02 -04:00
Gered d9511e5b46 incorrect field name 2013-08-28 23:01:45 -04:00
Gered 4d6fd90943 add POCO's for json deserialization of tile mesh collections
This includes some extras for tile meshes using arbitrary models which
haven't been implemented yet (as a subclass of TileMesh)
2013-08-28 22:48:00 -04:00
Gered 6ba60825ce add #regions 2013-08-28 18:33:38 -04:00
Gered 68ea526f34 set fields 2013-08-28 18:26:49 -04:00
Gered 4a1d80ce4f add TilePrefab 2013-08-28 18:22:09 -04:00
Gered 7118479528 add light source / sky light spreading lighter implementation (port) 2013-08-27 23:26:10 -04:00
Gered 6e2bb80b32 add LitChunkVertexGenerator (ported java code that wasn't working perfectly...) 2013-08-27 23:13:19 -04:00
Gered 71a9e92bc1 should be virtual 2013-08-27 22:39:34 -04:00
Gered 7b79d83b32 add basic tile map lighter implementations (sky lighting only) 2013-08-27 22:28:45 -04:00
Gered f86aa3059d use zero-size VBO's in ChunkVertexGenerator 2013-08-27 22:19:24 -04:00
Gered d3bff35dd8 use a zero-size initially for GeometryDebugRenderer 2013-08-27 22:19:02 -04:00
Gered 55f697ae6c change the way RemainingElements calculates and remove safety from MoveNext/Previous
This is mainly to fix a problem where it's not exactly intuitive to code
a loop which runs through a buffer using MoveNext() up until the end of
RemainingElements. When the loop ends, you'd expect to be able to take
that same buffer, Extend() it, and be able to immediately start running
through it again without calling MoveNext() one extra time inbetween
both loops. This fix makes it so this kind of "intuitive" usage pattern
works, at the expense of no automatic bounds safety with CurrentPosition
2013-08-27 22:10:03 -04:00
Gered 5a37b8bdfe update IndexBuffer to also allow zero-size 2013-08-27 21:34:28 -04:00
Gered 85f57cd733 more protections against invalid copy operations 2013-08-27 21:26:55 -04:00
Gered 68a401a463 don't allow zero length VBO's to be used as a source to copy from 2013-08-27 21:25:26 -04:00
Gered 07fd5baa8e allow zero length VBO
For when we, upon initially creating the object, don't know what the
size should be, but will need be calling Extend() when we do know.
2013-08-27 21:14:01 -04:00
Gered 7fcf8d88a0 crappy "fix" for vertex buffer sizing problem - manually track the "real" count of vertices
Need to properly fix this in VertexBuffer itself, problems with how
the extending / remaining space calculations work (or at least, our
current usage of them)
2013-08-25 22:28:08 -04:00
Gered c8be3f5c8f fix incorrect render call 2013-08-25 22:26:50 -04:00
Gered cb60306944 add TileMap and Chunk renderers 2013-08-25 21:50:27 -04:00
Gered 03c7a83471 missed probably the most important call ... 2013-08-25 19:57:20 -04:00
Gered c48e99127a add Tile.GetTransformationFor() overload returning a nullable Matrix4x4 2013-08-25 19:56:23 -04:00
Gered 4946006e8d use ref parameters in a few more places where able 2013-08-25 19:53:34 -04:00
Gered d20837e199 add ChunkVertexGenerator 2013-08-25 19:50:37 -04:00
Gered e1b5cb9c0c add TileMap 2013-08-25 18:49:14 -04:00
Gered c9938b7805 add TileChunk 2013-08-25 18:23:14 -04:00
Gered 8ffa17555b add TileContainer base class 2013-08-25 17:37:03 -04:00
Gered 3b146aa99f add TileMeshCollection 2013-08-25 16:57:40 -04:00
Gered 5a8217f9e3 i knew there was a reason i didn't have these overloads originally... 2013-08-25 16:38:06 -04:00
Gered 2c027e0ced fix porting mistake 2013-08-25 16:34:55 -04:00
Gered a482945da3 add CubeTileMesh 2013-08-25 16:33:24 -04:00
Gered 0f3e57b9f5 add additional common vertex attribute declaration 2013-08-25 16:33:13 -04:00
Gered 14edf14d39 add bounding volume constructor overloads to copy from other instances 2013-08-25 16:32:58 -04:00
Gered 2ccdb391bc add texture coordinate scaling helper methods 2013-08-25 16:01:55 -04:00
Gered 96246f47c1 add TileMesh base class 2013-08-25 15:43:36 -04:00
Gered 6e5bae1246 add TileRawDataContainer interface 2013-08-25 15:33:04 -04:00
Gered 0ab14cf49f add Tile class 2013-08-25 15:31:25 -04:00
Gered c1c1ecdfb7 add specific exception for content manager / loader errors 2013-08-25 15:04:14 -04:00
Gered 340bebe354 add specific exception for errors when parsing config files 2013-08-25 15:01:39 -04:00
Gered c9b6279c2a add specific exception class for errors when using the service locator 2013-08-25 14:59:31 -04:00
Gered 825cee0dfc add overload which supports automatically picking out the directory name and using it as a texture path for loading an atlas's texture file with 2013-08-25 14:36:49 -04:00
Gered 2eaea03dba add support for loading a texture atlas from a JSON file 2013-08-25 14:28:11 -04:00
Gered 46e0c96757 add Json.NET PCL library 2013-08-25 14:17:04 -04:00
Gered 247137383d resizeable window 2013-08-25 13:22:59 -04:00
Gered d3e771525b set working directory to the solution directory 2013-08-25 13:22:48 -04:00