metaforce/Runtime/Graphics/Shaders/CRadarPaintShader.hpp

37 lines
784 B
C++
Raw Normal View History

2018-10-06 20:42:33 -07:00
#pragma once
2017-04-06 22:35:09 -07:00
#include <array>
#include <vector>
2022-01-31 16:06:54 -08:00
//#include <boo/graphicsdev/IGraphicsDataFactory.hpp>
#include <zeus/CColor.hpp>
#include <zeus/CVector2f.hpp>
#include <zeus/CVector3f.hpp>
2017-04-06 22:35:09 -07:00
2021-04-10 01:42:06 -07:00
namespace metaforce {
class CTexture;
2017-04-06 22:35:09 -07:00
2018-12-07 21:30:43 -08:00
class CRadarPaintShader {
2017-04-06 22:35:09 -07:00
public:
2018-12-07 21:30:43 -08:00
struct Instance {
std::array<zeus::CVector3f, 4> pos;
std::array<zeus::CVector2f, 4> uv;
2018-12-07 21:30:43 -08:00
zeus::CColor color;
};
2017-04-06 22:35:09 -07:00
private:
2022-01-31 16:06:54 -08:00
// boo::ObjToken<boo::IGraphicsBufferD> m_vbo;
// boo::ObjToken<boo::IGraphicsBufferD> m_uniBuf;
// boo::ObjToken<boo::IShaderDataBinding> m_dataBind;
2018-12-07 21:30:43 -08:00
const CTexture* m_tex = nullptr;
size_t m_maxInsts = 0;
2017-04-06 22:35:09 -07:00
public:
2018-12-07 21:30:43 -08:00
static void Initialize();
static void Shutdown();
void draw(const std::vector<Instance>& instances, const CTexture* tex);
2017-04-06 22:35:09 -07:00
};
2021-04-10 01:42:06 -07:00
} // namespace metaforce