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]
|
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]
|
static |
Viewport-aware collection that rejects off-screen chunks before scanning cells.
在文件 TileSystem.cpp 第 201 行定义.
引用了 eve::graphics::DrawItem2D::camera, eve::graphics::DrawItem2D::camValid, eve::graphics::DrawItem2D::camX, eve::graphics::DrawItem2D::camY, eve::graphics::DrawItem2D::camZoom, eve::graphics::DrawItem2D::canvas, eve::graphics::DrawItem2D::color, cx, cy, eve::graphics::DrawItem2D::depthY, draw, eve::graphics::DrawItem2D::h, eve::graphics::DrawItem2D::hasUV, eve::map::TileLayer::Tiles::kChunkSize, eve::graphics::DrawItem2D::layer, eve::graphics::DrawItem2D::litPath, eve::graphics::DrawItem2D::receiveLight, eve::graphics::DrawItem2D::texture, eve::map::tileGid(), tiles, eve::map::tileToDepthY(), eve::map::tileToWorld(), tint, eve::graphics::DrawItem2D::u0, eve::graphics::DrawItem2D::u1, eve::graphics::DrawItem2D::v0, eve::graphics::DrawItem2D::v1, view, eve::graphics::DrawItem2D::w, eve::graphics::DrawItem2D::x , 以及 eve::graphics::DrawItem2D::y.
◆ lastAtlasCount()
|
static |
Number of distinct atlas textures referenced by the last pass.
在文件 TileSystem.cpp 第 347 行定义.
被这些函数引用 eve::map::Map::getLastAtlasCount().
◆ lastCustomVisualCount()
|
static |
Number of collected tiles using irregular per-GID metadata.
在文件 TileSystem.cpp 第 346 行定义.
◆ lastVisibleTileCount()
|
static |
Number of non-empty visible tiles collected by the last pass.
在文件 TileSystem.cpp 第 345 行定义.
◆ lastVisitedCellCount()
|
static |
Last visited cell count.
在文件 TileSystem.cpp 第 349 行定义.
◆ lastVisitedChunkCount()
|
static |
Spatial-index work counters for deterministic performance regressions.
在文件 TileSystem.cpp 第 348 行定义.
◆ render()
|
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()
|
static |
Advance TileSet animation clocks once per map update.
在文件 TileSystem.cpp 第 351 行定义.
引用了 EV_PROFILE_MODULE.
被这些函数引用 eve::map::Map::update().
该类的文档由以下文件生成:
- src/modules/map/TileSystem.h
- src/modules/map/TileSystem.cpp