render() public method

public render ( Graphics graphics, Camera camera ) : void
graphics Graphics
camera Camera
return void
Beispiel #1
0
 public void render()
 {
     // manually start a fresh batch and call the UICanvas Component lifecycle methods since it isnt attached to the Scene
     Graphics.instance.batcher.begin();
     (ui as IUpdatable).update();
     ui.render(Graphics.instance, _camera);
     Graphics.instance.batcher.end();
 }
Beispiel #2
0
        public void render()
        {
            // update transform
            getOrCreateComponentInspector(null).update();

            foreach (var comp in entity.components)
            {
                var inspector = getOrCreateComponentInspector(comp);
                inspector.update();
            }

            Graphics.instance.batcher.begin();
            (ui as IUpdatable).update();
            ui.render(Graphics.instance, _camera);
            Graphics.instance.batcher.end();
        }