Nebula
Loading...
Searching...
No Matches
model.h File Reference
#include "ids/id.h"
#include "ids/idallocator.h"
#include "resources/resourceid.h"
#include "core/rttimacros.h"
#include "memory/rangeallocator.h"
#include <functional>

Go to the source code of this file.

Classes

struct  Models::ModelId
struct  Models::ModelStreamingData
struct  Models::NodeInstanceRange
struct  Models::ModelCreateInfo

Namespaces

namespace  Models
 A model resource consists of nodes, each of which inhibit some information read from an .n3 file.

Typedefs

typedef Ids::IdAllocator< Math::bbox, Util::Array< Models::ModelNode * > > Models::ModelAllocator

Enumerations

enum  Models::NodeType {
  Models::CharacterNodeType , Models::TransformNodeType , Models::ShaderStateNodeType , Models::PrimitiveNodeType ,
  Models::ParticleSystemNodeType , Models::CharacterSkinNodeType , Models::NumNodeTypes
}
enum  Models::NodeBits { Models::NoBits = N_BIT(0) , Models::HasTransformBit = N_BIT(1) , Models::HasStateBit = N_BIT(2) }
enum class  Models::LoadBits { Models::NoBits = N_BIT(0) , Models::MeshBit = N_BIT(1) , Models::AnimBit = N_BIT(2) , Models::MaterialBit = N_BIT(3) }
enum  { Models::Model_BoundingBox , Models::Model_Nodes }

Functions

 Models::__ImplementEnumBitOperators (NodeBits)
 Models::__ImplementEnumBitOperators (LoadBits)
const ModelId Models::CreateModel (const ModelCreateInfo &info)
 create model (resource)
void Models::DestroyModel (const ModelId id)
 discard model (resource)
const Util::Array< Models::ModelNode * > & Models::ModelGetNodes (const ModelId id)
 Get model nodes.
const Math::bboxModels::ModelGetBoundingBox (const ModelId id)
 Get model bounding box.