Package io.github.espressoengine.object
Class Rect
java.lang.Object
io.github.espressoengine.object.Object
io.github.espressoengine.object.Mesh2D
io.github.espressoengine.object.Rect
Mesh2D with rectangle geometry.
- Version:
- $Id: $Id
- Author:
- pastthepixels
-
Field Summary
FieldsFields inherited from class io.github.espressoengine.object.Mesh2D
fillColor, geometry, strokeColor, strokeWidthFields inherited from class io.github.espressoengine.object.Object
_enginePosition, boundingBox, dbg, position, rotation, visible, zIndex -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRecreates the geometry of the object taking in factors like its position.Methods inherited from class io.github.espressoengine.object.Mesh2D
updateBoundingBoxMethods inherited from class io.github.espressoengine.object.Object
getBoundingBoxPosition, getZIndex, lookAt, onBeforeDraw
-
Field Details
-
size
-
_geometry
-
-
Constructor Details
-
Rect
public Rect()Constructor for Rect.
-
Rect
Constructor for Rect.
- Parameters:
size- aVector2object
-
-
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.- Overrides:
updateGeometryin classMesh2D
-