use of com.gempukku.libgdx.graph.ui.graph.GraphBoxImpl in project gdx-graph by MarcinSc.
the class UVFlipbookShaderBoxProducer method createPipelineGraphBox.
@Override
public GraphBox createPipelineGraphBox(Skin skin, String id, JsonValue data) {
GraphBoxImpl result = createGraphBox(id);
addConfigurationInputsAndOutputs(result);
CheckboxBoxPart invertX = new CheckboxBoxPart("Invert X", "invertX");
invertX.initialize(data);
result.addGraphBoxPart(invertX);
CheckboxBoxPart invertY = new CheckboxBoxPart("Invert Y", "invertY");
invertY.initialize(data);
result.addGraphBoxPart(invertY);
return result;
}
use of com.gempukku.libgdx.graph.ui.graph.GraphBoxImpl in project gdx-graph by MarcinSc.
the class DitherColorShaderBoxProducer method createPipelineGraphBox.
@Override
public GraphBox createPipelineGraphBox(Skin skin, String id, JsonValue data) {
final GraphBoxImpl result = createGraphBox(id);
SelectBoxPart ditherSizeSelect = new SelectBoxPart("Dither size:", "ditherSize", "2", "4", "8");
ditherSizeSelect.initialize(data);
result.addGraphBoxPart(ditherSizeSelect);
addConfigurationInputsAndOutputs(result);
return result;
}
use of com.gempukku.libgdx.graph.ui.graph.GraphBoxImpl in project gdx-graph by MarcinSc.
the class EndShadowShaderBoxProducer method createPipelineGraphBox.
@Override
public GraphBox createPipelineGraphBox(Skin skin, String id, JsonValue data) {
final ModelShaderPreviewBoxPart previewBoxPart = new ModelShaderPreviewBoxPart();
previewBoxPart.initialize(data);
GraphBoxImpl result = new GraphBoxImpl(id, getConfiguration()) {
@Override
public void graphChanged(GraphChangedEvent event, boolean hasErrors, Graph<? extends GraphNode, ? extends GraphConnection, ? extends GraphProperty> graph) {
if (event.isData() || event.isStructure()) {
previewBoxPart.graphChanged(hasErrors, graph);
}
}
};
SelectBoxPart positionType = new SelectBoxPart("Position", "positionType", "Object space", "World space");
positionType.initialize(data);
result.addGraphBoxPart(positionType);
addConfigurationInputsAndOutputs(result);
EnumSelectBoxPart cullingBox = new EnumSelectBoxPart("Culling", "culling", new StringifyEnum<BasicShader.Culling>(), BasicShader.Culling.values());
cullingBox.initialize(data);
result.addGraphBoxPart(cullingBox);
EnumSelectBoxPart depthTestBox = new EnumSelectBoxPart("DepthTest", "depthTest", new StringifyEnum<BasicShader.DepthTesting>(), BasicShader.DepthTesting.values());
depthTestBox.initialize(data);
result.addGraphBoxPart(depthTestBox);
CheckboxBoxPart writeDepthBox = new CheckboxBoxPart("Write depth", "depthWrite");
writeDepthBox.initialize(data);
result.addGraphBoxPart(writeDepthBox);
result.addGraphBoxPart(previewBoxPart);
return result;
}
use of com.gempukku.libgdx.graph.ui.graph.GraphBoxImpl in project gdx-graph by MarcinSc.
the class ShadowPhongLightingBoxProducer method createPipelineGraphBox.
@Override
public GraphBox createPipelineGraphBox(Skin skin, String id, JsonValue data) {
GraphBoxImpl result = createGraphBox(id);
StringBoxPart envId = new StringBoxPart("Env id: ", "id");
envId.initialize(data);
result.addGraphBoxPart(envId);
addConfigurationInputsAndOutputs(result);
return result;
}
use of com.gempukku.libgdx.graph.ui.graph.GraphBoxImpl in project gdx-graph by MarcinSc.
the class EndModelShaderBoxProducer method createPipelineGraphBox.
@Override
public GraphBox createPipelineGraphBox(Skin skin, String id, JsonValue data) {
final ModelShaderPreviewBoxPart previewBoxPart = new ModelShaderPreviewBoxPart();
previewBoxPart.initialize(data);
GraphBoxImpl result = new GraphBoxImpl(id, getConfiguration()) {
@Override
public void graphChanged(GraphChangedEvent event, boolean hasErrors, Graph<? extends GraphNode, ? extends GraphConnection, ? extends GraphProperty> graph) {
if (event.isData() || event.isStructure()) {
previewBoxPart.graphChanged(hasErrors, graph);
}
}
};
SelectBoxPart positionType = new SelectBoxPart("Position", "positionType", "Object space", "World space");
positionType.initialize(data);
result.addGraphBoxPart(positionType);
addConfigurationInputsAndOutputs(result);
result.addGraphBoxPart(new SectionBoxPart("Rendering config"));
EnumSelectBoxPart cullingBox = new EnumSelectBoxPart("Culling", "culling", new StringifyEnum<BasicShader.Culling>(), BasicShader.Culling.values());
cullingBox.initialize(data);
result.addGraphBoxPart(cullingBox);
BlendingBoxPart blendingBox = new BlendingBoxPart();
blendingBox.initialize(data);
result.addGraphBoxPart(blendingBox);
EnumSelectBoxPart depthTestBox = new EnumSelectBoxPart("DepthTest", "depthTest", new StringifyEnum<BasicShader.DepthTesting>(), BasicShader.DepthTesting.values());
depthTestBox.initialize(data);
result.addGraphBoxPart(depthTestBox);
CheckboxBoxPart writeDepthBox = new CheckboxBoxPart("Write depth", "depthWrite");
writeDepthBox.initialize(data);
result.addGraphBoxPart(writeDepthBox);
result.addGraphBoxPart(new SectionBoxPart("Preview"));
result.addGraphBoxPart(previewBoxPart);
return result;
}
Aggregations