2016-04-13 06:07:23 +00:00
|
|
|
#ifndef __URDE_CLINERENDERERSHADERS_HPP__
|
|
|
|
#define __URDE_CLINERENDERERSHADERS_HPP__
|
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
|
|
|
|
2016-03-04 23:04:53 +00:00
|
|
|
namespace urde
|
2016-02-18 02:42:32 +00:00
|
|
|
{
|
|
|
|
class CLineRenderer;
|
|
|
|
|
|
|
|
class CLineRendererShaders
|
|
|
|
{
|
2017-11-05 06:17:12 +00:00
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_texAlpha;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_texAdditive;
|
2016-02-18 02:42:32 +00:00
|
|
|
|
2017-11-05 06:17:12 +00:00
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_noTexAlpha;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_noTexAdditive;
|
2016-02-18 02:42:32 +00:00
|
|
|
|
2018-05-08 05:10:24 +00:00
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_texAlphaZ;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_texAdditiveZ;
|
|
|
|
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_noTexAlphaZ;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_noTexAdditiveZ;
|
|
|
|
|
2018-05-20 06:14:57 +00:00
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_noTexAlphaZGEqual;
|
|
|
|
|
2016-02-18 02:42:32 +00:00
|
|
|
public:
|
|
|
|
static void Initialize();
|
|
|
|
static void Shutdown();
|
2016-03-30 19:16:01 +00:00
|
|
|
static void BuildShaderDataBinding(boo::IGraphicsDataFactory::Context& ctx, CLineRenderer& renderer,
|
2018-05-20 06:14:57 +00:00
|
|
|
const boo::ObjToken<boo::ITexture>& texture, bool additive, bool zTest,
|
|
|
|
bool zGEqual);
|
2016-02-18 02:42:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-04-13 06:07:23 +00:00
|
|
|
#endif // __URDE_CLINERENDERERSHADERS_HPP__
|