mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 15:47:43 +00:00
New code style refactor
This commit is contained in:
@@ -3,37 +3,33 @@
|
||||
#include "Graphics/CGraphics.hpp"
|
||||
#include "boo/graphicsdev/IGraphicsDataFactory.hpp"
|
||||
|
||||
namespace urde
|
||||
{
|
||||
namespace urde {
|
||||
class CEnvFxManager;
|
||||
class CEnvFxManagerGrid;
|
||||
|
||||
class CEnvFxShaders
|
||||
{
|
||||
class CEnvFxShaders {
|
||||
public:
|
||||
struct Instance
|
||||
{
|
||||
zeus::CVector3f positions[4];
|
||||
zeus::CColor color;
|
||||
zeus::CVector2f uvs[4];
|
||||
};
|
||||
struct Uniform
|
||||
{
|
||||
zeus::CMatrix4f mv;
|
||||
zeus::CMatrix4f proj;
|
||||
zeus::CMatrix4f envMtx;
|
||||
zeus::CColor moduColor;
|
||||
};
|
||||
struct Instance {
|
||||
zeus::CVector3f positions[4];
|
||||
zeus::CColor color;
|
||||
zeus::CVector2f uvs[4];
|
||||
};
|
||||
struct Uniform {
|
||||
zeus::CMatrix4f mv;
|
||||
zeus::CMatrix4f proj;
|
||||
zeus::CMatrix4f envMtx;
|
||||
zeus::CColor moduColor;
|
||||
};
|
||||
|
||||
private:
|
||||
static boo::ObjToken<boo::IShaderPipeline> m_snowPipeline;
|
||||
static boo::ObjToken<boo::IShaderPipeline> m_underwaterPipeline;
|
||||
static boo::ObjToken<boo::IShaderPipeline> m_snowPipeline;
|
||||
static boo::ObjToken<boo::IShaderPipeline> m_underwaterPipeline;
|
||||
|
||||
public:
|
||||
static void Initialize();
|
||||
static void Shutdown();
|
||||
static void BuildShaderDataBinding(boo::IGraphicsDataFactory::Context& ctx,
|
||||
CEnvFxManager& fxMgr, CEnvFxManagerGrid& grid);
|
||||
static void Initialize();
|
||||
static void Shutdown();
|
||||
static void BuildShaderDataBinding(boo::IGraphicsDataFactory::Context& ctx, CEnvFxManager& fxMgr,
|
||||
CEnvFxManagerGrid& grid);
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace urde
|
||||
|
||||
Reference in New Issue
Block a user