Class TexturedPolygon
java.lang.Object
eu.svjatoslav.sixth.e3d.renderer.raster.shapes.AbstractShape
eu.svjatoslav.sixth.e3d.renderer.raster.shapes.AbstractCoordinateShape
eu.svjatoslav.sixth.e3d.renderer.raster.shapes.basic.texturedpolygon.TexturedPolygon
Textured polygon.
This is how perspective-correct texture rendering is implemented: If polygon is sufficiently small, it is rendered without perspective correction. Otherwise, it is sliced into smaller polygons.
-
Field Summary
Modifier and TypeFieldDescriptionboolean
Iftrue
then polygon borders will be drawn.final Texture
Fields inherited from class eu.svjatoslav.sixth.e3d.renderer.raster.shapes.AbstractCoordinateShape
coordinates, onScreenZ, shapeId
Fields inherited from class eu.svjatoslav.sixth.e3d.renderer.raster.shapes.AbstractShape
mouseInteractionController
-
Constructor Summary
-
Method Summary
Methods inherited from class eu.svjatoslav.sixth.e3d.renderer.raster.shapes.AbstractCoordinateShape
getZ, transform
Methods inherited from class eu.svjatoslav.sixth.e3d.renderer.raster.shapes.AbstractShape
setMouseInteractionController
-
Field Details
-
texture
-
showBorders
public boolean showBordersIftrue
then polygon borders will be drawn. It is used for debugging purposes.
-
-
Constructor Details
-
TexturedPolygon
-
-
Method Details
-
paint
- Specified by:
paint
in classAbstractCoordinateShape
-