2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-03-14 07:03:58 +00:00
|
|
|
|
2019-09-28 02:53:03 +00:00
|
|
|
#include <cstddef>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include <boo/graphicsdev/IGraphicsDataFactory.hpp>
|
|
|
|
|
|
|
|
#include <zeus/CRectangle.hpp>
|
|
|
|
#include <zeus/CVector4f.hpp>
|
2017-03-14 07:03:58 +00:00
|
|
|
|
2019-09-29 00:30:53 +00:00
|
|
|
namespace zeus {
|
|
|
|
class CVector3f;
|
|
|
|
}
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2017-03-14 07:03:58 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CFogVolumePlaneShader {
|
|
|
|
boo::ObjToken<boo::IGraphicsBufferD> m_vbo;
|
|
|
|
boo::ObjToken<boo::IShaderDataBinding> m_dataBinds[4];
|
|
|
|
std::vector<zeus::CVector4f> m_verts;
|
|
|
|
size_t m_vertCapacity = 0;
|
2017-03-14 07:03:58 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
void CommitResources(size_t capacity);
|
2017-03-14 07:03:58 +00:00
|
|
|
|
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
static void Initialize();
|
|
|
|
static void Shutdown();
|
|
|
|
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);
|
2017-03-14 07:03:58 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|