metaforce/Runtime/Graphics/Shaders/CFogVolumePlaneShader.hpp

36 lines
740 B
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
#include <array>
#include <cstddef>
#include <vector>
2022-02-01 00:06:54 +00:00
//#include <boo/graphicsdev/IGraphicsDataFactory.hpp>
#include <zeus/CRectangle.hpp>
#include <zeus/CVector4f.hpp>
namespace zeus {
class CVector3f;
2022-02-01 00:06:54 +00:00
} // namespace zeus
2021-04-10 08:42:06 +00:00
namespace metaforce {
2018-12-08 05:30:43 +00:00
class CFogVolumePlaneShader {
2022-02-01 00:06:54 +00:00
// boo::ObjToken<boo::IGraphicsBufferD> m_vbo;
// std::array<boo::ObjToken<boo::IShaderDataBinding>, 4> m_dataBinds;
2018-12-08 05:30:43 +00:00
size_t m_vertCapacity = 0;
2022-02-01 00:06:54 +00:00
public:
std::vector<zeus::CVector4f> m_verts;
public:
2018-12-08 05:30:43 +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);
};
2021-04-10 08:42:06 +00:00
} // namespace metaforce