mirror of https://github.com/AxioDL/metaforce.git
36 lines
914 B
C++
36 lines
914 B
C++
#ifndef __URDE_CMAPSURFACESHADER_HPP__
|
|
#define __URDE_CMAPSURFACESHADER_HPP__
|
|
|
|
#include "RetroTypes.hpp"
|
|
#include "boo/graphicsdev/IGraphicsDataFactory.hpp"
|
|
#include "zeus/CMatrix4f.hpp"
|
|
#include "zeus/CColor.hpp"
|
|
|
|
namespace urde
|
|
{
|
|
|
|
class CMapSurfaceShader
|
|
{
|
|
struct Uniform
|
|
{
|
|
zeus::CMatrix4f mtx;
|
|
zeus::CColor color;
|
|
};
|
|
|
|
boo::ObjToken<boo::IGraphicsBufferD> m_uniBuf;
|
|
boo::ObjToken<boo::IGraphicsBufferS> m_vbo;
|
|
boo::ObjToken<boo::IGraphicsBufferS> m_ibo;
|
|
boo::ObjToken<boo::IShaderDataBinding> m_dataBind;
|
|
|
|
public:
|
|
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);
|
|
};
|
|
|
|
}
|
|
|
|
#endif // __URDE_CMAPSURFACESHADER_HPP__
|