Class IntAttribute
java.lang.Object
gaiasky.util.gdx.shader.attribute.Attribute
gaiasky.util.gdx.shader.attribute.IntAttribute
- All Implemented Interfaces:
Comparable<Attribute>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIntAttribute(int index) IntAttribute(int index, int value) IntAttribute(com.badlogic.gdx.graphics.g3d.attributes.IntAttribute other) -
Method Summary
Modifier and TypeMethodDescriptionintcopy()static IntAttributecreateCullFace(int value) create a cull face attribute to be used in a materialinthashCode()Methods inherited from class Attribute
equals, equals, getAttributeAlias, getAttributeIndex, getAttributeIndex, getAttributeType, getIndex, getNumAttributes, getTypes, has, register, toStringModifier and TypeMethodDescriptionprotected booleanbooleanstatic StringgetAttributeAlias(Bits type) static intgetAttributeIndex(Bits type) static intgetAttributeIndex(String alias) static BitsgetAttributeType(String alias) protected static intgetIndex(long oldType) static intstatic com.badlogic.gdx.utils.Array<String> getTypes()booleanhas(int index) protected static intCall this method to register a custom attribute type, see the wiki for an example.toString()
-
Field Details
-
CullFaceAlias
- See Also:
-
CullFace
public static final int CullFace -
EclipseOutlinesAlias
- See Also:
-
EclipseOutlines
public static final int EclipseOutlines -
value
public int value
-
-
Constructor Details
-
IntAttribute
public IntAttribute(int index) -
IntAttribute
public IntAttribute(com.badlogic.gdx.graphics.g3d.attributes.IntAttribute other) -
IntAttribute
public IntAttribute(int index, int value)
-
-
Method Details
-
createCullFace
create a cull face attribute to be used in a material- Parameters:
value- cull face value, possible values are GL_FRONT_AND_BACK, GL_BACK, GL_FRONT, or -1 to inherit default- Returns:
- an attribute
-
copy
-
hashCode
-
compareTo
-