
com.gempukku.libgdx.graph.shader.common.PropertyAsAttributeShaderConfiguration Maven / Gradle / Ivy
package com.gempukku.libgdx.graph.shader.common;
import com.badlogic.gdx.utils.Array;
import com.badlogic.gdx.utils.ObjectMap;
import com.gempukku.libgdx.graph.shader.config.GraphConfiguration;
import com.gempukku.libgdx.graph.shader.node.GraphShaderNodeBuilder;
import com.gempukku.libgdx.graph.shader.property.GraphShaderPropertyProducer;
import com.gempukku.libgdx.graph.shader.property.PropertyAsAttributeShaderNodeBuilder;
public class PropertyAsAttributeShaderConfiguration implements GraphConfiguration {
public static ObjectMap graphShaderNodeBuilders = new ObjectMap<>();
public static Array graphShaderPropertyProducers = new Array<>();
static {
// Property
addGraphShaderNodeBuilder(new PropertyAsAttributeShaderNodeBuilder());
}
private static void addGraphShaderNodeBuilder(GraphShaderNodeBuilder builder) {
graphShaderNodeBuilders.put(builder.getType(), builder);
}
@Override
public Array getPropertyProducers() {
return graphShaderPropertyProducers;
}
@Override
public GraphShaderNodeBuilder getGraphShaderNodeBuilder(String type) {
return graphShaderNodeBuilders.get(type);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy