My Project
|
Renderable object for the dynamically generated IsoSurface or voxel mesh. More...
#include <IsoSurfaceRenderable.h>
Public Member Functions | |
void | createVertexDeclaration () |
void | initialize (IsoSurfaceBuilder *builder) |
virtual void | fillHardwareBuffers (IsoSurfaceBuilder *surf) |
virtual bool | getNormaliseNormals (void) const |
virtual const CShapeAABB & | getBoundingBox (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) |
![]() | |
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< TextureEntity > | m_texture |
Additional Inherited Members | |
![]() | |
int | m_nFVF |
int | m_nVertexBufSize |
int | m_nIndexBufSize |
vector< Vector3 > | m_Positions |
vector< Vector3 > | m_Normals |
vector< DWORD > | m_Colors |
vector< Vector2 > | m_UVs |
vector< unsigned short > | m_indices |
Renderable object for the dynamically generated IsoSurface or voxel mesh.
void IsoSurfaceRenderable::deleteGeometry | ( | ) |
...and delete geometry.
HRESULT ParaEngine::IsoSurfaceRenderable::Render | ( | SceneState * | pSceneState, |
CEffectFile * | pEffect | ||
) |
apply surface materials