slot 0.0.1
A real time UI render framework
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
z8::GrassBlockTexture类 参考final

演示场景使用的草方块 RGBA8 纹理。 更多...

#include <BuiltinTexture.h>

类 z8::GrassBlockTexture 继承关系图:
Inheritance graph
[图例]
z8::GrassBlockTexture 的协作图:
Collaboration graph
[图例]

Public 成员函数

 GrassBlockTexture ()
 
- Public 成员函数 继承自 z8::BaseTexture
 BaseTexture ()
 
bool Load (const std::wstring &path, std::string *error=nullptr)
 
bool Validate () const
 
- Public 成员函数 继承自 z8::Resource
virtual ~Resource ()=default
 
bool IsValid () const
 

额外继承的成员函数

- Public 属性 继承自 z8::BaseTexture
uint32_t Height = 0
 
uint32_t Width = 0
 
std::vector< std::byte > Pixels
 
- Public 属性 继承自 z8::Resource
std::string Id
 
ResourceTy Type = ResourceTy::None
 

详细描述

演示场景使用的草方块 RGBA8 纹理。

该类把规范 ID 和文件来源绑定为一个不可分割的资源描述,避免 注册端创建通用 Texture 后遗漏或改错 ID。

构造及析构函数说明

◆ GrassBlockTexture()

GrassBlockTexture::GrassBlockTexture ( )
函数调用图:

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