123
This commit is contained in:
50
RenderDll/Common/RendElements/CREBeam.h
Normal file
50
RenderDll/Common/RendElements/CREBeam.h
Normal file
@@ -0,0 +1,50 @@
|
||||
|
||||
#ifndef __CREBEAM_H__
|
||||
#define __CREBEAM_H__
|
||||
|
||||
//=============================================================
|
||||
|
||||
|
||||
class CREBeam : public CRendElement
|
||||
{
|
||||
public:
|
||||
struct CLeafBuffer * m_pBuffer;
|
||||
float m_fFogScale;
|
||||
TArray<SShaderParam *> m_ShaderParams;
|
||||
|
||||
CFColor m_StartColor;
|
||||
CFColor m_EndColor;
|
||||
float m_fStartRadius;
|
||||
float m_fEndRadius;
|
||||
int m_LightStyle;
|
||||
float m_fLength;
|
||||
float m_fLengthScale;
|
||||
float m_fWidthScale;
|
||||
string m_ModelName;
|
||||
|
||||
public:
|
||||
CREBeam()
|
||||
{
|
||||
mfSetType(eDATA_Beam);
|
||||
m_fFogScale = 0;
|
||||
m_pBuffer = NULL;
|
||||
m_LightStyle = 0;
|
||||
m_fLength = 1.0f;
|
||||
mfUpdateFlags(FCEF_TRANSFORM);
|
||||
}
|
||||
|
||||
virtual ~CREBeam()
|
||||
{
|
||||
for (int i=0; i<m_ShaderParams.Num(); i++)
|
||||
{
|
||||
SShaderParam *pr = m_ShaderParams[i];
|
||||
SAFE_DELETE(pr);
|
||||
}
|
||||
m_ShaderParams.Free();
|
||||
}
|
||||
|
||||
virtual void mfPrepare();
|
||||
virtual bool mfCompile(SShader *ef, char *scr);
|
||||
};
|
||||
|
||||
#endif // __CREBEAM_H__
|
||||
Reference in New Issue
Block a user