FCT
载入中...
搜索中...
未找到
FCT::Primitives 命名空间参考

枚举

enum class  VertexMode { Shared , PerFace , Auto }
enum class  TextureMode { Single , PerFace , Auto }

函数

template<typename IndexType = uint16_t>
static StaticMesh< IndexType > * createCube (Context *ctx, float size=1.0f, const VertexLayout &layout=VertexLayout{ VertexElement{VtxType::Position3f}, VertexElement{VtxType::Color4f}, VertexElement{VtxType::TexCoord2f} })
template<typename IndexType = uint16_t>
static StaticMesh< IndexType > * createSphere (Context *ctx, float radius=1.0f, int segments=16, const VertexLayout &layout=VertexLayout{ VertexElement{VtxType::Position3f}, VertexElement{VtxType::Color4f}, VertexElement{VtxType::TexCoord2f} })

枚举类型说明

◆ TextureMode

enum class FCT::Primitives::TextureMode
strong
枚举值
Single 
PerFace 
Auto 

在文件 Primitives.h17 行定义.

◆ VertexMode

enum class FCT::Primitives::VertexMode
strong
枚举值
Shared 
PerFace 
Auto 

在文件 Primitives.h11 行定义.

函数说明

◆ createCube()

template<typename IndexType = uint16_t>
StaticMesh< IndexType > * FCT::Primitives::createCube ( Context * ctx,
float size = 1.0f,
const VertexLayout & layout = VertexLayoutVertexElement{VtxType::Position3f}, VertexElement{VtxType::Color4f}, VertexElement{VtxType::TexCoord2f} } )
static

在文件 Primitives.h23 行定义.

◆ createSphere()

template<typename IndexType = uint16_t>
StaticMesh< IndexType > * FCT::Primitives::createSphere ( Context * ctx,
float radius = 1.0f,
int segments = 16,
const VertexLayout & layout = VertexLayoutVertexElement{VtxType::Position3f}, VertexElement{VtxType::Color4f}, VertexElement{VtxType::TexCoord2f} } )
static

在文件 Primitives.h106 行定义.