mesh_create_info.hpp File Reference

Classes

class  kanzi::Mesh
 Struct which contains all the parameters that are needed for mesh creation. More...
 
struct  kanzi::Mesh::Cluster
 Parameters for Mesh::Cluster creation. More...
 

Namespaces

 kanzi
 

Functions

void kanzi::swap (Mesh::CreateInfo::Cluster &cluster1, Mesh::CreateInfo::Cluster &cluster2)
 
void kanzi::swap (Mesh::CreateInfo &createInfo1, Mesh::CreateInfo &createInfo2)
 
KANZI_API void kanzi::writeVertexAttribute (Mesh::CreateInfo &createInfo, size_t vertexIndex, size_t attributeIndex, size_t component, float v)
 Writes one float attribute component to vertex data. More...
 
KANZI_API void kanzi::writeVertexAttribute (Mesh::CreateInfo &createInfo, size_t vertexIndex, size_t attributeIndex, float v)
 Writes one float attribute value to vertex data. More...
 
KANZI_API void kanzi::writeVertexAttribute (Mesh::CreateInfo &createInfo, size_t vertexIndex, size_t attributeIndex, Vector2 v)
 Writes one Vector2 attribute value to vertex data. More...
 
KANZI_API void kanzi::writeVertexAttribute (Mesh::CreateInfo &createInfo, size_t vertexIndex, size_t attributeIndex, Vector3 v)
 Writes one Vector3 attribute value to vertex data. More...
 
KANZI_API void kanzi::writeVertexAttribute (Mesh::CreateInfo &createInfo, size_t vertexIndex, size_t attributeIndex, Vector4 v)
 Writes one Vector3 attribute value to vertex data. More...
 
KANZI_API float kanzi::readVertexAttributeComponent (const Mesh::CreateInfo &createInfo, size_t vertexIndex, size_t attributeIndex, size_t component)
 Reads one attribute component of given vertex from mesh create info. More...
 
KANZI_API float kanzi::readVertexAttributeFloat (const Mesh::CreateInfo &createInfo, size_t vertexIndex, size_t attributeIndex)
 Reads float attribute of given vertex from mesh. More...
 
KANZI_API Vector2 kanzi::readVertexAttributeVector2 (const Mesh::CreateInfo &createInfo, size_t vertexIndex, size_t attributeIndex)
 Reads Vector2 attribute of given vertex from mesh. More...
 
KANZI_API Vector3 kanzi::readVertexAttributeVector3 (const Mesh::CreateInfo &createInfo, size_t vertexIndex, size_t attributeIndex)
 Reads Vector3 attribute of given vertex from mesh. More...
 
KANZI_API Vector4 kanzi::readVertexAttributeVector4 (const Mesh::CreateInfo &createInfo, size_t vertexIndex, size_t attributeIndex)
 Reads Vector4 attribute of given vertex from mesh. More...
 
KANZI_API Mesh::CreateInfo kanzi::loadMeshCreateInfo (Domain *domain, KzcInputStream *inputStream, const KzuBinaryFileInfo *file)
 Loads mesh create info from legacy KZB. More...
 
KANZI_API Mesh::CreateInfo kanzi::loadMeshCreateInfo (Domain *domain, KzbFile &kzbFile, ReadOnlyMemoryFile &file, KzbMemoryParser &parser)
 Loads mesh create info from KZB. More...
 
KANZI_API Box kanzi::calculateBoundingVolume (const Mesh::CreateInfo &createInfo)
 Calculates bounding box from mesh vertex data. More...
 
KANZI_API void kanzi::updateVertexAttributeOffsetsAndVertexSize (Mesh::CreateInfo &createInfo)
 Sets offsets for vertex attributes in mesh create info. More...
 
KANZI_API void kanzi::updateVertexAttributeStrides (Mesh::CreateInfo &createInfo)
 Calculates vertex format size and updates stride to all vertex attributes in mesh create info. More...
 
KANZI_API void kanzi::acquireResources (Domain *domain, Mesh::CreateInfo &createInfo)
 For each cluster in mesh create info, load material from materialURL, if set. More...
 
KANZI_API Mesh::CreateInfo kanzi::generateBox (Vector3 size, bool useHalfFloat, bool generateNormals, bool generateTangents, MaterialSharedPtr material, string_view materialURL, GPUResource::MemoryType memoryType)
 Makes mesh create info for box primitive mesh. More...
 
KANZI_API Mesh::CreateInfo kanzi::generateSphere (float radius, unsigned int segmentCount, unsigned int rowCount, bool useHalfFloat, bool generateNormals, bool generateTangents, MaterialSharedPtr material, string_view materialURL, GPUResource::MemoryType memoryType)
 Makes mesh create info for sphere primitive mesh. More...
 
KANZI_API Mesh::CreateInfo kanzi::generatePlane (float width, float height, bool invertU, bool invertV, bool useHalfFloat, bool generateNormals, bool generateTangents, MaterialSharedPtr material, string_view materialURL, GPUResource::MemoryType memoryType)
 Makes mesh create info for plane primitive mesh. More...