CrystalSpace

Public API Reference

CS::RenderManager::CameraCache Class Reference

Helper class to cache clones of cameras. More...

#include <csplugincommon/rendermanager/cameracache.h>

List of all members.

Public Types

enum  {
  syncTransform = 1, syncSector = 2, syncMirrored = 4, syncFarPlane = 8,
  syncOnlyPortals = 16, syncProjection = 32, syncAll, syncNothing = 0
}
 

Flags on what properties of the camera to keep in sync automatically.

More...

Public Member Functions

void Initialize (iEngine *engine)
 Initialize camera cache.
void Purge ()
 Remove all clones for cameras that disappeared.

Detailed Description

Helper class to cache clones of cameras.

Either clones a camera, or returns a previously created clone of the same camera.

Definition at line 42 of file cameracache.h.


Member Enumeration Documentation

anonymous enum

Flags on what properties of the camera to keep in sync automatically.

Properties that are immediately changed anyway should can be omitted from the flags for optimization purposes.

Enumerator:
syncTransform 

Sync camera transforms.

syncSector 

Sync camera sector.

syncMirrored 

Sync mirrored flag.

syncFarPlane 

Sync far plane.

syncOnlyPortals 

Sync "only portals" flag.

syncProjection 

Sync projection matrix.

syncAll 

Sync everything.

syncNothing 

Sync nothing.

Definition at line 80 of file cameracache.h.


Member Function Documentation

void CS::RenderManager::CameraCache::Initialize ( iEngine engine  ) 

Initialize camera cache.

void CS::RenderManager::CameraCache::Purge (  ) 

Remove all clones for cameras that disappeared.


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

Generated for Crystal Space 2.1 by doxygen 1.6.1