forked from Tr0n/client
Upgraded to DirectX 9
This commit is contained in:
23
src/SpeedTreeLib/CSpeedTreeDirectX.h
Normal file
23
src/SpeedTreeLib/CSpeedTreeDirectX.h
Normal file
@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
#include <map>
|
||||
#include "SpeedTreeForest.h"
|
||||
#include "SpeedTreeMaterial.h"
|
||||
|
||||
class CSpeedTreeDirectX : public CSpeedTreeForest, public CGraphicBase
|
||||
{
|
||||
public:
|
||||
CSpeedTreeDirectX();
|
||||
~CSpeedTreeDirectX();
|
||||
|
||||
void UploadWindMatrix(unsigned int uiLocation, const float* pMatrix) const;
|
||||
bool SetRenderingDevice();
|
||||
void Render(unsigned long ulRenderBitVector = Forest_RenderAll);
|
||||
void UpdateCompundMatrix(const D3DXVECTOR3& c_rEyeVec, const D3DXMATRIX& c_rmatView, const D3DXMATRIX& c_rmatProj);
|
||||
|
||||
private:
|
||||
bool InitVertexShaders();
|
||||
|
||||
private:
|
||||
LPDIRECT3DVERTEXSHADER9 m_dwBranchVertexShader;
|
||||
LPDIRECT3DVERTEXSHADER9 m_dwLeafVertexShader;
|
||||
};
|
Reference in New Issue
Block a user