Skip to content

Kuesa::Serenity::MeshGenerator

#include <meshgenerator.h>

Public Types

Name
using std::unique_ptr<::Serenity::Mesh > MeshPrimitivePtr
using std::vector< MeshPrimitivePtr > MeshPrimitivesForMesh

Public Functions

Name
std::vector< MeshPrimitivesForMesh > generate(const GLTF2Import::GLTF2Context * context)
KDGpu::Format formatForAccessor(uint8_t dataSize, const GLTF2Import::Accessor::Type type)
bool checkVertexAttributeIsValid(const String & gltf2AttributeName, const GLTF2Import::Accessor & accessor)
uint32_t locationForAttribute(const String & attributeName, int32_t morphTargetAttributeIdx)

Public Types Documentation

using MeshPrimitivePtr

1
using Kuesa::Serenity::MeshGenerator::MeshPrimitivePtr =  std::unique_ptr<::Serenity::Mesh>;

using MeshPrimitivesForMesh

1
using Kuesa::Serenity::MeshGenerator::MeshPrimitivesForMesh =  std::vector<MeshPrimitivePtr>;

Public Functions Documentation

function generate

1
2
3
std::vector< MeshPrimitivesForMesh > generate(
    const GLTF2Import::GLTF2Context * context
)

function formatForAccessor

1
2
3
4
static KDGpu::Format formatForAccessor(
    uint8_t dataSize,
    const GLTF2Import::Accessor::Type type
)

function checkVertexAttributeIsValid

1
2
3
4
static bool checkVertexAttributeIsValid(
    const String & gltf2AttributeName,
    const GLTF2Import::Accessor & accessor
)

function locationForAttribute

1
2
3
4
static uint32_t locationForAttribute(
    const String & attributeName,
    int32_t morphTargetAttributeIdx
)

Updated on 2023-07-03 at 11:02:07 +0000