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). | |
| float | anchorX = 0.5f |
| Normalized transform pivot; (0,0) top-left, (0.5,0.5) center. | |
| float | anchorY = 0.5f |
| bool | flipX = false |
| bool | flipY = false |
| 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 | sceneColorDistortion = false |
| Sample and perturb the resolved 3D scene instead of drawing the texture color. | |
| float | distortionStrength = 0.f |
| Maximum displacement in screen pixels for sceneColorDistortion. | |
| 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 行定义.
类成员变量说明
◆ anchorX
| float eve::graphics::DrawItem2D::anchorX = 0.5f |
Normalized transform pivot; (0,0) top-left, (0.5,0.5) center.
在文件 DrawItem2D.h 第 27 行定义.
◆ anchorY
| float eve::graphics::DrawItem2D::anchorY = 0.5f |
在文件 DrawItem2D.h 第 27 行定义.
◆ blend
| BlendMode eve::graphics::DrawItem2D::blend = BlendMode::Alpha |
2D quad blending (alpha / additive / opaque).
在文件 DrawItem2D.h 第 36 行定义.
◆ camAmbientB
| float eve::graphics::DrawItem2D::camAmbientB = 0.18f |
在文件 DrawItem2D.h 第 57 行定义.
◆ camAmbientG
| float eve::graphics::DrawItem2D::camAmbientG = 0.15f |
在文件 DrawItem2D.h 第 57 行定义.
◆ camAmbientR
| float eve::graphics::DrawItem2D::camAmbientR = 0.15f |
在文件 DrawItem2D.h 第 57 行定义.
◆ camClear
在文件 DrawItem2D.h 第 56 行定义.
◆ camera
| Camera2D* eve::graphics::DrawItem2D::camera = nullptr |
在文件 DrawItem2D.h 第 42 行定义.
被这些函数引用 eve::map::TileRenderSystem::collect() , 以及 eve::graphics::RenderSystem::collectSprites().
◆ camValid
| bool eve::graphics::DrawItem2D::camValid = false |
在文件 DrawItem2D.h 第 55 行定义.
被这些函数引用 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 第 54 行定义.
被这些函数引用 eve::map::TileRenderSystem::collect() , 以及 eve::graphics::RenderSystem::collectSprites().
◆ camY
| float eve::graphics::DrawItem2D::camY = 0.f |
在文件 DrawItem2D.h 第 54 行定义.
被这些函数引用 eve::map::TileRenderSystem::collect() , 以及 eve::graphics::RenderSystem::collectSprites().
◆ camZoom
| float eve::graphics::DrawItem2D::camZoom = 1.f |
在文件 DrawItem2D.h 第 54 行定义.
被这些函数引用 eve::map::TileRenderSystem::collect() , 以及 eve::graphics::RenderSystem::collectSprites().
◆ canvas
| Canvas* eve::graphics::DrawItem2D::canvas = nullptr |
在文件 DrawItem2D.h 第 41 行定义.
被这些函数引用 eve::map::TileRenderSystem::collect() , 以及 eve::graphics::RenderSystem::collectSprites().
◆ color
◆ depthY
| float eve::graphics::DrawItem2D::depthY = 0.f |
◆ distortionStrength
| float eve::graphics::DrawItem2D::distortionStrength = 0.f |
Maximum displacement in screen pixels for sceneColorDistortion.
在文件 DrawItem2D.h 第 48 行定义.
◆ flipX
| bool eve::graphics::DrawItem2D::flipX = false |
在文件 DrawItem2D.h 第 28 行定义.
◆ flipY
| bool eve::graphics::DrawItem2D::flipY = false |
在文件 DrawItem2D.h 第 28 行定义.
◆ h
| float eve::graphics::DrawItem2D::h = 0.f |
◆ hasOrder
| bool eve::graphics::DrawItem2D::hasOrder = false |
在文件 DrawItem2D.h 第 32 行定义.
◆ hasUV
| bool eve::graphics::DrawItem2D::hasUV = false |
◆ layer
| int eve::graphics::DrawItem2D::layer = 0 |
◆ litPath
| bool eve::graphics::DrawItem2D::litPath = false |
在文件 DrawItem2D.h 第 44 行定义.
被这些函数引用 eve::map::TileRenderSystem::collect() , 以及 eve::graphics::RenderSystem::collectSprites().
◆ normal
| Texture* eve::graphics::DrawItem2D::normal = nullptr |
在文件 DrawItem2D.h 第 38 行定义.
◆ 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 第 31 行定义.
◆ quad
| Quad* eve::graphics::DrawItem2D::quad = nullptr |
在文件 DrawItem2D.h 第 39 行定义.
◆ 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 第 51 行定义.
◆ rotation
| float eve::graphics::DrawItem2D::rotation = 0.f |
Degrees, clockwise, around the rectangle center (screen Y-down).
在文件 DrawItem2D.h 第 25 行定义.
被这些函数引用 eve::animation::SpineAnim::collectDrawItems() , 以及 eve::graphics::RenderSystem::collectSprites().
◆ sceneColorDistortion
| bool eve::graphics::DrawItem2D::sceneColorDistortion = false |
Sample and perturb the resolved 3D scene instead of drawing the texture color.
在文件 DrawItem2D.h 第 46 行定义.
◆ shader
| Shader* eve::graphics::DrawItem2D::shader = nullptr |
在文件 DrawItem2D.h 第 40 行定义.
◆ 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