use of org.terasology.engine.core.SimpleUri in project Terasology by MovingBlocks.
the class ModuleRendering method createBufferPair.
protected BufferPair createBufferPair(String primaryBufferName, String secondaryBufferName, ScalingFactors sharedBufferScale, FBO.Type sharedBufferType, FBO.Dimensions scale) {
FBO buffer1 = generateWithDimensions(new FboConfig(new SimpleUri(providingModule + ":fbo." + primaryBufferName), sharedBufferScale, sharedBufferType).useDepthBuffer().useNormalBuffer().useLightBuffer().useStencilBuffer(), scale);
FBO buffer2 = generateWithDimensions(new FboConfig(new SimpleUri(providingModule + ":fbo." + secondaryBufferName), sharedBufferScale, sharedBufferType).useDepthBuffer().useNormalBuffer().useLightBuffer().useStencilBuffer(), scale);
return new BufferPair(buffer1, buffer2);
}
use of org.terasology.engine.core.SimpleUri in project Terasology by MovingBlocks.
the class RenderGraph method disconnectOutputFboConnection.
@Deprecated
public void disconnectOutputFboConnection(String nodeUri, int connectionId) {
Node node = findNode(new SimpleUri(nodeUri));
disconnectOutputFboConnection(node, connectionId);
}
use of org.terasology.engine.core.SimpleUri in project Terasology by MovingBlocks.
the class RenderGraph method disconnectInputFbo.
public void disconnectInputFbo(String nodeUri, int connectionId) {
logger.debug("Attempting disconnection of " + nodeUri + "'s input fbo number " + connectionId);
Node node = findNode(new SimpleUri(nodeUri));
if (node != null) {
((AbstractNode) node).disconnectInputFbo(connectionId);
} else {
throw new RuntimeException("Could not find node named " + nodeUri + " within renderGraph.");
}
// TODO disconnect from rendergraph if needed
}
use of org.terasology.engine.core.SimpleUri in project Terasology by MovingBlocks.
the class RenderGraph method reconnectInputToOutput.
public void reconnectInputToOutput(String fromNodeUri, int outputId, Node toNode, int inputId, ConnectionType connectionType, boolean disconnectPrevious) {
Node fromNode = findNode(new SimpleUri(fromNodeUri));
if (fromNode == null) {
fromNode = findAka(fromNodeUri);
if (fromNode == null) {
throw new RuntimeException(("No node is associated with URI '" + fromNodeUri + "'"));
}
}
reconnectInputToOutput(fromNode, outputId, toNode, inputId, connectionType, disconnectPrevious);
}
use of org.terasology.engine.core.SimpleUri in project Terasology by MovingBlocks.
the class RenderGraph method connectFbo.
/**
* Connect Fbo output of fromNode to toNode's Fbo input.
* @param toNode Input node
* @param inputId Number/id of input
* @param fromNodeUri Output node's Uri (already added to graph)
* @param outputId Number/id of output
*/
public void connectFbo(String fromNodeUri, int outputId, Node toNode, int inputId) {
Node fromNode = findNode(new SimpleUri(fromNodeUri));
connectFbo(toNode, inputId, fromNode, outputId);
}
Aggregations