Commit graph

88 commits

Author SHA1 Message Date
Gered 4b8deb90cb replace RenderContext with ViewContext. use registered "services" to hold the renderer objects that used to live in RenderContext 2013-11-10 12:28:44 -05:00
Gered 1f4d42ab4c add DebugShader which DebugGeometryRenderer now uses
rendering larger points not implemented yet, need to do a second-pass
render over the points generated in end(), but ImmediateModeRenderer
doesn't allow for this, short of using it to generate the list of
vertices twice
2013-10-27 17:35:07 -04:00
Gered 9174cae000 render using thicker lines 2013-10-27 17:30:37 -04:00
Gered 9e9409e957 override for begin(), defaulting to disabling depth testing 2013-10-27 16:58:19 -04:00
Gered 6540b570d6 begin() now allows setting whether to enable/disable depth testing 2013-10-27 16:57:30 -04:00
Gered 6d30c0c333 set depth test enabled 2013-10-27 16:54:54 -04:00
Gered 3b71772397 maybe a bit over the top with all these extra overloads? 2013-10-27 16:45:58 -04:00
Gered 6aba427e60 doc comment 2013-10-27 16:11:43 -04:00
Gered 38328e004d add DebugGeometryRenderer class 2013-10-27 16:07:04 -04:00
Gered 7849d1ad3a convenience helper for checking if an entity is inactive
I figure this is fine to add since InactiveComponent is a so-called
"system" component
2013-10-27 15:10:30 -04:00
Gered 873d16a592 convenience helpers for checking the preset type used to create an entity 2013-10-27 15:08:30 -04:00
Gered cf49f66e85 add entity filter method to find all entities created with a given preset 2013-10-27 11:33:08 -04:00
Gered 4f3b8ff2b7 remove -90 degree adjustment (hacky) and add new helper for getting the angle in the XZ plane between two Vector3s 2013-10-27 09:44:33 -04:00
Gered d5472b2701 wrong way to check if an object is an instance of a given type 2013-10-21 12:33:23 -04:00
Gered f7ba75b9ec add helper overloads 2013-10-14 17:37:32 -04:00
Gered 6dbd0fcce1 add debug helper method for rendering wireframe grid planes 2013-10-14 16:15:55 -04:00
Gered 38313529b4 separate JSON texture atlas loading classes into separate package 2013-10-05 19:17:50 -04:00
Gered 6c6ceeeb09 implement support for loading tile animations alongside the rest of a TextureAtlas definition 2013-10-05 19:00:27 -04:00
Gered bfd2748797 allow for relative texture paths in TextureAtlas config files. start adding support for populating TextureAtlasAnimator objects 2013-10-05 18:48:30 -04:00
Gered 7334389b4e add file loading and path string extraction helper methods 2013-10-05 18:47:43 -04:00
Gered 308b19e815 various code formatting cleanups 2013-09-30 04:40:08 -04:00
Gered f974236432 change to/from ellipsoid space methods to regular instance methods so we don't have to pass an ellipsoid radius every time 2013-09-30 04:32:08 -04:00
Gered d1d4350ac1 uhh... screw it -- lots of fixes
Work in progress code from a couple weeks ago that I just picked up
again today, don't feel like listing everything out separarely.
2013-09-30 04:21:17 -04:00
Gered 625d9e0514 checkForCollisions should return a boolean to simply indicate if a collision was found or not 2013-09-30 03:22:23 -04:00
Gered fa3debbe17 minor changes that don't really affect anything 2013-09-30 03:21:29 -04:00
Gered fa6f1a07a4 update floating-point comparison
using method detailed in http://realtimecollisiondetection.net/blog/?p=89
2013-09-29 23:03:43 -04:00
Gered c85410b885 refactor a bit (merge swept sphere entity and packet classes) 2013-09-14 22:45:21 -04:00
Gered 705f0fab36 add initial unoptimized implementation of the generic swept-sphere collision and response handling system 2013-09-14 22:21:21 -04:00
Gered 513eff7cb5 add helper to specifically set a vector's length along it's direction 2013-09-14 22:20:43 -04:00
Gered 05dd4a1de0 move swept-sphere collision test into it's own class
It's not quite a 'generic' as the other intersection tests and is kind
of lengthy, so would rather the code be more standalone.
2013-09-14 20:08:09 -04:00
Gered 31efacf9a2 not really much point to the use of 'final' here... 2013-09-14 17:36:03 -04:00
Gered 79bae46cb1 add swept-sphere collision check implementation 2013-09-14 17:33:54 -04:00
Gered b2882c44e0 update intersection tests and add other remaining methods 2013-09-14 17:20:00 -04:00
Gered 228cdd89b2 add service locator 2013-09-14 14:44:43 -04:00
Gered c0baa42ff6 add entity preset support 2013-09-14 14:18:57 -04:00
Gered 79b027b024 clean up some cases where pooled objects weren't being freed 2013-09-14 13:59:13 -04:00
Gered 14e58aad5e add bitfield methods to embed/extract smaller values from a larger value 2013-09-14 13:44:08 -04:00
Gered King 823d940f55 Create README.md 2013-08-10 10:34:40 -04:00
Gered 20d2603270 add missing call to tick events 2013-08-06 22:28:56 -04:00
Gered 06f6536cbd add EventListener type name to logging output when adding/removing listeners 2013-08-06 21:43:07 -04:00
Gered 19db093c13 remove all global components when disposing of EntityManager 2013-08-05 13:29:38 -04:00
Gered 61a51d4fb7 ComponentSystem and EntityManager now implement Disposable to allow easier subclass resource cleanup 2013-08-04 18:55:41 -04:00
Gered cdb765724e fix remaining space calculation
This was ported from some C/C++ code that I think was doing it this way
for a specific (and probably silly) reason which might not apply anymore.
2013-07-21 17:17:06 -04:00
Gered 5cc58defb8 proper cleanup 2013-07-20 11:41:32 -04:00
Gered d114f5bb9c little bit of javadoc explaining intended usage of TextureAtlasAnimator 2013-07-20 11:18:30 -04:00
Gered aff54c9c1d add TextureAtlasAnimator 2013-07-20 11:14:20 -04:00
Gered bb516baa2f add a helper method copy of Texture.draw() that doesn't restrict to only managed Texture objects 2013-07-20 09:56:23 -04:00
Gered ec94bafd03 fix some calls to the incorrect method overload. oops! 2013-07-20 09:50:26 -04:00
Gered c34d173180 add TextureAtlas loader helper class to handle json loading 2013-07-18 09:02:49 -04:00
Gered 69c65637f9 add "addGrid" method to CustomGridTextureAtlas to auto-add tiles in a grid layout 2013-07-18 09:02:27 -04:00