MercuryObject.h File Reference

#include "MercuryObjectCommands.h"
#include "MercuryMessages.h"
#include "MercuryDisplayTypes.h"
#include "MercuryMaterial.h"
#include "MercuryObjectBase.h"
#include "MercuryUtil.h"
#include "MercuryGLState.h"

Go to the source code of this file.

Classes

class  MercuryObject
 [actor] Base Object (abstract) More...
struct  MercuryObject::ParentHoldPair
 [internal] Data structure to hold information about objects More...
class  MercuryObjectRegister
 [internal] Mercury Object Register, Keeps track of all objects. More...

Defines

#define FOREACH_Object(x, obj)   for( MDequeIterator<MercuryObject::ParentHoldPair> obj = x.begin(); obj != x.end(); ++obj)
#define FOREACH_CONST_Object(x, obj)   for( MDequeIterator<MercuryObject::ParentHoldPair> obj = x.begin(); obj != x.end(); ++obj)

Enumerations

enum  State { UNLOADED = 0, LOADED }
enum  LightState { LS_IGNORE = 0, LS_ENABLE, LS_DISABLE }

Functions

template<typename T>
void TSortDrawOrder (MDeque< T > &Xdeque)
long HGEXPORT GetObjectByName (const char *sName)

Variables

MercuryObjectRegister OBJECTREGISTER


Define Documentation

#define FOREACH_CONST_Object ( x,
obj   )     for( MDequeIterator<MercuryObject::ParentHoldPair> obj = x.begin(); obj != x.end(); ++obj)

Definition at line 219 of file MercuryObject.h.

#define FOREACH_Object ( x,
obj   )     for( MDequeIterator<MercuryObject::ParentHoldPair> obj = x.begin(); obj != x.end(); ++obj)

Definition at line 218 of file MercuryObject.h.


Enumeration Type Documentation

enum LightState

Enumerator:
LS_IGNORE 
LS_ENABLE 
LS_DISABLE 

Definition at line 20 of file MercuryObject.h.

enum State

Enumerator:
UNLOADED 
LOADED 

Definition at line 14 of file MercuryObject.h.


Function Documentation

long HGEXPORT GetObjectByName ( const char *  sName  ) 

template<typename T>
void TSortDrawOrder ( MDeque< T > &  Xdeque  )  [inline]

Careful sort algorithm: This is designed for looking at a vector that MAY have at MOST one element unsorted. Over the course of N (linear) time, it will resort the array with that one element in it's place. If no elements were out of order, no sorting will go on. Any equal values will remain in the order they were given in

Definition at line 172 of file MercuryObject.h.


Variable Documentation

MercuryObjectRegister OBJECTREGISTER

Definition at line 6 of file MercuryObject.cpp.


Hosted by SourceForge.net Logo