Graphics v0.0.0
A simple abstraction layer for the modern graphics APIs.
|
网格. 更多...
#include <Mesh.h>
类 | |
struct | Vertex |
Public 成员函数 | |
Mesh (std::string_view name, const std::vector< Vertex > &vertices, const std::vector< unsigned int > &indices, Material *mat=nullptr) | |
float | compress () |
压缩. 更多... | |
void | decompress () |
解压. | |
bool | is_compressed () const noexcept |
Public 属性 | |
std::string | name |
std::vector< Vertex > | vertices |
std::vector< unsigned int > | indices |
Material * | material = nullptr |
uint32_t | vertexCount = 0 |
uint32_t | indexCount = 0 |
std::shared_ptr< VertexBuffer > | vertexBuffer |
std::shared_ptr< IndexBuffer > | indexBuffer |
网格.
float Mesh::compress | ( | ) |
压缩.
|
noexcept |
是否已经过压缩.