public Layer(int depth = 0) { Depth = depth; _entities = new List <Entity>(); GraphicsCulling = Mononoke.Graphics.Renderer.BasicCulling; _drawCommands = new List <IDrawCommand>(); }
private void RenderCamera(Camera cam) { Scene scene = Mononoke.Scenes.Current; foreach (Layer layer in scene.Layers) { IGraphicsCulling graphicsCulling = layer.GraphicsCulling; foreach (IDrawCommand cmd in layer.DrawCommands) { if (!cmd.Accept(cam, graphicsCulling)) { continue; } cmd.Execute(cam); } } }
public override bool Accept(Camera cam, IGraphicsCulling graphicsCulling) { return(graphicsCulling.WillDraw(cam, this)); }
public override bool Accept(Camera cam, IGraphicsCulling graphicsCulling) { // TODO return(true); //return renderer.WillDraw(cam, this); }
public abstract bool Accept(Camera cam, IGraphicsCulling graphicsCulling);