Created
November 20, 2011 07:00
-
-
Save kg/1379915 to your computer and use it in GitHub Desktop.
Inferus RenderEntities
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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