raSystem  1.0 bata
raWater Class Reference

#include <raWater.h>

Inheritance diagram for raWater:
raVisual raRender IRAMesh

Public Member Functions

 raWater (raSmartPointer< raDirectX > dx, int width, int depth, raMaterial *mat)
 
 ~raWater (void)
 
virtual bool RenderMesh (LPCSTR techniqueName="")
 
virtual bool Update (float fTime, float fRunTime)
 
void push (float x, float y, float depth)
 
void pushX (float depth)
 
void pushZ (float deth)
 
void _PREP (float depth, float x, float y, int addx, int addy)
 
virtual bool Intersects (const raVector3 *pRayPos, const raVector3 *pRayDir, float *pDist)
 
virtual bool CreateMesh ()
 
virtual bool DestroyMesh ()
 
virtual ID3D11Buffer * GetVertexBuffer ()
 
virtual ID3D11Buffer * GetIndexBuffer ()
 
virtual D3D11_PRIMITIVE_TOPOLOGY GetPrimitiveTopology (UINT n)
 
virtual DXGI_FORMAT GetIndexBufferFormat ()
 
virtual UINT GetNumSubsets ()
 
virtual SDKMESH_SUBSETGetSubset (UINT n)
 
virtual UINT GetNumMaterials ()
 
virtual raMaterialGetMaterial (UINT n)
 
- Public Member Functions inherited from raVisual
 raVisual (raSmartPointer< raDirectX > dx, bool bAlpha=false, bool bAdditive=false, bool bDepthDisable=false, D3D11_FILL_MODE fillMode=D3D11_FILL_SOLID, D3D11_CULL_MODE cullMode=D3D11_CULL_BACK)
 
 ~raVisual (void)
 
virtual bool Create ()
 
virtual void Destroy ()
 
virtual void CreateEffectVariables ()
 
virtual void DestroyEffectVariables ()
 
virtual void SetupEffectVariables (const raMatrix &pView, const raMatrix &pProj, const raLight *pLight)
 
virtual bool Render (UINT drawOrder, const raMatrix &pView, const raMatrix &pProj, const raLight *pLight, LPCSTR techniqueName="")
 
virtual void CreateMaterials ()
 
virtual void DestroyMaterials ()
 
bool SetState ()
 
bool RestoreState ()
 
virtual const D3D11_INPUT_ELEMENT_DESC * GetVertexLayout ()
 
virtual UINT GetNumElements ()
 
virtual UINT GetStrideSize ()
 
void SetMaterial (UINT n, raMaterial *pMaterial)
 
void SetMaterial_1 (UINT n, raMaterial *pMaterial)
 
void SetTexture (UINT n, LPCSTR textureFileName)
 
void SetTexture_1 (UINT n, LPCSTR textureFileName)
 
virtual void SetVisible (bool bVisible)
 
virtual void SetDrawOder (UINT Value)
 
virtual void SetSelected (bool bSelected)
 
virtual const float GetBoundingsphereRadius ()
 
- Public Member Functions inherited from raRender
 raRender (raSmartPointer< raDirectX > dx, const raMatrix *mWorld=NULL, LPCSTR Name="Render")
 
virtual ~raRender (void)
 
LPCSTR GetName ()
 
void SetName (LPCSTR Name)
 
virtual void SetWorldMatrix (const raMatrix &value)
 
virtual raMatrixGetWorldMatrix (void)
 
- Public Member Functions inherited from IRAMesh
virtual ~IRAMesh ()
 

Protected Member Functions

virtual void SetupVertices ()
 
virtual void SetupIndices ()
 
virtual bool CreateVertexLayout ()
 
virtual void CreateVertexBuffer ()
 
virtual void CreateIndexBuffer ()
 
- Protected Member Functions inherited from raVisual
bool CreateAlphaBlendState ()
 
bool CreateDepthStencilState ()
 
bool CreateRasterizerState ()
 

Additional Inherited Members

- Public Attributes inherited from raVisual
raVector3 m_bbMin
 
raVector3 m_bbMax
 
- Static Public Attributes inherited from raVisual
static raString EffectfileName
 
static raString TechniqueName
 
static raString TexturedTechniqueName
 
static raString SkinnedEffectfileName
 
static raString SkinnedEffectfileName2
 
static raString SkinnedTechniqueName
 
static raString SkinnedTexturedTechniqueName
 
- Protected Attributes inherited from raVisual
UINT m_DrawOder
 
DWORD m_numMaterials
 
raMaterial ** m_pMaterials
 
raSmartPointer< raDirectXm_dx
 
ID3D11InputLayout * m_pVertexLayout
 
ID3D11BlendState * m_pAlphaBlendState
 
ID3D11BlendState * m_pOldAlphaBlendState
 
ID3D11DepthStencilState * m_pDepthStencilState
 
ID3D11DepthStencilState * m_pOldDepthStencilState
 
ID3D11RasterizerState * m_pRasterState
 
