Shared 2D draw queue item (sprites + tiles). 更多...
#include <DrawItem2D.h>
Public 属性 | |
| float | x = 0.f |
| float | y = 0.f |
| float | w = 0.f |
| float | h = 0.f |
| float | depthY = 0.f |
| float | rotation = 0.f |
| Degrees, clockwise, around the rectangle center (screen Y-down). | |
| int | order = 0 |
| bool | hasOrder = false |
| Color | color {1.f, 1.f, 1.f, 1.f} |
| int | layer = 0 |
| BlendMode | blend = BlendMode::Alpha |
| 2D quad blending (alpha / additive / opaque). | |
| Texture * | texture = nullptr |
| Texture * | normal = nullptr |
| Quad * | quad = nullptr |
| Shader * | shader = nullptr |
| Canvas * | canvas = nullptr |
| Camera2D * | camera = nullptr |
| bool | receiveLight = true |
| bool | litPath = false |
| bool | hasUV = false |
| bool | rotatedUV = false |
| Atlas-packed rotated region: corner UVs are remapped (rotated 90°). | |
| float | u0 = 0.f |
| float | v0 = 0.f |
| float | u1 = 1.f |
| float | v1 = 1.f |
| float | camX = 0.f |
| Screen-space camera already resolved; if cameraEntity set, RenderSystem resolves. | |
| float | camY = 0.f |
| float | camZoom = 1.f |
| bool | camValid = false |
| Color | camClear {0.1f, 0.1f, 0.12f, 1.f} |
| float | camAmbientR = 0.15f |
| float | camAmbientG = 0.15f |
| float | camAmbientB = 0.18f |
详细描述
Shared 2D draw queue item (sprites + tiles).
在文件 DrawItem2D.h 第 18 行定义.
类成员变量说明
◆ blend
| BlendMode eve::graphics::DrawItem2D::blend = BlendMode::Alpha |
2D quad blending (alpha / additive / opaque).
在文件 DrawItem2D.h 第 33 行定义.
◆ camAmbientB
| float eve::graphics::DrawItem2D::camAmbientB = 0.18f |
在文件 DrawItem2D.h 第 50 行定义.
◆ camAmbientG
| float eve::graphics::DrawItem2D::camAmbientG = 0.15f |
在文件 DrawItem2D.h 第 50 行定义.
◆ camAmbientR
| float eve::graphics::DrawItem2D::camAmbientR = 0.15f |
在文件 DrawItem2D.h 第 50 行定义.
◆ camClear
在文件 DrawItem2D.h 第 49 行定义.
◆ camera
| Camera2D* eve::graphics::DrawItem2D::camera = nullptr |
在文件 DrawItem2D.h 第 39 行定义.
被这些函数引用 eve::map::TileRenderSystem::collect() , 以及 eve::graphics::RenderSystem::collectSprites().
◆ camValid
| bool eve::graphics::DrawItem2D::camValid = false |
在文件 DrawItem2D.h 第 48 行定义.
被这些函数引用 eve::map::TileRenderSystem::collect() , 以及 eve::graphics::RenderSystem::collectSprites().
◆ camX
| float eve::graphics::DrawItem2D::camX = 0.f |
Screen-space camera already resolved; if cameraEntity set, RenderSystem resolves.
在文件 DrawItem2D.h 第 47 行定义.
被这些函数引用 eve::map::TileRenderSystem::collect() , 以及 eve::graphics::RenderSystem::collectSprites().
◆ camY
| float eve::graphics::DrawItem2D::camY = 0.f |
在文件 DrawItem2D.h 第 47 行定义.
被这些函数引用 eve::map::TileRenderSystem::collect() , 以及 eve::graphics::RenderSystem::collectSprites().
◆ camZoom
| float eve::graphics::DrawItem2D::camZoom = 1.f |
在文件 DrawItem2D.h 第 47 行定义.
被这些函数引用 eve::map::TileRenderSystem::collect() , 以及 eve::graphics::RenderSystem::collectSprites().
◆ canvas
| Canvas* eve::graphics::DrawItem2D::canvas = nullptr |
在文件 DrawItem2D.h 第 38 行定义.
被这些函数引用 eve::map::TileRenderSystem::collect() , 以及 eve::graphics::RenderSystem::collectSprites().
◆ color
◆ depthY
| float eve::graphics::DrawItem2D::depthY = 0.f |
◆ h
| float eve::graphics::DrawItem2D::h = 0.f |
◆ hasOrder
| bool eve::graphics::DrawItem2D::hasOrder = false |
在文件 DrawItem2D.h 第 29 行定义.
◆ hasUV
| bool eve::graphics::DrawItem2D::hasUV = false |
◆ layer
| int eve::graphics::DrawItem2D::layer = 0 |
◆ litPath
| bool eve::graphics::DrawItem2D::litPath = false |
在文件 DrawItem2D.h 第 41 行定义.
被这些函数引用 eve::map::TileRenderSystem::collect() , 以及 eve::graphics::RenderSystem::collectSprites().
◆ normal
| Texture* eve::graphics::DrawItem2D::normal = nullptr |
在文件 DrawItem2D.h 第 35 行定义.
◆ order
| int eve::graphics::DrawItem2D::order = 0 |
Explicit back-to-front order (e.g. Spine slot draw order). When set on both items it takes priority over depthY.
在文件 DrawItem2D.h 第 28 行定义.
◆ quad
| Quad* eve::graphics::DrawItem2D::quad = nullptr |
在文件 DrawItem2D.h 第 36 行定义.
◆ receiveLight
| bool eve::graphics::DrawItem2D::receiveLight = true |
◆ rotatedUV
| bool eve::graphics::DrawItem2D::rotatedUV = false |
Atlas-packed rotated region: corner UVs are remapped (rotated 90°).
在文件 DrawItem2D.h 第 44 行定义.
◆ rotation
| float eve::graphics::DrawItem2D::rotation = 0.f |
Degrees, clockwise, around the rectangle center (screen Y-down).
在文件 DrawItem2D.h 第 25 行定义.
◆ shader
| Shader* eve::graphics::DrawItem2D::shader = nullptr |
在文件 DrawItem2D.h 第 37 行定义.
◆ texture
| Texture* eve::graphics::DrawItem2D::texture = nullptr |
◆ u0
| float eve::graphics::DrawItem2D::u0 = 0.f |
◆ u1
| float eve::graphics::DrawItem2D::u1 = 1.f |
◆ v0
| float eve::graphics::DrawItem2D::v0 = 0.f |
◆ v1
| float eve::graphics::DrawItem2D::v1 = 1.f |
◆ w
| float eve::graphics::DrawItem2D::w = 0.f |
◆ x
| float eve::graphics::DrawItem2D::x = 0.f |
◆ y
| float eve::graphics::DrawItem2D::y = 0.f |
该结构体的文档由以下文件生成:
- src/modules/graphics/DrawItem2D.h