Class Decal
java.lang.Object
com.marginallyclever.ro3.mesh.Mesh
com.marginallyclever.ro3.mesh.proceduralmesh.ProceduralMesh
com.marginallyclever.ro3.mesh.proceduralmesh.Decal
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatintfloatfloatintFields inherited from class com.marginallyclever.ro3.mesh.Mesh
colorArray, indexArray, normalArray, NUM_BUFFERS, renderStyle, textureArray, vertexArray -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.marginallyclever.ro3.mesh.Mesh
addColor, addIndex, addNormal, addNormal, addPropertyChangeListener, addTexCoord, addVertex, addVertex, clear, fireMeshChanged, getBoundingBox, getHasColors, getHasIndexes, getHasNormals, getHasTextures, getNormal, getNumTriangles, getNumVertices, getRandomPointOnSurface, getRandomPointOnTriangle, getRenderStyle, getSourceName, getTexCoord, getTriangleArea, getVertex, getVertexProvider, intersect, isDirty, isLoaded, isTransparent, removePropertyChangeListener, render, render, setDirty, setLoaded, setRenderStyle, setSourceName, setTexCoord, setVertex, unload, updateCuboid, updateVertexBuffers
-
Field Details
-
height
public float height -
width
public float width -
wParts
public int wParts -
hParts
public int hParts -
textureScale
public float textureScale
-
-
Constructor Details
-
Decal
public Decal()
-
-
Method Details
-
getEnglishName
- Specified by:
getEnglishNamein classProceduralMesh
-
updateModel
public void updateModel()Description copied from class:ProceduralMeshProcedurally generate a list of triangles and update the bounding box.- Specified by:
updateModelin classProceduralMesh
-
toJSON
public org.json.JSONObject toJSON()- Overrides:
toJSONin classProceduralMesh
-
fromJSON
public void fromJSON(org.json.JSONObject from) - Overrides:
fromJSONin classProceduralMesh
-