Interface Geometry
-
- All Known Implementing Classes:
DefaultGeometry
public interface GeometryInterface for a geometry.- Author:
- Pierre Lando
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classGeometry.FaceCullingModeThis enum specify face culling.static classGeometry.FillDrawingModeThis enum specify how geometry is rendered.static classGeometry.LineDrawingModeLine drawing modes declaration.
-
Field Summary
Fields Modifier and Type Field Description static Geometry.FaceCullingModeDEFAULT_FACE_CULLING_MODEDefault face culling mode.static Geometry.FillDrawingModeDEFAULT_FILL_DRAWING_MODEDefault fill drawing mode.static Geometry.LineDrawingModeDEFAULT_LINE_DRAWING_MODEDefault wire drawing mode.static booleanDEFAULT_POLYGON_OFFSET_MODEDefault polygon offset mode.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ElementsBuffergetColors()Return the colors.Geometry.FaceCullingModegetFaceCullingMode()Face-culling mode getter.Geometry.FillDrawingModegetFillDrawingMode()Fill drawing mode getter.IndicesBuffergetIndices()Return the indices if any.Geometry.LineDrawingModegetLineDrawingMode()Line drawing mode getter.ElementsBuffergetNormals()Return the normals.booleangetPolygonOffsetMode()Polygon offset mode getter.ElementsBuffergetTextureCoordinates()Texture coordinates getter.ElementsBuffergetVertices()Return the vertices.IndicesBuffergetWireIndices()Return the wire indices.
-
-
-
Field Detail
-
DEFAULT_FACE_CULLING_MODE
static final Geometry.FaceCullingMode DEFAULT_FACE_CULLING_MODE
Default face culling mode.
-
DEFAULT_FILL_DRAWING_MODE
static final Geometry.FillDrawingMode DEFAULT_FILL_DRAWING_MODE
Default fill drawing mode.
-
DEFAULT_LINE_DRAWING_MODE
static final Geometry.LineDrawingMode DEFAULT_LINE_DRAWING_MODE
Default wire drawing mode.
-
DEFAULT_POLYGON_OFFSET_MODE
static final boolean DEFAULT_POLYGON_OFFSET_MODE
Default polygon offset mode.- See Also:
- Constant Field Values
-
-
Method Detail
-
getFaceCullingMode
Geometry.FaceCullingMode getFaceCullingMode()
Face-culling mode getter.- Returns:
- the face culling mode.
-
getFillDrawingMode
Geometry.FillDrawingMode getFillDrawingMode()
Fill drawing mode getter.- Returns:
- the fill-drawing mode for this object.
-
getLineDrawingMode
Geometry.LineDrawingMode getLineDrawingMode()
Line drawing mode getter.- Returns:
- the line drawing mode.
-
getPolygonOffsetMode
boolean getPolygonOffsetMode()
Polygon offset mode getter.- Returns:
- the polygon offset mode.
-
getVertices
ElementsBuffer getVertices()
Return the vertices.- Returns:
- the vertices.
-
getColors
ElementsBuffer getColors()
Return the colors.- Returns:
- the colors.
-
getTextureCoordinates
ElementsBuffer getTextureCoordinates()
Texture coordinates getter.- Returns:
- the texture coordinate.
-
getNormals
ElementsBuffer getNormals()
Return the normals.- Returns:
- the normals.
-
getIndices
IndicesBuffer getIndices()
Return the indices if any. Ifnullis returned, indices should be treated as consecutive number.- Returns:
- the indices.
-
getWireIndices
IndicesBuffer getWireIndices()
Return the wire indices. Ifnullis returned, no edges are drawn.- Returns:
- the edges indices.
-
-