Nugget
Bare-metal libraries and examples for the original PlayStation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
psxm::Model Class Reference

Points into a PXM2 blob without copying it, so the blob has to outlive it. For an asset linked in by the build rule that costs nothing. More...

#include <common/util/psxm.hh>

Public Member Functions

bool parse (const uint8_t *blob)
 Accepts the blob if it carries the PXM2 magic. The blob has to be four byte aligned.
 
unsigned vertexCount () const
 
unsigned normalCount () const
 
unsigned triangleCount () const
 
const Vec3 * vertices () const
 
const Vec3 * normals () const
 
const Triangle * triangles () const
 

Detailed Description

Points into a PXM2 blob without copying it, so the blob has to outlive it. For an asset linked in by the build rule that costs nothing.

Member Function Documentation

◆ normalCount()

unsigned psxm::Model::normalCount ( ) const
inline

◆ normals()

const Vec3 * psxm::Model::normals ( ) const
inline

◆ parse()

bool psxm::Model::parse ( const uint8_t *  blob)
inline

Accepts the blob if it carries the PXM2 magic. The blob has to be four byte aligned.

◆ triangleCount()

unsigned psxm::Model::triangleCount ( ) const
inline

◆ triangles()

const Triangle * psxm::Model::triangles ( ) const
inline

◆ vertexCount()

unsigned psxm::Model::vertexCount ( ) const
inline

◆ vertices()

const Vec3 * psxm::Model::vertices ( ) const
inline

The documentation for this class was generated from the following file: