OpenTTD Source 20260721-master-g25ec12c62d
clear_func.h File Reference

Functions related to clear (TileType::Clear) land. More...

#include "tile_cmd.h"

Go to the source code of this file.

Functions

void DrawRoughLandTile (const TileInfo *ti)
 Draw a ClearGround::Rough tile.
void DrawClearLandTile (const TileInfo *ti, uint8_t density)
 Draw a ClearGround::Grass tile.

Detailed Description

Functions related to clear (TileType::Clear) land.

Definition in file clear_func.h.

Function Documentation

◆ DrawClearLandTile()

void DrawClearLandTile ( const TileInfo * ti,
uint8_t density )

Draw a ClearGround::Grass tile.

Parameters
tiThe tile to draw.
densityThe density of the dirt -> grass transition to draw.

Definition at line 61 of file clear_cmd.cpp.

References _clear_land_sprites_grass, DrawGroundSprite(), SlopeToSpriteOffset(), and TileInfo::tileh.

Referenced by DrawTile_Clear(), DrawTile_Object(), DrawTile_Station(), DrawTile_Trees(), and DrawTile_TunnelBridge().

◆ DrawRoughLandTile()

void DrawRoughLandTile ( const TileInfo * ti)