FCT
载入中...
搜索中...
未找到
FCT::StaticMesh< IndexType > 模板类 参考

#include <Mesh.h>

FCT::StaticMesh< IndexType > 的协作图:
Collaboration graph

Public 成员函数

 StaticMesh (Context *context, const VertexLayout &layout)
 ~StaticMesh ()
template<typename... Args>
void addVertex (Args &&... args)
void setIndices (const std::vector< IndexType > &indices)
void create ()
void bind (RHI::CommandBuffer *cmdBuf)
void draw (RHI::CommandBuffer *cmdBuf, uint32_t instanceCount=1)
void updateVertexData ()
void updateIndexData ()
VertexBuffergetVertexBuffer () const
size_t getIndexCount () const
size_t getVertexCount () const

Private 属性

Contextm_ctx
VertexLayout m_vertexLayout
VertexBufferm_cpuVertex
RHI::VertexBufferm_gpuVertex
RHI::IndexBufferm_gpuIndex
std::vector< IndexType > m_cpuIndices

详细描述

template<typename IndexType = uint16_t>
class FCT::StaticMesh< IndexType >

在文件 Mesh.h15 行定义.

构造及析构函数说明

◆ StaticMesh()

template<typename IndexType = uint16_t>
FCT::StaticMesh< IndexType >::StaticMesh ( Context * context,
const VertexLayout & layout )
inline

在文件 Mesh.h18 行定义.

◆ ~StaticMesh()

template<typename IndexType = uint16_t>
FCT::StaticMesh< IndexType >::~StaticMesh ( )
inline

在文件 Mesh.h24 行定义.

成员函数说明

◆ addVertex()

template<typename IndexType = uint16_t>
template<typename... Args>
void FCT::StaticMesh< IndexType >::addVertex ( Args &&... args)
inline

在文件 Mesh.h38 行定义.

◆ bind()

template<typename IndexType = uint16_t>
void FCT::StaticMesh< IndexType >::bind ( RHI::CommandBuffer * cmdBuf)
inline

在文件 Mesh.h50 行定义.

◆ create()

template<typename IndexType>
void FCT::StaticMesh< IndexType >::create ( )

在文件 Mesh.hpp5 行定义.

这是这个函数的调用关系图:

◆ draw()

template<typename IndexType = uint16_t>
void FCT::StaticMesh< IndexType >::draw ( RHI::CommandBuffer * cmdBuf,
uint32_t instanceCount = 1 )
inline

在文件 Mesh.h61 行定义.

函数调用图:

◆ getIndexCount()

template<typename IndexType = uint16_t>
size_t FCT::StaticMesh< IndexType >::getIndexCount ( ) const
inline

在文件 Mesh.h86 行定义.

◆ getVertexBuffer()

template<typename IndexType = uint16_t>
VertexBuffer * FCT::StaticMesh< IndexType >::getVertexBuffer ( ) const
inline

在文件 Mesh.h84 行定义.

这是这个函数的调用关系图:

◆ getVertexCount()

template<typename IndexType = uint16_t>
size_t FCT::StaticMesh< IndexType >::getVertexCount ( ) const
inline

在文件 Mesh.h88 行定义.

◆ setIndices()

template<typename IndexType = uint16_t>
void FCT::StaticMesh< IndexType >::setIndices ( const std::vector< IndexType > & indices)
inline

在文件 Mesh.h43 行定义.

这是这个函数的调用关系图:

◆ updateIndexData()

template<typename IndexType = uint16_t>
void FCT::StaticMesh< IndexType >::updateIndexData ( )
inline

在文件 Mesh.h77 行定义.

◆ updateVertexData()

template<typename IndexType = uint16_t>
void FCT::StaticMesh< IndexType >::updateVertexData ( )
inline

在文件 Mesh.h70 行定义.

类成员变量说明

◆ m_cpuIndices

template<typename IndexType = uint16_t>
std::vector<IndexType> FCT::StaticMesh< IndexType >::m_cpuIndices
private

在文件 Mesh.h96 行定义.

◆ m_cpuVertex

template<typename IndexType = uint16_t>
VertexBuffer* FCT::StaticMesh< IndexType >::m_cpuVertex
private

在文件 Mesh.h93 行定义.

◆ m_ctx

template<typename IndexType = uint16_t>
Context* FCT::StaticMesh< IndexType >::m_ctx
private

在文件 Mesh.h91 行定义.

◆ m_gpuIndex

template<typename IndexType = uint16_t>
RHI::IndexBuffer* FCT::StaticMesh< IndexType >::m_gpuIndex
private

在文件 Mesh.h95 行定义.

◆ m_gpuVertex

template<typename IndexType = uint16_t>
RHI::VertexBuffer* FCT::StaticMesh< IndexType >::m_gpuVertex
private

在文件 Mesh.h94 行定义.

◆ m_vertexLayout

template<typename IndexType = uint16_t>
VertexLayout FCT::StaticMesh< IndexType >::m_vertexLayout
private

在文件 Mesh.h92 行定义.


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