Nebula
Loading...
Searching...
No Matches
modelloader.h File Reference

Go to the source code of this file.

Classes

class  Models::ModelLoader
 

Namespaces

namespace  Visibility
 Implements a resource loader for models.
 
namespace  Models
 A model resource consists of nodes, each of which inhibit some information read from an .n3 file.
 

Macros

#define IMPLEMENT_NODE_ALLOCATOR(FourCC, Type)
 

Functions

const Util::Array< Models::ModelNode * > & Models::ModelGetNodes (const ModelId id)
 Get model nodes.
 

Macro Definition Documentation

◆ IMPLEMENT_NODE_ALLOCATOR

#define IMPLEMENT_NODE_ALLOCATOR ( FourCC,
Type )
Value:
nodeConstructors.Add(FourCC, []() -> Models::ModelNode* { \
new (node) Models::Type; \
return node; \
});
Definition modelnode.h:54
void * Alloc(HeapType heapType, size_t size, size_t alignment)
Allocate a block of memory from one of the global heaps.
Definition osxmemory.cc:56
@ ObjectHeap
Definition osxmemoryconfig.h:27