Skip to content

Instantly share code, notes, and snippets.

@kg
Created November 20, 2011 07:00
Show Gist options
  • Save kg/1379915 to your computer and use it in GitHub Desktop.
Save kg/1379915 to your computer and use it in GitHub Desktop.
Inferus RenderEntities
public void RenderEntities (DrawFlags flags) {
if (flags == DrawFlags.None)
return;
var bounds = Camera.Bounds;
SpatialCollection<RuntimeEntity>.ItemInfo current;
using (var e = RuntimeLevel.Entities.GetItemsFromBounds(bounds))
while (e.GetNext(out current))
current.Item.Draw(flags);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment