2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-21 00:19:13 +00:00

Very, very incomplete integration of hsh/boo2

This commit is contained in:
Jack Andersen
2020-09-28 10:54:40 -10:00
parent 5b4441ac36
commit 3827f35227
179 changed files with 50303 additions and 4995 deletions

View File

@@ -1,9 +1,7 @@
#pragma once
#include <boo/graphicsdev/IGraphicsDataFactory.hpp>
#include <zeus/CColor.hpp>
#include <zeus/CMatrix4f.hpp>
#include "zeus/CColor.hpp"
#include "zeus/CMatrix4f.hpp"
namespace zeus {
class CAABox;
@@ -12,18 +10,19 @@ class CAABox;
namespace urde {
class CAABoxShader {
struct Uniform {
zeus::CMatrix4f m_xf;
zeus::CColor m_color;
struct Vert {
hsh::float3 m_pos;
};
boo::ObjToken<boo::IGraphicsBufferD> m_vbo;
boo::ObjToken<boo::IGraphicsBufferD> m_uniBuf;
boo::ObjToken<boo::IShaderDataBinding> m_dataBind;
struct Uniform {
hsh::float4x4 m_xf;
hsh::float4 m_color;
};
hsh::owner<hsh::vertex_buffer<Vert>> m_vbo;
hsh::dynamic_owner<hsh::uniform_buffer<Uniform>> m_uniBuf;
hsh::binding m_dataBind;
Uniform m_uniform;
public:
static void Initialize();
static void Shutdown();
explicit CAABoxShader(bool zOnly = false);
void setAABB(const zeus::CAABox& aabb);
void draw(const zeus::CColor& color);