2018-10-06 20:42:33 -07:00
|
|
|
#pragma once
|
2017-03-14 00:03:58 -07:00
|
|
|
|
2019-09-28 19:22:12 -07:00
|
|
|
#include <array>
|
2019-09-27 19:53:03 -07:00
|
|
|
#include <cstddef>
|
|
|
|
#include <vector>
|
|
|
|
|
2022-01-31 16:06:54 -08:00
|
|
|
//#include <boo/graphicsdev/IGraphicsDataFactory.hpp>
|
2019-09-27 19:53:03 -07:00
|
|
|
|
|
|
|
#include <zeus/CRectangle.hpp>
|
|
|
|
#include <zeus/CVector4f.hpp>
|
2017-03-14 00:03:58 -07:00
|
|
|
|
2019-09-28 17:30:53 -07:00
|
|
|
namespace zeus {
|
|
|
|
class CVector3f;
|
2022-01-31 16:06:54 -08:00
|
|
|
} // namespace zeus
|
2019-09-28 17:30:53 -07:00
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
namespace metaforce {
|
2017-03-14 00:03:58 -07:00
|
|
|
|
2018-12-07 21:30:43 -08:00
|
|
|
class CFogVolumePlaneShader {
|
2022-01-31 16:06:54 -08:00
|
|
|
// boo::ObjToken<boo::IGraphicsBufferD> m_vbo;
|
|
|
|
// std::array<boo::ObjToken<boo::IShaderDataBinding>, 4> m_dataBinds;
|
2018-12-07 21:30:43 -08:00
|
|
|
size_t m_vertCapacity = 0;
|
2022-01-31 16:06:54 -08:00
|
|
|
public:
|
|
|
|
std::vector<zeus::CVector4f> m_verts;
|
2017-03-14 00:03:58 -07:00
|
|
|
|
|
|
|
public:
|
2018-12-07 21:30:43 -08: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);
|
2017-03-14 00:03:58 -07:00
|
|
|
};
|
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
} // namespace metaforce
|