Class WorldMapRenderer.Drawer
java.lang.Object
zombie.core.textures.TextureDraw.GenericDrawer
zombie.worldMap.WorldMapRenderer.Drawer
- Enclosing class:
WorldMapRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionintfinal WorldMapStylefinal SymbolsLayoutDatafinal SymbolsRenderDataintfloatfloatfloatintintfloat -
Method Summary
Modifier and TypeMethodDescriptionvoiddrawImagePyramid(int cellX, int cellY, String fileName, WorldMapStyleLayer.RGBAf fill) voiddrawImagePyramid(int cellX, int cellY, WorldMapImages images, WorldMapStyleLayer.RGBAf fill) voiddrawLineString(WorldMapStyleLayer.RenderArgs args, WorldMapFeature feature, WorldMapStyleLayer.RGBAf color, float lineWidth) voiddrawLineStringTexture(WorldMapStyleLayer.RenderArgs args, WorldMapFeature feature, WorldMapStyleLayer.RGBAf color, float lineWidth, Texture texture) voiddrawLineStringXXX(WorldMapStyleLayer.RenderArgs args, WorldMapFeature feature, WorldMapStyleLayer.RGBAf color, float lineWidth) voiddrawLineStringYYY(WorldMapStyleLayer.RenderArgs args, WorldMapFeature feature, WorldMapStyleLayer.RGBAf color, float lineWidth) voiddrawTexture(Texture texture, WorldMapStyleLayer.RGBAf fill, int worldX1, int worldY1, int worldX2, int worldY2) voiddrawTexture(Texture texture, WorldMapStyleLayer.RGBAf fill, int worldX1, int worldY1, int worldX2, int worldY2, int cellX, int cellY) voiddrawTextureTiled(Texture texture, WorldMapStyleLayer.RGBAf fill, int worldX1, int worldY1, int worldX2, int worldY2) voiddrawTextureTiled(Texture texture, WorldMapStyleLayer.RGBAf fill, int worldX1, int worldY1, int worldX2, int worldY2, int cellX, int cellY) voidfillPolygon(WorldMapStyleLayer.RenderArgs args, WorldMapFeature feature, WorldMapStyleLayer.RGBAf color) voidfillPolygon(WorldMapStyleLayer.RenderArgs args, WorldMapFeature feature, WorldMapStyleLayer.RGBAf color, Texture texture, float textureScale, WorldMapStyleLayer.TextureScaling scaling) intintintintgetWidth()floatvoidvoidrender()voidrenderImagePyramid(WorldMapImages images) voidrenderVisibleCells(WorldMapStyleLayer styleLayer) floatuiToWorldX(float uiX, float uiY) floatuiToWorldY(float uiX, float uiY) floatworldOriginUIX(float centerWorldX) floatworldOriginUIY(float centerWorldY) floatworldToUIX(float worldX, float worldY) floatworldToUIY(float worldX, float worldY) Methods inherited from class TextureDraw.GenericDrawer
render
-
Field Details
-
renderer
-
style
-
worldMap
-
x
public int x -
y
public int y -
width
public int width -
height
public int height -
zoomF
public float zoomF -
worldScale
public float worldScale -
worldOriginUiX
public float worldOriginUiX -
worldOriginUiY
public float worldOriginUiY -
symbolsRenderData
-
symbolsLayoutData
-
-
Method Details
-
getAbsoluteX
public int getAbsoluteX() -
getAbsoluteY
public int getAbsoluteY() -
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getWorldScale
public float getWorldScale() -
uiToWorldX
public float uiToWorldX(float uiX, float uiY) -
uiToWorldY
public float uiToWorldY(float uiX, float uiY) -
worldToUIX
public float worldToUIX(float worldX, float worldY) -
worldToUIY
public float worldToUIY(float worldX, float worldY) -
worldOriginUIX
public float worldOriginUIX(float centerWorldX) -
worldOriginUIY
public float worldOriginUIY(float centerWorldY) -
renderVisibleCells
-
drawLineStringXXX
public void drawLineStringXXX(WorldMapStyleLayer.RenderArgs args, WorldMapFeature feature, WorldMapStyleLayer.RGBAf color, float lineWidth) -
drawLineStringYYY
public void drawLineStringYYY(WorldMapStyleLayer.RenderArgs args, WorldMapFeature feature, WorldMapStyleLayer.RGBAf color, float lineWidth) -
drawLineString
public void drawLineString(WorldMapStyleLayer.RenderArgs args, WorldMapFeature feature, WorldMapStyleLayer.RGBAf color, float lineWidth) -
drawLineStringTexture
public void drawLineStringTexture(WorldMapStyleLayer.RenderArgs args, WorldMapFeature feature, WorldMapStyleLayer.RGBAf color, float lineWidth, Texture texture) -
fillPolygon
public void fillPolygon(WorldMapStyleLayer.RenderArgs args, WorldMapFeature feature, WorldMapStyleLayer.RGBAf color) -
fillPolygon
public void fillPolygon(WorldMapStyleLayer.RenderArgs args, WorldMapFeature feature, WorldMapStyleLayer.RGBAf color, Texture texture, float textureScale, WorldMapStyleLayer.TextureScaling scaling) -
drawTexture
public void drawTexture(Texture texture, WorldMapStyleLayer.RGBAf fill, int worldX1, int worldY1, int worldX2, int worldY2) -
drawTexture
public void drawTexture(Texture texture, WorldMapStyleLayer.RGBAf fill, int worldX1, int worldY1, int worldX2, int worldY2, int cellX, int cellY) -
drawTextureTiled
public void drawTextureTiled(Texture texture, WorldMapStyleLayer.RGBAf fill, int worldX1, int worldY1, int worldX2, int worldY2, int cellX, int cellY) -
drawTextureTiled
public void drawTextureTiled(Texture texture, WorldMapStyleLayer.RGBAf fill, int worldX1, int worldY1, int worldX2, int worldY2) -
render
public void render()- Specified by:
renderin classTextureDraw.GenericDrawer
-
renderImagePyramid
-
drawImagePyramid
-
drawImagePyramid
public void drawImagePyramid(int cellX, int cellY, WorldMapImages images, WorldMapStyleLayer.RGBAf fill) -
postRender
public void postRender()- Overrides:
postRenderin classTextureDraw.GenericDrawer
-