20 #ifndef FASTUIDRAW_SHADER_SOURCE_HPP 21 #define FASTUIDRAW_SHADER_SOURCE_HPP 201 uint32_t v(macro_value);
214 int32_t v(macro_value);
227 float v(macro_value);
355 uint32_t v(macro_value);
368 int32_t v(macro_value);
381 float v(macro_value);
A ShaderSource represents the source code to a GLSL shader, specifying blocks of source code and macr...
ShaderSource & remove_macro(c_string macro_name, enum add_location_t loc=push_back)
ShaderSource & add_macros(const MacroSet ¯os, enum add_location_t loc=push_back)
all classes and functions of FastUIDraw are in the namespace fastuidraw.
MacroSet & add_macro_float(c_string macro_name, T macro_value)
add_location_t
Enumeration to determine if source code or a macro.
ShaderSource & add_macro_float(c_string macro_name, T macro_value)
MacroSet & add_macro_i32(c_string macro_name, T macro_value)
ShaderSource & specify_extension(c_string ext_name, enum extension_enable_t tp=enable_extension)
source_t
Enumeration to indiciate the source for a shader.
ShaderSource & specify_version(c_string v)
MacroSet & add_macro(c_string macro_name, c_string macro_value="")
c_string assembled_code(bool code_only=false) const
ShaderSource & add_macro_u32(c_string macro_name, T macro_value)
ShaderSource & specify_extensions(const ShaderSource &obj)
MacroSet & add_macro_u32(c_string macro_name, T macro_value)
ShaderSource & add_source(c_string str, enum source_t tp=from_file, enum add_location_t loc=push_back)
c_string version(void) const
extension_enable_t
Enumeration to indicate extension enable flags.
const char * c_string
Conveniant typedef for C-style strings.
MacroSet & operator=(const MacroSet &obj)
ShaderSource & add_macro_i32(c_string macro_name, T macro_value)
ShaderSource & remove_macros(const MacroSet ¯os, enum add_location_t loc=push_back)