2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-04-22 06:42:32 +00:00
|
|
|
|
2018-10-07 02:59:17 +00:00
|
|
|
#include "RetroTypes.hpp"
|
|
|
|
#include "boo/graphicsdev/IGraphicsDataFactory.hpp"
|
|
|
|
#include "zeus/CMatrix4f.hpp"
|
|
|
|
#include "zeus/CColor.hpp"
|
2017-04-22 06:42:32 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2017-04-22 06:42:32 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CMapSurfaceShader {
|
|
|
|
struct Uniform {
|
|
|
|
zeus::CMatrix4f mtx;
|
|
|
|
zeus::CColor color;
|
|
|
|
};
|
2017-04-22 06:42:32 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
boo::ObjToken<boo::IGraphicsBufferD> m_uniBuf;
|
|
|
|
boo::ObjToken<boo::IGraphicsBufferS> m_vbo;
|
|
|
|
boo::ObjToken<boo::IGraphicsBufferS> m_ibo;
|
|
|
|
boo::ObjToken<boo::IShaderDataBinding> m_dataBind;
|
2017-04-22 06:42:32 +00:00
|
|
|
|
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
static void Initialize();
|
|
|
|
static void Shutdown();
|
|
|
|
CMapSurfaceShader(boo::IGraphicsDataFactory::Context& ctx, const boo::ObjToken<boo::IGraphicsBufferS>& vbo,
|
|
|
|
const boo::ObjToken<boo::IGraphicsBufferS>& ibo);
|
|
|
|
void draw(const zeus::CColor& color, u32 start, u32 count);
|
2017-04-22 06:42:32 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|