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;
}
Aggregations