mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 05:47:43 +00:00
Work on HUD interfaces
This commit is contained in:
45
Runtime/Graphics/Shaders/CRadarPaintShader.hpp
Normal file
45
Runtime/Graphics/Shaders/CRadarPaintShader.hpp
Normal file
@@ -0,0 +1,45 @@
|
||||
#ifndef __URDE_CRADARPAINTSHADER_HPP__
|
||||
#define __URDE_CRADARPAINTSHADER_HPP__
|
||||
|
||||
#include "TShader.hpp"
|
||||
#include "zeus/CMatrix4f.hpp"
|
||||
#include "zeus/CColor.hpp"
|
||||
#include "zeus/CRectangle.hpp"
|
||||
#include "Camera/CCameraFilter.hpp"
|
||||
|
||||
namespace urde
|
||||
{
|
||||
|
||||
class CRadarPaintShader
|
||||
{
|
||||
friend struct CRadarPaintShaderGLDataBindingFactory;
|
||||
friend struct CRadarPaintShaderVulkanDataBindingFactory;
|
||||
friend struct CRadarPaintShaderMetalDataBindingFactory;
|
||||
friend struct CRadarPaintShaderD3DDataBindingFactory;
|
||||
|
||||
public:
|
||||
struct Instance
|
||||
{
|
||||
zeus::CVector3f pos[4];
|
||||
zeus::CVector2f uv[4];
|
||||
zeus::CColor color;
|
||||
};
|
||||
|
||||
private:
|
||||
boo::GraphicsDataToken m_token;
|
||||
boo::IGraphicsBufferD* m_vbo;
|
||||
boo::IGraphicsBufferD* m_uniBuf;
|
||||
boo::IShaderDataBinding* m_dataBind;
|
||||
const CTexture* m_tex = nullptr;
|
||||
size_t m_maxInsts = 0;
|
||||
|
||||
public:
|
||||
void draw(const std::vector<Instance>& instances, const CTexture* tex);
|
||||
|
||||
using _CLS = CRadarPaintShader;
|
||||
#include "TShaderDecl.hpp"
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // __URDE_CRADARPAINTSHADER_HPP__
|
||||
Reference in New Issue
Block a user