Package io.github.espressoengine.object
Class Mesh2D
java.lang.Object
io.github.espressoengine.object.Object
io.github.espressoengine.object.Mesh2D
A "base" mesh class utilizing
java.awt.geom
.- Version:
- $Id: $Id
- Author:
- pastthepixels
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
Fields inherited from class io.github.espressoengine.object.Object
_enginePosition, boundingBox, dbg, position, rotation, visible, zIndex
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
updateBoundingBox
(AffineTransform transform) Recreates a bounding box from anjava.awt.geom.AffineTransform
.void
Recreates the geometry of the object taking in factors like its position.Methods inherited from class io.github.espressoengine.object.Object
getBoundingBoxPosition, getZIndex, lookAt, onBeforeDraw
-
Field Details
-
geometry
-
strokeColor
-
strokeWidth
public int strokeWidth -
fillColor
-
-
Constructor Details
-
Mesh2D
public Mesh2D()
-
-
Method Details
-
updateGeometry
public void updateGeometry()Recreates the geometry of the object taking in factors like its position. This function is designed to be overridden and is called automaticaly when the mesh is drawn. -
updateBoundingBox
Recreates a bounding box from anjava.awt.geom.AffineTransform
. This function called every time a scene is drawn and is yet another empty function designed to be overridden.- Overrides:
updateBoundingBox
in classObject
- Parameters:
transform
- aAffineTransform
object
-