2#ifndef GRAMODS_GRAPHICS_MIXINGSHADERS
3#define GRAMODS_GRAPHICS_MIXINGSHADERS
5#include <gmGraphics/config.hh>
10BEGIN_NAMESPACE_GMGRAPHICS;
54 const std::string &tag);
62 static bool checkCount(
const std::string &mix_type,
64 const std::string &tag,
65 const std::string &type);
79 const std::vector<std::string> &tex_swizz);
82END_NAMESPACE_GMGRAPHICS;
Shader code for mixing textures.
Definition MixingShaders.hh:46
static bool checkCount(const std::string &mix_type, size_t count, const std::string &tag, const std::string &type)
Checks if the specified count of input textures is valid for the specified mix_type and returns true ...
Definition MixingShaders.cpp:279
static bool checkMixTypeValid(const std::string &mix_type, const std::string &tag)
Checks if the specified mix_type is valid and returns true if it is.
Definition MixingShaders.cpp:264
static std::string getFragmentCode(const std::string &mix_type, const std::vector< std::string > &tex_swizz)
Returns fragment shader code for the specified mix_type.
Definition MixingShaders.cpp:307