Search in sources :

Example 1 with Vector4BoxPart

use of com.gempukku.libgdx.graph.ui.part.Vector4BoxPart in project gdx-graph by MarcinSc.

the class PropertyMatrix4BoxProducer method createPropertyBox.

@Override
public PropertyBox createPropertyBox(Skin skin, String name, PropertyLocation location, JsonValue jsonObject, PropertyLocation[] propertyLocations) {
    PropertyBoxImpl result = new PropertyBoxImpl(name, ShaderFieldType.Matrix4, location, propertyLocations);
    result.addPropertyBoxPart(new Vector4BoxPart("", "x1", "y1", "z1", "w1", 1, 0, 0, 0, null, null, null, null));
    result.addPropertyBoxPart(new Vector4BoxPart("", "x2", "y2", "z2", "w2", 0, 1, 0, 0, null, null, null, null));
    result.addPropertyBoxPart(new Vector4BoxPart("", "x3", "y3", "z3", "w3", 0, 0, 1, 0, null, null, null, null));
    result.addPropertyBoxPart(new Vector4BoxPart("", "x4", "y4", "z4", "w4", 0, 0, 0, 1, null, null, null, null));
    result.initialize(jsonObject);
    return result;
}
Also used : Vector4BoxPart(com.gempukku.libgdx.graph.ui.part.Vector4BoxPart) PropertyBoxImpl(com.gempukku.libgdx.graph.ui.graph.property.PropertyBoxImpl)

Aggregations

PropertyBoxImpl (com.gempukku.libgdx.graph.ui.graph.property.PropertyBoxImpl)1 Vector4BoxPart (com.gempukku.libgdx.graph.ui.part.Vector4BoxPart)1