ID3D11RasterizerState * m_pOldRasterState
 
bool m_bVisible
 
bool m_bAlpha
 
bool m_bAdditive
 
float m_blendFactor [4]
 
UINT m_sampleMask
 
bool m_bDepthDisable
 
UINT m_StencilRef
 
D3D11_FILL_MODE m_FillMode
 
D3D11_CULL_MODE m_CullMode
 
DWORD m_numSubsets
 
SDKMESH_SUBSETm_pSubsets
 
- Protected Attributes inherited from raRender
raSmartPointer< raDirectXm_dx
 
raMatrix m_World
 
LPCSTR m_Name
 

Detailed Description

Definition at line 3 of file raWater.h.

Constructor & Destructor Documentation

◆ raWater()

raWater::raWater ( raSmartPointer< raDirectX dx,
int  width,
int  depth,
raMaterial mat 
)

Definition at line 5 of file raWater.cpp.

◆ ~raWater()

raWater::~raWater ( void  )

Definition at line 44 of file raWater.cpp.

Member Function Documentation

◆ _PREP()

void raWater::_PREP ( float  depth,
float  x,
float  y,
int  addx,
int  addy 
)

Definition at line 340 of file raWater.cpp.

◆ CreateIndexBuffer()

void raWater::CreateIndexBuffer ( )
protectedvirtual

Definition at line 151 of file raWater.cpp.

◆ CreateMesh()

virtual bool raWater::CreateMesh ( void  )
inlinevirtual

Implements IRAMesh.

Definition at line 21 of file raWater.h.

◆ CreateVertexBuffer()

void raWater::CreateVertexBuffer ( )
protectedvirtual

Definition at line 81 of file raWater.cpp.

◆ CreateVertexLayout()

bool raWater::CreateVertexLayout ( )
protectedvirtual

Reimplemented from raVisual.

Definition at line 54 of file raWater.cpp.

◆ DestroyMesh()

virtual bool raWater::DestroyMesh ( )
inlinevirtual

Implements IRAMesh.

Definition at line 28 of file raWater.h.

◆ GetIndexBuffer()

virtual ID3D11Buffer* raWater::GetIndexBuffer ( )
inlinevirtual

Implements IRAMesh.

Definition at line 39 of file raWater.h.

◆ GetIndexBufferFormat()

virtual DXGI_FORMAT raWater::GetIndexBufferFormat ( )
inlinevirtual

Reimplemented from raVisual.

Definition at line 41 of file raWater.h.

◆ GetMaterial()

virtual raMaterial* raWater::GetMaterial ( UINT  n)
inlinevirtual

Reimplemented from raVisual.

Definition at line 45 of file raWater.h.

◆ GetNumMaterials()

virtual UINT raWater::GetNumMaterials ( )
inlinevirtual

Reimplemented from raVisual.

Definition at line 44 of file raWater.h.

◆ GetNumSubsets()

virtual UINT raWater::GetNumSubsets ( )
inlinevirtual

Implements IRAMesh.

Definition at line 42 of file raWater.h.

◆ GetPrimitiveTopology()

virtual D3D11_PRIMITIVE_TOPOLOGY raWater::GetPrimitiveTopology ( UINT  n)
inlinevirtual

Implements IRAMesh.

Definition at line 40 of file raWater.h.

◆ GetSubset()

virtual SDKMESH_SUBSET* raWater::GetSubset ( UINT  n)
inlinevirtual

Implements IRAMesh.

Definition at line 43 of file raWater.h.

◆ GetVertexBuffer()

virtual ID3D11Buffer* raWater::GetVertexBuffer ( )
inlinevirtual

Implements IRAMesh.

Definition at line 38 of file raWater.h.

◆ Intersects()

virtual bool raWater::Intersects ( const raVector3 pRayPos,
const raVector3 pRayDir,
float *  pDist 
)
inlinevirtual

Reimplemented from raRender.

Definition at line 17 of file raWater.h.

◆ push()

void raWater::push ( float  x,
float  y,
float  depth 
)

Definition at line 312 of file raWater.cpp.

◆ pushX()

void raWater::pushX ( float  depth)

Definition at line 323 of file raWater.cpp.

◆ pushZ()

void raWater::pushZ ( float  deth)

Definition at line 331 of file raWater.cpp.

◆ RenderMesh()

bool raWater::RenderMesh ( LPCSTR  techniqueName = "")
virtual

Implements IRAMesh.

Definition at line 188 of file raWater.cpp.

◆ SetupIndices()

void raWater::SetupIndices ( )
protectedvirtual

Definition at line 167 of file raWater.cpp.

◆ SetupVertices()

void raWater::SetupVertices ( )
protectedvirtual

Definition at line 125 of file raWater.cpp.

◆ Update()

bool raWater::Update ( float  fTime,
float  fRunTime 
)
virtual

Reimplemented from raRender.

Definition at line 223 of file raWater.cpp.


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