newspeoplefor developersdocumentationdownloads

nMeshArray Class Reference

#include <nmesharray.h>

Inheritance diagram for nMeshArray:

nResource nRoot nObject nNode nReferenced nSignalEmitter nD3D9MeshArray List of all members.

Detailed Description

Holds an array of up to nGfxServer2::MaxVertexStreams meshes. Can be posted to the nGfxServer to assign all streams to the graphics device.

nMeshArray is normally a superclass for Gfx API specific derived classes, like Direct3D or OpenGL.

(C) 2004 RadonLabs GmbH

Definition at line 25 of file nmesharray.h.


Public Member Functions

 nMeshArray ()
 constructor
virtual ~nMeshArray ()
 destructor
virtual void SetFilenameAt (int index, const nString &path)
 set absolute path to resource file for index
const nStringGetFilenameAt (int index) const
 get absolute path to resource file for index
void SetUsageAt (int index, int useFlags)
 set the mesh use type
int GetUsageAt (int index) const
 get the mesh use type
nMesh2GetMeshAt (int index) const
 get the mesh object at index

Protected Member Functions

virtual bool LoadResource ()
 override in subclasse to perform actual resource loading
virtual void UnloadResource ()
 override in subclass to perform actual resource unloading

Protected Attributes

nFixedArray< Elementelements

Classes

class  Element

Constructor & Destructor Documentation

nMeshArray::nMeshArray  ) 
 

constructor

Definition at line 13 of file nmesharray_main.cc.

nMeshArray::~nMeshArray  )  [virtual]
 

destructor

Definition at line 22 of file nmesharray_main.cc.


Member Function Documentation

void nMeshArray::SetFilenameAt int  index,
const nString path
[inline, virtual]
 

set absolute path to resource file for index

Set the mesh filename for the specified stream.

Parameters:
index index of stream the mesh shall be used for
path the absolute path to the resource file

Definition at line 69 of file nmesharray.h.

const nString & nMeshArray::GetFilenameAt int  index  )  const [inline]
 

get absolute path to resource file for index

Get the mesh for the specified stream.

Parameters:
index index of stream the mesh shall be used for
Returns:
current mesh on that stream

Definition at line 84 of file nmesharray.h.

void nMeshArray::SetUsageAt int  index,
int  useFlags
[inline]
 

set the mesh use type

Definition at line 105 of file nmesharray.h.

int nMeshArray::GetUsageAt int  index  )  const [inline]
 

get the mesh use type

Definition at line 115 of file nmesharray.h.

nMesh2 * nMeshArray::GetMeshAt int  index  )  const [inline]
 

get the mesh object at index

only valid in between of Load-/UnloadResource(),

Definition at line 95 of file nmesharray.h.

bool nMeshArray::LoadResource  )  [protected, virtual]
 

override in subclasse to perform actual resource loading

Reimplemented from nResource.

Reimplemented in nD3D9MeshArray.

Definition at line 34 of file nmesharray_main.cc.

void nMeshArray::UnloadResource  )  [protected, virtual]
 

override in subclass to perform actual resource unloading

Reimplemented from nResource.

Reimplemented in nD3D9MeshArray.

Definition at line 70 of file nmesharray_main.cc.


Member Data Documentation

nFixedArray<Element> nMeshArray::elements [protected]
 

Definition at line 57 of file nmesharray.h.


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

Copyright © 1999-2005 by the contributing authors. Ideas, requests, problems: Send feedback.