2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-09-03 05:53:38 +00:00
|
|
|
|
2019-09-28 02:53:03 +00:00
|
|
|
#include <boo/graphicsdev/IGraphicsDataFactory.hpp>
|
|
|
|
|
|
|
|
#include <zeus/CColor.hpp>
|
|
|
|
#include <zeus/CMatrix4f.hpp>
|
2017-09-03 05:53:38 +00:00
|
|
|
|
2019-09-29 00:30:53 +00:00
|
|
|
namespace zeus {
|
|
|
|
class CAABox;
|
|
|
|
}
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2017-09-03 05:53:38 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
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;
|
|
|
|
Uniform m_uniform;
|
2017-09-03 05:53:38 +00:00
|
|
|
|
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
static void Initialize();
|
|
|
|
static void Shutdown();
|
2020-03-31 03:52:22 +00:00
|
|
|
explicit CAABoxShader(bool zOnly = false);
|
2018-12-08 05:30:43 +00:00
|
|
|
void setAABB(const zeus::CAABox& aabb);
|
|
|
|
void draw(const zeus::CColor& color);
|
2017-09-03 05:53:38 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|