2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-02-15 04:00:26 +00:00
|
|
|
|
2016-03-04 23:04:53 +00:00
|
|
|
#include "Graphics/CGraphics.hpp"
|
2018-10-07 02:59:17 +00:00
|
|
|
#include "boo/graphicsdev/IGraphicsDataFactory.hpp"
|
2016-02-15 04:00:26 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2016-02-15 04:00:26 +00:00
|
|
|
class CElementGen;
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CElementGenShaders {
|
2016-02-15 04:00:26 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
enum class EShaderClass { Tex, IndTex, NoTex };
|
2016-02-15 04:00:26 +00:00
|
|
|
|
|
|
|
private:
|
2018-12-08 05:30:43 +00:00
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_texZTestZWrite;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_texNoZTestZWrite;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_texZTestNoZWrite;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_texNoZTestNoZWrite;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_texAdditiveZTest;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_texAdditiveNoZTest;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_texRedToAlphaZTest;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_texRedToAlphaNoZTest;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_texZTestNoZWriteSub;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_texNoZTestNoZWriteSub;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_texRedToAlphaZTestSub;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_texRedToAlphaNoZTestSub;
|
|
|
|
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_indTexZWrite;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_indTexNoZWrite;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_indTexAdditive;
|
|
|
|
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_cindTexZWrite;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_cindTexNoZWrite;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_cindTexAdditive;
|
|
|
|
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_noTexZTestZWrite;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_noTexNoZTestZWrite;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_noTexZTestNoZWrite;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_noTexNoZTestNoZWrite;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_noTexAdditiveZTest;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_noTexAdditiveNoZTest;
|
2016-02-15 04:00:26 +00:00
|
|
|
|
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
static void Initialize();
|
|
|
|
static void Shutdown();
|
|
|
|
static EShaderClass GetShaderClass(CElementGen& gen);
|
|
|
|
static void BuildShaderDataBinding(boo::IGraphicsDataFactory::Context& ctx, CElementGen& gen);
|
2016-02-15 04:00:26 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|