raSystem  1.0 bata
raGPUHeightmapMaterial Class Reference

#include <raGPUHeightmap.h>

Inheritance diagram for raGPUHeightmapMaterial:
raTexturedMaterial raMaterial

Public Member Functions

 raGPUHeightmapMaterial (raDirectX *dx, LPCSTR effectFile="raEffects\eightmapEffect.fx", LPCSTR techniqueName="RenderWithHeightMapAndBumpMap", LPCSTR texture="raGrafik\orest Flood.jpg", LPCSTR heightmap="raGrafik\eightmap.dds", LPCSTR heightmapBump="raGrafik\eightmapNormals.dds")
 
virtual bool Create ()
 
virtual bool Destroy ()
 
virtual void Setup ()
 
- Public Member Functions inherited from raTexturedMaterial
 raTexturedMaterial (raSmartPointer< raDirectX > dx, LPCSTR EffectFile, LPCSTR Technique, LPCSTR textureFileName="grass.jpg", LPCSTR effectVariable="g_MeshTexture")
 
void SetTexture (LPCSTR TextureFileName)
 
LPCSTR GetTexture (void)
 
void GenerateMips ()
 
- Public Member Functions inherited from raMaterial
 raMaterial (raSmartPointer< raDirectX > dx, raString EffectFile, raString Technique)
 
 ~raMaterial (void)
 
virtual bool CreateVertexLayout (const D3D11_INPUT_ELEMENT_DESC *pLayout, UINT nemElements, ID3D11InputLayout **ppInputLayout)
 
virtual void SetupPerFrame (const raLight *Light, const raMatrix *pView=NULL, const raMatrix *pProj=NULL)
 
virtual void SetupPerObject (const raMatrix &mWorld, const raMatrix &mWorldView, const raMatrix &mWorldViewProjection)
 
void SetAmbientColor (raColor Ambient)
 
void SetDiffuseColor (raColor Diffuse)
 
void SetTechnique (LPCSTR TechniqueName)
 
ID3DX11EffectGetEffect (void)
 
ID3DX11EffectTechniqueGetEffectTechnique (LPCSTR techniqueName="")
 
raString GetTechniqueName (void)
 
raString GetEffectFileName (void)
 
void SelectTechnique (raString techniqueName)
 

Protected Attributes

LPCSTR m_HeightTextureFileName
 
LPCSTR m_BumMapFileName
 
ID3D11ShaderResourceView * m_pRVHeight
 
ID3D11ShaderResourceView * m_pRVBump
 
ID3DX11EffectShaderResourceVariablem_ptxHeight
 
ID3DX11EffectShaderResourceVariablem_ptxBumpMap
 
- Protected Attributes inherited from raTexturedMaterial
LPCSTR m_TextureFileName
 
LPCSTR m_effectVariableName
 
ID3D11ShaderResourceView * m_pRV
 
ID3DX11EffectShaderResourceVariablem_ptxDiffuseVariable
 
- Protected Attributes inherited from raMaterial
raSmartPointer< raDirectXm_dx
 
raString m_EffectFileName
 
raString m_TechniqueName
 
ID3DX11Effectm_pEffect
 
ID3DX11EffectTechniquem_pTechnique
 
ID3DX11EffectVectorVariablem_pMaterialDiffuseColorVariable
 
ID3DX11EffectVectorVariablem_pMaterialAmbientVariable
 
ID3DX11EffectScalarVariablem_pSelectedVariable
 
raColor m_DiffuseColor
 
raColor m_AmbientColor
 

Additional Inherited Members

- Public Attributes inherited from raMaterial
bool m_bSelected
 
- Static Public Attributes inherited from raMaterial
static raEffectMap m_effects
 
- Protected Member Functions inherited from raMaterial
void CreateEffectFromCompiledFile (raString strFilename, DWORD dwShaderFlags)
 

Detailed Description

Definition at line 14 of file raGPUHeightmap.h.

Constructor & Destructor Documentation

◆ raGPUHeightmapMaterial()

raGPUHeightmapMaterial::raGPUHeightmapMaterial ( raDirectX dx,
LPCSTR  effectFile = "raEffects\\HeightmapEffect.fx",
LPCSTR  techniqueName = "RenderWithHeightMapAndBumpMap",
LPCSTR  texture = "raGrafik\\Forest Flood.jpg",
LPCSTR  heightmap = "raGrafik\\Heightmap.dds",
LPCSTR  heightmapBump = "raGrafik\\HeightmapNormals.dds" 
)

Definition at line 20 of file raGPUHeightmap.cpp.

Member Function Documentation

◆ Create()

bool raGPUHeightmapMaterial::Create ( void  )
virtual

Reimplemented from raTexturedMaterial.

Definition at line 32 of file raGPUHeightmap.cpp.

◆ Destroy()

bool raGPUHeightmapMaterial::Destroy ( void  )
virtual

Reimplemented from raTexturedMaterial.

Definition at line 47 of file raGPUHeightmap.cpp.

◆ Setup()

void raGPUHeightmapMaterial::Setup ( )
virtual

Reimplemented from raTexturedMaterial.

Definition at line 56 of file raGPUHeightmap.cpp.

Member Data Documentation

◆ m_BumMapFileName

LPCSTR raGPUHeightmapMaterial::m_BumMapFileName
protected

Definition at line 29 of file raGPUHeightmap.h.

◆ m_HeightTextureFileName

LPCSTR raGPUHeightmapMaterial::m_HeightTextureFileName
protected

Definition at line 28 of file raGPUHeightmap.h.

◆ m_pRVBump

ID3D11ShaderResourceView* raGPUHeightmapMaterial::m_pRVBump
protected

Definition at line 32 of file raGPUHeightmap.h.

◆ m_pRVHeight

ID3D11ShaderResourceView* raGPUHeightmapMaterial::m_pRVHeight
protected

Definition at line 31 of file raGPUHeightmap.h.

◆ m_ptxBumpMap

ID3DX11EffectShaderResourceVariable* raGPUHeightmapMaterial::m_ptxBumpMap
protected

Definition at line 35 of file raGPUHeightmap.h.

◆ m_ptxHeight

ID3DX11EffectShaderResourceVariable* raGPUHeightmapMaterial::m_ptxHeight
protected

Definition at line 34 of file raGPUHeightmap.h.


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