ScummVM API documentation
Stark::Model Class Reference

#include <model.h>

Public Member Functions

void readFromStream (ArchiveReadStream *stream)
 
const Common::Array< VertNode * > & getVertices () const
 
const Common::Array< Face * > & getFaces () const
 
const Common::Array< Material * > & getMaterials () const
 
const Common::Array< BoneNode * > & getBones () const
 
bool intersectRay (const Math::Ray &ray) const
 
void updateBoundingBox ()
 
Math::AABB getBoundingBox () const
 

Detailed Description

A 3D Model

Member Function Documentation

◆ readFromStream()

void Stark::Model::readFromStream ( ArchiveReadStream stream)

Try and initialise object from the specified stream

◆ intersectRay()

bool Stark::Model::intersectRay ( const Math::Ray &  ray) const

Perform a collision test with a ray

◆ updateBoundingBox()

void Stark::Model::updateBoundingBox ( )

Update the model bounding box with the current animation state

◆ getBoundingBox()

Math::AABB Stark::Model::getBoundingBox ( ) const

Retrieve the model space bounding box for the current animation state


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