![]() |
Public API Reference |
#include <region.h>
Inheritance diagram for csRegion:
Public Methods | |
csRegion (csEngine *) | |
Initialize an empty region. More... | |
virtual | ~csRegion () |
Delete the region without deleting the entities in it. More... | |
virtual bool | IsInRegion (iObject *obj) |
Check if some object is in this region. More... | |
virtual void | DeleteAll () |
Delete all entities in this region. More... | |
virtual bool | PrepareTextures () |
Prepare all textures and materials in this region. More... | |
virtual bool | ShineLights () |
Do lighting calculations (or read from cache). More... | |
virtual bool | Prepare () |
Prepare all objects in this region. More... |
A region is basically a collection of objects in the 3D engine that can be treated as a unit.
Definition at line 32 of file csengine/region.h.
|
Initialize an empty region.
|
|
Delete the region without deleting the entities in it. The entities in this region will simply get unconnected. |
|
Delete all entities in this region.
|
|
Check if some object is in this region. The speed of this function is independent of the number of objects in this region (i.e. very fast). |
|
Prepare all objects in this region. This has to be called directly after loading new objects. This function is equivalent to calling PrepareTextures(), followed by ShineLights(). |
|
Prepare all textures and materials in this region.
|
|
Do lighting calculations (or read from cache).
|