WorldRendererImpl - renderDagApi rename + usage of interface
Create api and store it's interface to context to use in modules.
public RenderDagApiInterface renderDagApi;
renderDagApi = RenderDagApi.getRenderDagApi(renderGraph);
context.put(RenderDagApiInterface.class, renderDagApi);
import org.terasology.rendering.cameras.OpenVRStereoCamera;
import org.terasology.rendering.cameras.PerspectiveCamera;
import org.terasology.rendering.cameras.SubmersibleCamera;
+import org.terasology.rendering.dag.api.RenderDagApiInterface;
import org.terasology.rendering.dag.gsoc.NewNode;
import org.terasology.rendering.dag.RenderGraph;
import org.terasology.rendering.dag.RenderPipelineTask;
import org.terasology.rendering.dag.RenderTaskListGenerator;
-import org.terasology.rendering.dag.api.RenderGraphAPI;
+import org.terasology.rendering.dag.gsoc.RenderDagApi;
import org.terasology.rendering.dag.gsoc.TintNode;
import org.terasology.rendering.dag.nodes.AlphaRejectBlocksNode;
import org.terasology.rendering.dag.nodes.AmbientOcclusionNode;
private static final float GROUND_PLANE_HEIGHT_DISPARITY = -0.7f;
private RenderGraph renderGraph;
- public RenderGraphAPI renderGraphApi;
+ public RenderDagApiInterface renderDagApi;
private boolean isFirstRenderingStageForCurrentFrame;
private final RenderQueuesHelper renderQueues;
@@ -225,8 +226,8 @@ public WorldRendererImpl(Context context, GLBufferPool bufferPool) {
}
private void initRenderingAPI() {
- renderGraphApi = RenderGraphAPI.getRenderGraphAPI(renderGraph);
- context.put(RenderGraphAPI.class, renderGraphApi);
+ renderDagApi = RenderDagApi.getRenderDagApi(renderGraph);
+ context.put(RenderDagApiInterface.class, renderDagApi);
}
private void initRenderingSupport() {
