载入中...
搜索中...
未找到
eve::graphics::Batcher类 参考

Accumulates solid / textured quads in logical (Y-down) coordinates. Used by RenderSystem; not a public script API. 更多...

#include <Batcher.h>

Public 成员函数

void clear ()
 
void addRect (float x, float y, float w, float h, const Color &color)
 
void addRectRotated (float cx, float cy, float w, float h, float degrees, const Color &color)
 
void addTexturedRect (float x, float y, float w, float h, const Color &color, float u0, float v0, float u1, float v1, bool rotatedUV=false)
 
void addTexturedRectRotated (float cx, float cy, float w, float h, float degrees, const Color &color, float u0, float v0, float u1, float v1, bool rotatedUV=false)
 Textured quad rotated degrees (clockwise, screen Y-down) around (cx, cy).
 
const std::vector< BatchVertex > & vertices () const
 
bool empty () const
 
void toNDC (int logicalW, int logicalH)
 

详细描述

Accumulates solid / textured quads in logical (Y-down) coordinates. Used by RenderSystem; not a public script API.

在文件 Batcher.h22 行定义.

成员函数说明

◆ addRect()

void eve::graphics::Batcher::addRect ( float  x,
float  y,
float  w,
float  h,
const Color color 
)

在文件 Batcher.cpp10 行定义.

引用了 addTexturedRect(), color, h, w, x , 以及 y.

◆ addRectRotated()

void eve::graphics::Batcher::addRectRotated ( float  cx,
float  cy,
float  w,
float  h,
float  degrees,
const Color color 
)

在文件 Batcher.cpp80 行定义.

引用了 color, cx, cy, degrees, h, tr , 以及 w.

◆ addTexturedRect()

void eve::graphics::Batcher::addTexturedRect ( float  x,
float  y,
float  w,
float  h,
const Color color,
float  u0,
float  v0,
float  u1,
float  v1,
bool  rotatedUV = false 
)

在文件 Batcher.cpp14 行定义.

引用了 color, h, w, x , 以及 y.

被这些函数引用 addRect().

◆ addTexturedRectRotated()

void eve::graphics::Batcher::addTexturedRectRotated ( float  cx,
float  cy,
float  w,
float  h,
float  degrees,
const Color color,
float  u0,
float  v0,
float  u1,
float  v1,
bool  rotatedUV = false 
)

Textured quad rotated degrees (clockwise, screen Y-down) around (cx, cy).

在文件 Batcher.cpp41 行定义.

引用了 color, cx, cy, degrees, h, tr , 以及 w.

◆ clear()

void eve::graphics::Batcher::clear ( )

在文件 Batcher.cpp8 行定义.

◆ empty()

bool eve::graphics::Batcher::empty ( ) const
inline

在文件 Batcher.h35 行定义.

◆ toNDC()

void eve::graphics::Batcher::toNDC ( int  logicalW,
int  logicalH 
)

Convert stored logical Y-down positions into Vulkan NDC in-place ((-1,-1)=top-left, (+1,+1)=bottom-right).

在文件 Batcher.cpp108 行定义.

引用了 v.

◆ vertices()

const std::vector< BatchVertex > & eve::graphics::Batcher::vertices ( ) const
inline

在文件 Batcher.h34 行定义.


该类的文档由以下文件生成: