Search in sources :

Example 1 with RenderCallbackPublicData

use of com.gempukku.libgdx.graph.plugin.callback.RenderCallbackPublicData in project gdx-graph by MarcinSc.

the class Episode4Scene method loadPipelineRenderer.

private PipelineRenderer loadPipelineRenderer() {
    PipelineRenderer pipelineRenderer = PipelineLoader.loadPipelineRenderer(Gdx.files.local("episodes/episode4.json"), timeKeeper);
    pipelineRenderer.getPluginData(UIPluginPublicData.class).setStage("", stage);
    RenderCallbackPublicData renderCallbacks = pipelineRenderer.getPluginData(RenderCallbackPublicData.class);
    renderCallbacks.setRenderCallback("Callback1", new ModelsRenderCallback(camera1));
    renderCallbacks.setRenderCallback("Callback2", new ModelsRenderCallback(camera2));
    return pipelineRenderer;
}
Also used : UIPluginPublicData(com.gempukku.libgdx.graph.plugin.ui.UIPluginPublicData) RenderCallbackPublicData(com.gempukku.libgdx.graph.plugin.callback.RenderCallbackPublicData)

Aggregations

RenderCallbackPublicData (com.gempukku.libgdx.graph.plugin.callback.RenderCallbackPublicData)1 UIPluginPublicData (com.gempukku.libgdx.graph.plugin.ui.UIPluginPublicData)1