载入中...
搜索中...
未找到
eve::graphics::DrawItem2D结构体 参考

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).
 
Texturetexture = nullptr
 
Texturenormal = nullptr
 
Quadquad = nullptr
 
Shadershader = nullptr
 
Canvascanvas = nullptr
 
Camera2Dcamera = 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.h18 行定义.

类成员变量说明

◆ blend

BlendMode eve::graphics::DrawItem2D::blend = BlendMode::Alpha

2D quad blending (alpha / additive / opaque).

在文件 DrawItem2D.h33 行定义.

◆ camAmbientB

float eve::graphics::DrawItem2D::camAmbientB = 0.18f

在文件 DrawItem2D.h50 行定义.

被这些函数引用 eve::graphics::RenderSystem::collectSprites().

◆ camAmbientG

float eve::graphics::DrawItem2D::camAmbientG = 0.15f

在文件 DrawItem2D.h50 行定义.

被这些函数引用 eve::graphics::RenderSystem::collectSprites().

◆ camAmbientR

float eve::graphics::DrawItem2D::camAmbientR = 0.15f

在文件 DrawItem2D.h50 行定义.

被这些函数引用 eve::graphics::RenderSystem::collectSprites().

◆ camClear

Color eve::graphics::DrawItem2D::camClear {0.1f, 0.1f, 0.12f, 1.f}

在文件 DrawItem2D.h49 行定义.

被这些函数引用 eve::graphics::RenderSystem::collectSprites().

◆ camera

Camera2D* eve::graphics::DrawItem2D::camera = nullptr

◆ camValid

bool eve::graphics::DrawItem2D::camValid = false

◆ camX

float eve::graphics::DrawItem2D::camX = 0.f

Screen-space camera already resolved; if cameraEntity set, RenderSystem resolves.

在文件 DrawItem2D.h47 行定义.

被这些函数引用 eve::map::TileRenderSystem::collect() , 以及 eve::graphics::RenderSystem::collectSprites().

◆ camY

float eve::graphics::DrawItem2D::camY = 0.f

◆ camZoom

float eve::graphics::DrawItem2D::camZoom = 1.f

◆ canvas

Canvas* eve::graphics::DrawItem2D::canvas = nullptr

◆ color

Color eve::graphics::DrawItem2D::color {1.f, 1.f, 1.f, 1.f}

◆ depthY

float eve::graphics::DrawItem2D::depthY = 0.f

◆ h

float eve::graphics::DrawItem2D::h = 0.f

◆ hasOrder

bool eve::graphics::DrawItem2D::hasOrder = false

在文件 DrawItem2D.h29 行定义.

被这些函数引用 eve::animation::SpineAnim::collectDrawItems().

◆ hasUV

bool eve::graphics::DrawItem2D::hasUV = false

◆ layer

int eve::graphics::DrawItem2D::layer = 0

◆ litPath

bool eve::graphics::DrawItem2D::litPath = false

◆ normal

Texture* eve::graphics::DrawItem2D::normal = nullptr

在文件 DrawItem2D.h35 行定义.

被这些函数引用 eve::graphics::RenderSystem::collectSprites().

◆ 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.h28 行定义.

被这些函数引用 eve::animation::SpineAnim::collectDrawItems().

◆ quad

Quad* eve::graphics::DrawItem2D::quad = nullptr

在文件 DrawItem2D.h36 行定义.

被这些函数引用 eve::graphics::RenderSystem::collectSprites().

◆ 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.h44 行定义.

被这些函数引用 eve::animation::SpineAnim::collectDrawItems().

◆ rotation

float eve::graphics::DrawItem2D::rotation = 0.f

Degrees, clockwise, around the rectangle center (screen Y-down).

在文件 DrawItem2D.h25 行定义.

被这些函数引用 eve::animation::SpineAnim::collectDrawItems().

◆ shader

Shader* eve::graphics::DrawItem2D::shader = nullptr

在文件 DrawItem2D.h37 行定义.

被这些函数引用 eve::graphics::RenderSystem::collectSprites().

◆ 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

该结构体的文档由以下文件生成: