gramods
Loading...
Searching...
No Matches
MixingShaders.hh
1
2#ifndef GRAMODS_GRAPHICS_MIXINGSHADERS
3#define GRAMODS_GRAPHICS_MIXINGSHADERS
4
5#include <gmGraphics/config.hh>
6
7#include <string>
8#include <vector>
9
10BEGIN_NAMESPACE_GMGRAPHICS;
11
47
53 static bool checkMixTypeValid(const std::string &mix_type,
54 const std::string &tag);
55
62 static bool checkCount(const std::string &mix_type,
63 size_t count,
64 const std::string &tag,
65 const std::string &type);
66
78 static std::string getFragmentCode(const std::string &mix_type,
79 const std::vector<std::string> &tex_swizz);
80};
81
82END_NAMESPACE_GMGRAPHICS;
83
84#endif
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