Commit graph

165 commits

Author SHA1 Message Date
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
Gered b604885c95 whitespace 2013-08-25 13:21:58 -04:00
Gered b28498fae6 extend methods by which the correct assets path is "discovered" 2013-08-25 13:21:51 -04:00
Gered c72838c7fd add state manager OnUnload call in BasicGameApp 2013-08-25 13:02:15 -04:00
Gered 17f41fe218 fix how OnUnload and OnLostContext game app callbacks are invoked
The game app's callbacks should fire before the framework object's
equivalent callbacks are called (since most of those will forcefully
free resources that the game app should be given the chance to deal with
itself first)
2013-08-25 13:01:58 -04:00
Gered 52a262659f refactor forceful state/process removal code. add OnUnload callback to StateManager 2013-08-25 13:00:26 -04:00
Gered bce646819d add method to remove tile animation sequences 2013-08-25 12:44:39 -04:00
Gered 2825e9feb6 add TextureAtlasTileAnimator (ported) 2013-08-25 12:35:16 -04:00
Gered f9386ed8cf add Image constructor/copy method overloads accepting a Rect 2013-08-25 11:25:49 -04:00
Gered faf5d09ca1 add tile grid addition support to CustomTextureAtlas 2013-08-25 10:47:06 -04:00
Gered d1f874e32f move texture atlas classes into a separate namespace 2013-08-25 10:40:44 -04:00
Gered 860a10237a sillyness 2013-08-24 22:36:33 -04:00
Gered f48a599411 remove unused field 2013-08-24 22:18:58 -04:00