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;
}
Aggregations