Draws all visible TileLayer entities via Graphics batch path (UV atlas quads). 更多...
#include <TileSystem.h>
静态 Public 成员函数 | |
| static void | collect (std::vector< graphics::DrawItem2D > &out) |
| Append non-empty visible tiles into a shared 2D draw queue. | |
| static void | render (graphics::Graphics *gfx) |
| Collect + draw tiles only (no present). Null gfx is a no-op. | |
详细描述
Draws all visible TileLayer entities via Graphics batch path (UV atlas quads).
在文件 TileSystem.h 第 19 行定义.
成员函数说明
◆ collect()
|
static |
Append non-empty visible tiles into a shared 2D draw queue.
在文件 TileSystem.cpp 第 73 行定义.
引用了 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, eve::graphics::DrawItem2D::depthY, eve::graphics::DrawItem2D::h, eve::graphics::DrawItem2D::hasUV, 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(), 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.
被这些函数引用 eve::map::Map::render() , 以及 render().
◆ render()
|
static |
Collect + draw tiles only (no present). Null gfx is a no-op.
在文件 TileSystem.cpp 第 126 行定义.
引用了 collect() , 以及 eve::graphics::RenderSystem::drawItems().
该类的文档由以下文件生成:
- src/modules/map/TileSystem.h
- src/modules/map/TileSystem.cpp