Skip to Content
⚠ Under Construction
ReferenceC++ APIMapRenderer

endstone::MapRenderer

Represents a renderer for a map.

Functions:

NameDescription
MapRendererInitialize the map renderer base with the given contextual status.
initializeInitialize this MapRenderer for the given map.
isContextualGet whether the renderer is contextual, i.e. has different canvases for different players.
renderRender to the given map.

MapRenderer

MapRenderer(const bool is_contextual = false)

Initialize the map renderer base with the given contextual status.

Parameters:

  • is_contextual Whether the renderer is contextual. See isContextual().

initialize

void initialize(MapView &map)

Initialize this MapRenderer for the given map.

Parameters:

  • map The MapView being initialized.

isContextual

bool isContextual() const

Get whether the renderer is contextual, i.e. has different canvases for different players.

Returns:

true if contextual, false otherwise.

render

void render(MapView &map, MapCanvas &canvas, Player &player)

Render to the given map.

Parameters:

  • map The MapView being rendered to.
  • canvas The canvas to use for rendering.
  • player The player who triggered the rendering.
Last updated on