mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-05-13 23:11:20 +00:00
Now, with all of the headers normalized, we can safely convert some headers into forward declarations without needing to worry about potentially breaking code in other headers or source files.
32 lines
799 B
C++
32 lines
799 B
C++
#pragma once
|
|
|
|
#include "Runtime/GCNTypes.hpp"
|
|
|
|
#include <boo/graphicsdev/IGraphicsDataFactory.hpp>
|
|
|
|
#include <zeus/CColor.hpp>
|
|
#include <zeus/CMatrix4f.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);
|
|
};
|
|
|
|
} // namespace urde
|