metaforce/Runtime/Graphics/Shaders/CAABoxShader.hpp

33 lines
649 B
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2017-09-03 05:53:38 +00:00
2018-10-07 02:59:17 +00:00
#include "boo/graphicsdev/IGraphicsDataFactory.hpp"
2017-09-03 05:53:38 +00:00
#include "zeus/CMatrix4f.hpp"
#include "zeus/CColor.hpp"
#include "zeus/CAABox.hpp"
namespace urde
{
class CAABoxShader
{
struct Uniform
{
zeus::CMatrix4f m_xf;
zeus::CColor m_color;
};
boo::ObjToken<boo::IGraphicsBufferD> m_vbo;
boo::ObjToken<boo::IGraphicsBufferD> m_uniBuf;
boo::ObjToken<boo::IShaderDataBinding> m_dataBind;
2017-09-03 05:53:38 +00:00
Uniform m_uniform;
public:
2018-10-07 02:59:17 +00:00
static void Initialize();
static void Shutdown();
2017-09-03 05:53:38 +00:00
CAABoxShader(bool zOnly);
void setAABB(const zeus::CAABox& aabb);
void draw(const zeus::CColor& color);
};
}