|
Graphics v0.0.0
A simple abstraction layer for the modern graphics APIs.
|
Public 成员函数 | |
| GLIndexBuffer (const uint32_t *data, size_t size, Buffer::Usage usage) | |
| Buffer & | get_buffer () override |
| void | bind () |
Public 成员函数 继承自 IndexBuffer | |
| size_t | get_size () const |
| 获取缓冲区大小, 单位: 字节. | |
| uint32_t | get_count () const |
| 获取索引数. | |
| virtual Buffer & | get_buffer ()=0 |
额外继承的成员函数 | |
静态 Public 成员函数 继承自 IndexBuffer | |
| static std::shared_ptr< IndexBuffer > | create (std::span< const uint32_t > data, Buffer::Usage usage=Buffer::Usage::Static) |
| 创建 IndexBuffer. 更多... | |
| static std::shared_ptr< IndexBuffer > | create (const uint32_t *data, size_t size, Buffer::Usage usage=Buffer::Usage::Static) |
| 创建 IndexBuffer. 更多... | |
Protected 成员函数 继承自 IndexBuffer | |
| IndexBuffer (const void *data, size_t size) | |
|
overridevirtual |
实现了 IndexBuffer.