Interface Geometry
- All Known Implementing Classes:
DefaultGeometry
public interface Geometry
Interface for a geometry.
- Author:
- Pierre Lando
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
This enum specify face culling.static enum
This enum specify how geometry is rendered.static enum
Line drawing modes declaration. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Geometry.FaceCullingMode
Default face culling mode.static final Geometry.FillDrawingMode
Default fill drawing mode.static final Geometry.LineDrawingMode
Default wire drawing mode.static final boolean
Default polygon offset mode. -
Method Summary
Modifier and TypeMethodDescriptionReturn the colors.Face-culling mode getter.Fill drawing mode getter.Return the indices if any.Line drawing mode getter.Return the normals.boolean
Polygon offset mode getter.Texture coordinates getter.Return the vertices.Return the wire indices.
-
Field Details
-
DEFAULT_FACE_CULLING_MODE
Default face culling mode. -
DEFAULT_FILL_DRAWING_MODE
Default fill drawing mode. -
DEFAULT_LINE_DRAWING_MODE
Default wire drawing mode. -
DEFAULT_POLYGON_OFFSET_MODE
static final boolean DEFAULT_POLYGON_OFFSET_MODEDefault polygon offset mode.- See Also:
-
-
Method Details
-
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. Ifnull
is returned, indices should be treated as consecutive number.- Returns:
- the indices.
-
getWireIndices
IndicesBuffer getWireIndices()Return the wire indices. Ifnull
is returned, no edges are drawn.- Returns:
- the edges indices.
-