My Project
Public Member Functions | Protected Attributes | List of all members
ParaEngine::IsoSurfaceRenderable Class Reference

Renderable object for the dynamically generated IsoSurface or voxel mesh. More...

#include <IsoSurfaceRenderable.h>

Inheritance diagram for ParaEngine::IsoSurfaceRenderable:
ParaEngine::CDynamicRenderable

Public Member Functions

void createVertexDeclaration ()
 
void initialize (IsoSurfaceBuilder *builder)
 
virtual void fillHardwareBuffers (IsoSurfaceBuilder *surf)
 
virtual bool getNormaliseNormals (void) const
 
virtual const CShapeAABBgetBoundingBox (void) const
 
void SetTexture (TextureEntity *pTexture)
 set the material (texture) used by this isosurface it can be NULL to use the current texture
 
void deleteGeometry ()
 
HRESULT Render (SceneState *pSceneState, LPDIRECT3DDEVICE9 pd3dDevice)
 
HRESULT Render (SceneState *pSceneState, CEffectFile *pEffect)
 
- Public Member Functions inherited from ParaEngine::CDynamicRenderable
HRESULT DrawPrimitive (D3DPRIMITIVETYPE PrimitiveType, UINT StartVertex, UINT PrimitiveCount)
 
HRESULT DrawIndexedPrimitive (D3DPRIMITIVETYPE Type, INT BaseVertexIndex, UINT MinIndex, UINT NumVertices, UINT StartIndex, UINT PrimitiveCount)
 Based on indexing, renders the specified geometric primitive into an array of vertices.
 
void PrepareBuffers (int nVertexCount, int nIndexCount)
 call this function when the vertex or index buffer size changes. More...
 
bool lock ()
 it locks everything for the caller to prevent simultaneous access. More...
 
bool unlock ()
 it unlocks everything for the caller to prevent simultaneous access. More...
 

Protected Attributes

CShapeAABB mAABB
 
int mSurfaceFlags
 Flags from IsoSurfaceBuilder used at initialize().
 
asset_ptr< TextureEntitym_texture
 

Additional Inherited Members

- Public Attributes inherited from ParaEngine::CDynamicRenderable
int m_nFVF
 
int m_nVertexBufSize
 
int m_nIndexBufSize
 
vector< Vector3m_Positions
 
vector< Vector3m_Normals
 
vector< DWORD > m_Colors
 
vector< Vector2m_UVs
 
vector< unsigned short > m_indices
 

Detailed Description

Renderable object for the dynamically generated IsoSurface or voxel mesh.

Member Function Documentation

§ deleteGeometry()

void IsoSurfaceRenderable::deleteGeometry ( )

...and delete geometry.

§ Render()

HRESULT ParaEngine::IsoSurfaceRenderable::Render ( SceneState pSceneState,
CEffectFile pEffect 
)

apply surface materials


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