metaforce/Runtime/Graphics/Shaders/CRadarPaintShader.hpp

36 lines
693 B
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2017-04-07 05:35:09 +00:00
#include "zeus/CMatrix4f.hpp"
#include "zeus/CColor.hpp"
#include "zeus/CRectangle.hpp"
#include "Camera/CCameraFilter.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;
2017-04-07 05:35:09 +00:00
const CTexture* m_tex = nullptr;
size_t m_maxInsts = 0;
public:
2018-10-07 02:59:17 +00:00
static void Initialize();
static void Shutdown();
2017-04-07 05:35:09 +00:00
void draw(const std::vector<Instance>& instances, const CTexture* tex);
};
}