35 lines
827 B
C++
35 lines
827 B
C++
#pragma once
|
|
|
|
|
|
//이게 무슨 일일까?
|
|
#include "KPrimitive.h"
|
|
#include <SpeedGrass/SpeedGrassRT.h>
|
|
|
|
|
|
|
|
|
|
struct SGrassColonyInfo;
|
|
|
|
class CTerrainMapEngine;
|
|
|
|
class KPrimitiveSpeedGrass : public K3DPrimitive, public CSpeedGrassRT
|
|
{
|
|
public :
|
|
KPrimitiveSpeedGrass();
|
|
~KPrimitiveSpeedGrass();
|
|
|
|
void Clear();
|
|
bool Load( K3DRenderDevice* pDev, class CTerrainSpeedGrass* pSpeedGrass, struct GrassColonyInfo* pGrassColonyInfo, CTerrainMapEngine *pTerrainMapEngine=NULL );
|
|
virtual void Render( KViewportObject *viewport, class K3DRenderDevice *dev, bool bUseAccum = true );
|
|
|
|
protected:
|
|
void CreateVertexBuffer( K3DRenderDevice* pDev );
|
|
void LoadTexture( const char* szTextureFileName );
|
|
|
|
std::vector< K3DVertexBufferSPtr> m_vVB;
|
|
// K3DTextureSPtr m_spTex;
|
|
K3DTexture* m_pTexture;
|
|
|
|
float m_fRegionSize;
|
|
};
|