FCT
|
#include <Mesh.h>
Public 成员函数 | |
DynamicMesh (Context *context, const VertexLayout &layout) | |
~DynamicMesh () | |
template<typename... Args> | |
void | addVertex (Args &&... args) |
void | addIndex (IndexType index) |
void | addIndices (const std::vector< IndexType > &indices) |
void | setIndices (const std::vector< IndexType > &indices) |
void | reserveVertices (size_t capacity) |
void | reserveIndices (size_t capacity) |
void | create () |
void | bind (RHI::CommandBuffer *cmdBuf) |
void | draw (RHI::CommandBuffer *cmdBuf, uint32_t instanceCount=1) |
void | clear () |
void | updateVertexData () |
void | updateIndexData () |
void | update () |
VertexBuffer * | getVertexBuffer () const |
size_t | getIndexCount () const |
size_t | getVertexCount () const |
size_t | getVertexCapacity () const |
size_t | getIndexCapacity () const |
Private 成员函数 | |
void | resizeVertexBuffer (size_t newCapacity) |
void | resizeIndexBuffer (size_t newCapacity) |
Private 属性 | |
Context * | m_ctx |
VertexLayout | m_vertexLayout |
VertexBuffer * | m_cpuVertex |
RHI::VertexBuffer * | m_gpuVertex |
RHI::IndexBuffer * | m_gpuIndex |
std::vector< IndexType > | m_cpuIndices |
size_t | m_vertexCapacity = 0 |
size_t | m_indexCapacity = 0 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void FCT::DynamicMesh< IndexType >::create | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |