载入中...
搜索中...
未找到
eve::map::TileRenderSystem类 参考

Draws all visible TileLayer entities via Graphics batch path (UV atlas quads). 更多...

#include <TileSystem.h>

静态 Public 成员函数

static void update (float dt)
 Advance TileSet animation clocks once per map update.
 
static void collect (std::vector< graphics::DrawItem2D > &out)
 Append non-empty visible tiles into a shared 2D draw queue.
 
static void collect (std::vector< graphics::DrawItem2D > &out, int viewWidth, int viewHeight)
 Viewport-aware collection that rejects off-screen chunks before scanning cells.
 
static void render (graphics::Graphics *gfx)
 Collect + draw tiles only (no present). Null gfx is a no-op.
 
static int lastVisibleTileCount ()
 Number of non-empty visible tiles collected by the last pass.
 
static int lastCustomVisualCount ()
 Number of collected tiles using irregular per-GID metadata.
 
static int lastAtlasCount ()
 Number of distinct atlas textures referenced by the last pass.
 
static int lastVisitedChunkCount ()
 Spatial-index work counters for deterministic performance regressions.
 
static int lastVisitedCellCount ()
 Last visited cell count.
 

详细描述

Draws all visible TileLayer entities via Graphics batch path (UV atlas quads).

在文件 TileSystem.h 第 19 行定义.

成员函数说明

◆ collect() [1/2]

void eve::map::TileRenderSystem::collect ( std::vector< graphics::DrawItem2D > &  out)
static

Append non-empty visible tiles into a shared 2D draw queue.

在文件 TileSystem.cpp 第 199 行定义.

引用了 collect().

被这些函数引用 collect(), eve::map::Map::render() , 以及 render().

◆ collect() [2/2]

◆ lastAtlasCount()

int eve::map::TileRenderSystem::lastAtlasCount ( )
static

Number of distinct atlas textures referenced by the last pass.

在文件 TileSystem.cpp 第 347 行定义.

被这些函数引用 eve::map::Map::getLastAtlasCount().

◆ lastCustomVisualCount()

int eve::map::TileRenderSystem::lastCustomVisualCount ( )
static

Number of collected tiles using irregular per-GID metadata.

在文件 TileSystem.cpp 第 346 行定义.

被这些函数引用 eve::map::Map::getLastCustomVisualCount().

◆ lastVisibleTileCount()

int eve::map::TileRenderSystem::lastVisibleTileCount ( )
static

Number of non-empty visible tiles collected by the last pass.

在文件 TileSystem.cpp 第 345 行定义.

被这些函数引用 eve::map::Map::getLastVisibleTileCount().

◆ lastVisitedCellCount()

int eve::map::TileRenderSystem::lastVisitedCellCount ( )
static

Last visited cell count.

在文件 TileSystem.cpp 第 349 行定义.

被这些函数引用 eve::map::Map::getLastVisitedCellCount().

◆ lastVisitedChunkCount()

int eve::map::TileRenderSystem::lastVisitedChunkCount ( )
static

Spatial-index work counters for deterministic performance regressions.

在文件 TileSystem.cpp 第 348 行定义.

被这些函数引用 eve::map::Map::getLastVisitedChunkCount().

◆ render()

void eve::map::TileRenderSystem::render ( graphics::Graphics *  gfx)
static

Collect + draw tiles only (no present). Null gfx is a no-op.

在文件 TileSystem.cpp 第 338 行定义.

引用了 collect(), eve::graphics::RenderSystem::drawItems(), eve::graphics::Graphics::getHeight() , 以及 eve::graphics::Graphics::getWidth().

◆ update()

void eve::map::TileRenderSystem::update ( float  dt)
static

Advance TileSet animation clocks once per map update.

在文件 TileSystem.cpp 第 351 行定义.

引用了 EV_PROFILE_MODULE.

被这些函数引用 eve::map::Map::update().


该类的文档由以下文件生成: