mirror of https://github.com/AxioDL/metaforce.git
35 lines
702 B
C++
35 lines
702 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
|
|
#include "Runtime/Camera/CCameraFilter.hpp"
|
|
|
|
#include <zeus/CColor.hpp>
|
|
#include <zeus/CMatrix4f.hpp>
|
|
#include <zeus/CRectangle.hpp>
|
|
|
|
namespace urde {
|
|
|
|
class CRadarPaintShader {
|
|
public:
|
|
struct Instance {
|
|
zeus::CVector3f pos[4];
|
|
zeus::CVector2f uv[4];
|
|
zeus::CColor color;
|
|
};
|
|
|
|
private:
|
|
boo::ObjToken<boo::IGraphicsBufferD> m_vbo;
|
|
boo::ObjToken<boo::IGraphicsBufferD> m_uniBuf;
|
|
boo::ObjToken<boo::IShaderDataBinding> m_dataBind;
|
|
const CTexture* m_tex = nullptr;
|
|
size_t m_maxInsts = 0;
|
|
|
|
public:
|
|
static void Initialize();
|
|
static void Shutdown();
|
|
void draw(const std::vector<Instance>& instances, const CTexture* tex);
|
|
};
|
|
|
|
} // namespace urde
|