public class SmoothingRenderer
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
SmoothingRenderer(@NotNull SmoothFaces smoothFaces,
@NotNull FacesProvider facesProvider)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
paintSmooth(@NotNull java.awt.Graphics graphics,
int x,
int y,
int px,
int py,
int layer,
@NotNull CfMap map,
int tileSize)
Draw the smoothing information at given position of map, for a given
limit smoothlevel, at a given layer.
|
protected SmoothingRenderer(@NotNull @NotNull SmoothFaces smoothFaces, @NotNull @NotNull FacesProvider facesProvider)
smoothFaces
- the smooth faces to usefacesProvider
- the face provider for looking up facespublic void paintSmooth(@NotNull @NotNull java.awt.Graphics graphics, int x, int y, int px, int py, int layer, @NotNull @NotNull CfMap map, int tileSize)
graphics
- where to draw (graphics)x
- the x-coordinate of the map square to draw, in map coordinatesy
- the y-coordinate of the map square to draw, in map coordinatespx
- the x offset for paintingpy
- the y offset paintinglayer
- the layer to paintmap
- the rendered maptileSize
- the size of one tile in pixel