2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-02-18 02:42:32 +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-18 02:42:32 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2016-02-18 02:42:32 +00:00
|
|
|
class CLineRenderer;
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CLineRendererShaders {
|
2019-03-03 06:19:42 +00:00
|
|
|
static std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_texAlpha;
|
|
|
|
static std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_texAdditive;
|
2016-02-18 02:42:32 +00:00
|
|
|
|
2019-03-03 06:19:42 +00:00
|
|
|
static std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_noTexAlpha;
|
|
|
|
static std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_noTexAdditive;
|
2016-02-18 02:42:32 +00:00
|
|
|
|
2019-03-03 06:19:42 +00:00
|
|
|
static std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_texAlphaZ;
|
|
|
|
static std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_texAdditiveZ;
|
2018-05-08 05:10:24 +00:00
|
|
|
|
2019-03-03 06:19:42 +00:00
|
|
|
static std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_noTexAlphaZ;
|
|
|
|
static std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_noTexAdditiveZ;
|
2018-05-08 05:10:24 +00:00
|
|
|
|
2019-03-03 06:19:42 +00:00
|
|
|
static std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_noTexAlphaZGEqual;
|
2018-05-20 06:14:57 +00:00
|
|
|
|
2016-02-18 02:42:32 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
static void Initialize();
|
|
|
|
static void Shutdown();
|
|
|
|
static void BuildShaderDataBinding(boo::IGraphicsDataFactory::Context& ctx, CLineRenderer& renderer,
|
|
|
|
const boo::ObjToken<boo::ITexture>& texture, bool additive, bool zTest,
|
|
|
|
bool zGEqual);
|
2016-02-18 02:42:32 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|