ssell / OcularEngine

Ocular Rendering Engine
http://www.ocularengine.com
Apache License 2.0
7 stars 6 forks source link

Better Manual Rendering Handling #143

Open ssell opened 8 years ago

ssell commented 8 years ago

Currently, there is no good way of manually rendering a scene. Looking at ColorPicker as an example, one has to:

This sort of routine should only have to happen within a Renderer implementation. So a method needs to be added (most likely to SceneManager) to manually call a render. The following options should be available:

Doing so will make certain effects much easier and uniform.

Example:

auto camera = OcularCameras->getMainCamera();
auto material = OcularResources->getResource<Material>("EffectA");

OcularScene->render(camera, material);