G3D::_BSPMAP::Map Class ReferenceA BSP Map loaded from either a Quake 3 or Half-Life file.
More...
#include <BSPMAP.h>
Inherits G3D::ReferenceCountedObject.
List of all members.
|
Public Member Functions |
| void | checkCollision (Vector3 &pos, Vector3 &vel, Vector3 &extent) |
| const Array< BSPEntity > & | getEntityList () const |
| const Array< BSPModel > & | getModelList () const |
| Vector3 | getStartingPosition () const |
| void | getTriangles (Array< Vector3 > &outVertexArray, Array< Vector3 > &outNormalArray, Array< int > &outIndexArray, Array< Vector2 > &outTexCoordArray, Array< int > &outTextureMapIndexArray, Array< Vector2 > &outLightCoordArray, Array< int > &outLightMapIndexArray, Array< int > &outTexCoordIndexArray, Array< Texture::Ref > &outTextureMapArray, Array< Texture::Ref > &outLightMapArray) const |
| void | ReferenceCountedObject_zeroWeakPointers () |
| void | render (GCamera &camera, void *object) |
| void | render (RenderDevice *renderDevice, const GCamera &camera) |
| void | setDefaultTexture (Texture::Ref txt) |
| void | slideCollision (Vector3 &pos, Vector3 &vel, Vector3 &extent) |
| | ~Map () |
Static Public Member Functions |
| static MapRef | fromFile (const std::string &path, const std::string &fileName, float scale=1.0f) |
Public Attributes |
| Array< BSPModel > | dynamicModels |
| Array< BSPEntity > | entityArray |
| AtomicInt32 | ReferenceCountedObject_refCount |
| _WeakPtrLinkedList * | ReferenceCountedObject_weakPointer |
| Vector3 | startingPosition |
Friends |
| class | Billboard |
| class | FaceSet |
| class | Mesh |
| class | Patch |
Detailed Description
A BSP Map loaded from either a Quake 3 or Half-Life file.
Constructor & Destructor Documentation
| G3D::_BSPMAP::Map::~Map |
( |
|
) |
|
Member Function Documentation
| static MapRef G3D::_BSPMAP::Map::fromFile |
( |
const std::string & |
path, |
|
|
const std::string & |
fileName, |
|
|
float |
scale = 1.0f | |
|
) |
| | [static] |
Returns null if an error occurs while loading.
- Parameters:
-
| path | to the Quake 3 resource directory (i.e. the directory that contains the "maps" subdir). End in a "/" |
| fileName | Name of the .bsp file; include the extension |
| const Array<BSPEntity>& G3D::_BSPMAP::Map::getEntityList |
( |
|
) |
const [inline] |
| const Array<BSPModel>& G3D::_BSPMAP::Map::getModelList |
( |
|
) |
const [inline] |
| Vector3 G3D::_BSPMAP::Map::getStartingPosition |
( |
|
) |
const [inline] |
Returns the triangles in the map for use outside of this class.
| void G3D::ReferenceCountedObject::ReferenceCountedObject_zeroWeakPointers |
( |
|
) |
[inline, inherited] |
Automatically called immediately before the object is deleted.
This is not called from the destructor because it needs to be invoked before the subclass destructor.
| void G3D::_BSPMAP::Map::render |
( |
GCamera & |
camera, |
|
|
void * |
object | |
|
) |
| | |
Draws the scene from the perspective of the camera.
| void G3D::_BSPMAP::Map::setDefaultTexture |
( |
Texture::Ref |
txt |
) |
[inline] |
Friends And Related Function Documentation
friend class Mesh [friend] |
friend class Patch [friend] |
Member Data Documentation
The long name is to keep this from accidentally conflicting with a subclass's variable name.
Do not use or explicitly manipulate this value--its type may change in the future and is not part of the supported API.
Linked list of all weak pointers that reference this (some may be on the stack!).
Do not use or explicitly manipulate this value.
The documentation for this class was generated from the following file:
Generated on Thu Aug 2 11:40:48 2007 for G3D by
1.5.2
Hosted by
|