载入中...
搜索中...
未找到
eve::stylize::StyleRecipe类 参考

Compilable recipe of style instances sharing one pipeline stage. 更多...

#include <StyleRecipe.h>

Public 成员函数

 StyleRecipe ()=default
 Style recipe.
 
 ~StyleRecipe ()
 Style recipe.
 
 StyleRecipe (const StyleRecipe &)=delete
 
StyleRecipe & operator= (const StyleRecipe &)=delete
 
void clear ()
 Clears .
 
void add (StyleInstance *instance)
 Adds .
 
int getStyleCount () const
 Returns the style count.
 
StyleInstance * getStyle (int index) const
 Returns the style.
 
void compile (graphics::Graphics *gfx)
 Compiles .
 
bool isCompiled () const
 True when compiled.
 
std::string getStage () const
 Returns the stage.
 
void apply (graphics::Graphics *gfx, graphics::Texture *source, graphics::Canvas *dest)
 Applies .
 
void applyCanvas (graphics::Graphics *gfx, graphics::Canvas *source, graphics::Canvas *dest)
 Applies canvas.
 

详细描述

Compilable recipe of style instances sharing one pipeline stage.

Instances are not owned. Compiled passes and transient ping-pong targets are managed by the recipe/Graphics, so callers do not supply temporary canvases.

在文件 StyleRecipe.h 第 26 行定义.

构造及析构函数说明

◆ StyleRecipe() [1/2]

eve::stylize::StyleRecipe::StyleRecipe ( )
default

Style recipe.

◆ ~StyleRecipe()

eve::stylize::StyleRecipe::~StyleRecipe ( )
default

Style recipe.

◆ StyleRecipe() [2/2]

eve::stylize::StyleRecipe::StyleRecipe ( const StyleRecipe &  )
delete

成员函数说明

◆ add()

void eve::stylize::StyleRecipe::add ( StyleInstance *  instance)

Adds .

在文件 StyleRecipe.cpp 第 25 行定义.

◆ apply()

void eve::stylize::StyleRecipe::apply ( graphics::Graphics *  gfx,
graphics::Texture *  source,
graphics::Canvas *  dest 
)

Applies .

在文件 StyleRecipe.cpp 第 71 行定义.

引用了 eve::stylize::StyleChain::add(), eve::stylize::StyleChain::apply() , 以及 source.

被这些函数引用 applyCanvas().

◆ applyCanvas()

void eve::stylize::StyleRecipe::applyCanvas ( graphics::Graphics *  gfx,
graphics::Canvas *  source,
graphics::Canvas *  dest 
)

Applies canvas.

在文件 StyleRecipe.cpp 第 82 行定义.

引用了 apply(), eve::graphics::Canvas::getTexture() , 以及 source.

◆ clear()

void eve::stylize::StyleRecipe::clear ( )

Clears .

在文件 StyleRecipe.cpp 第 18 行定义.

◆ compile()

void eve::stylize::StyleRecipe::compile ( graphics::Graphics *  gfx)

Compiles .

在文件 StyleRecipe.cpp 第 36 行定义.

引用了 a , 以及 b.

◆ getStage()

std::string eve::stylize::StyleRecipe::getStage ( ) const
inline

Returns the stage.

在文件 StyleRecipe.h 第 50 行定义.

◆ getStyle()

StyleInstance * eve::stylize::StyleRecipe::getStyle ( int  index) const

Returns the style.

在文件 StyleRecipe.cpp 第 31 行定义.

引用了 index.

◆ getStyleCount()

int eve::stylize::StyleRecipe::getStyleCount ( ) const
inline

Returns the style count.

在文件 StyleRecipe.h 第 41 行定义.

◆ isCompiled()

bool eve::stylize::StyleRecipe::isCompiled ( ) const
inline

True when compiled.

在文件 StyleRecipe.h 第 48 行定义.

◆ operator=()

StyleRecipe & eve::stylize::StyleRecipe::operator= ( const StyleRecipe &  )
delete

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