2017-03-14 07:03:58 +00:00
|
|
|
#ifndef __URDE_CFOGVOLUMEPLANESHADER_HPP__
|
|
|
|
#define __URDE_CFOGVOLUMEPLANESHADER_HPP__
|
|
|
|
|
2018-10-07 02:59:17 +00:00
|
|
|
#include "boo/graphicsdev/IGraphicsDataFactory.hpp"
|
2017-03-14 07:03:58 +00:00
|
|
|
#include "zeus/CMatrix4f.hpp"
|
|
|
|
#include "zeus/CColor.hpp"
|
|
|
|
#include "zeus/CRectangle.hpp"
|
|
|
|
#include "zeus/CVector4f.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
|
|
|
class CFogVolumePlaneShader
|
|
|
|
{
|
2017-11-05 06:17:12 +00:00
|
|
|
boo::ObjToken<boo::IGraphicsBufferD> m_vbo;
|
|
|
|
boo::ObjToken<boo::IShaderDataBinding> m_dataBinds[4];
|
2017-03-14 07:03:58 +00:00
|
|
|
std::vector<zeus::CVector4f> m_verts;
|
|
|
|
size_t m_vertCapacity = 0;
|
|
|
|
|
|
|
|
void CommitResources(size_t capacity);
|
|
|
|
|
|
|
|
public:
|
2018-10-07 02:59:17 +00:00
|
|
|
static void Initialize();
|
|
|
|
static void Shutdown();
|
2017-03-14 07:03:58 +00:00
|
|
|
static const zeus::CRectangle DefaultRect;
|
|
|
|
void reset(int numVerts) { m_verts.clear(); m_verts.reserve(numVerts); }
|
|
|
|
void addFan(const zeus::CVector3f* verts, int numVerts);
|
|
|
|
void draw(int pass);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __URDE_CFOGVOLUMEPLANESHADER_HPP__
|