summaryrefslogtreecommitdiff
path: root/drivers/gles2/shader_compiler_gles2.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gles2/shader_compiler_gles2.h')
-rw-r--r--drivers/gles2/shader_compiler_gles2.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/drivers/gles2/shader_compiler_gles2.h b/drivers/gles2/shader_compiler_gles2.h
index 3c39e101ca..2565adcd5d 100644
--- a/drivers/gles2/shader_compiler_gles2.h
+++ b/drivers/gles2/shader_compiler_gles2.h
@@ -33,15 +33,15 @@
class ShaderCompilerGLES2 {
class Uniform;
+
public:
struct Flags;
-private:
+private:
ShaderLanguage::ProgramNode *program_node;
- String dump_node_code(ShaderLanguage::Node *p_node,int p_level,bool p_assign_left=false);
+ String dump_node_code(ShaderLanguage::Node *p_node, int p_level, bool p_assign_left = false);
Error compile_node(ShaderLanguage::ProgramNode *p_program);
- static Error create_glsl_120_code(void *p_str,ShaderLanguage::ProgramNode *p_program);
-
+ static Error create_glsl_120_code(void *p_str, ShaderLanguage::ProgramNode *p_program);
bool uses_light;
bool uses_texscreen;
@@ -87,7 +87,7 @@ private:
StringName vname_world_vec;
StringName vname_shadow;
- Map<StringName,ShaderLanguage::Uniform> *uniforms;
+ Map<StringName, ShaderLanguage::Uniform> *uniforms;
StringName out_vertex_name;
@@ -95,13 +95,12 @@ private:
String code;
ShaderLanguage::ShaderType type;
- String replace_string(const StringName& p_string);
+ String replace_string(const StringName &p_string);
- Map<StringName,StringName> mode_replace_table[9];
- Map<StringName,StringName> replace_table;
+ Map<StringName, StringName> mode_replace_table[9];
+ Map<StringName, StringName> replace_table;
public:
-
struct Flags {
bool uses_alpha;
@@ -126,10 +125,9 @@ public:
bool uses_shadow_color;
};
- Error compile(const String& p_code, ShaderLanguage::ShaderType p_type, String& r_code_line, String& r_globals_line, Flags& r_flags, Map<StringName,ShaderLanguage::Uniform> *r_uniforms=NULL);
+ Error compile(const String &p_code, ShaderLanguage::ShaderType p_type, String &r_code_line, String &r_globals_line, Flags &r_flags, Map<StringName, ShaderLanguage::Uniform> *r_uniforms = NULL);
ShaderCompilerGLES2();
-
};
#endif // SHADER_COMPILERL_GL_H