diff options
author | Thomas Herzog <thomas.herzog@mail.com> | 2018-07-27 16:31:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-27 16:31:10 +0200 |
commit | c7dc066dc180149652006e86f07765e5326f324b (patch) | |
tree | ce2df74bd0cec34de844a9574b4f071204c924c6 /methods.py | |
parent | 936b5a395a4bd80fbb2832ff175efbde844e5fde (diff) | |
parent | b64171e79cb8de3e7cc5b79352a4cb711347918c (diff) |
Merge pull request #20512 from karroffel/gles2-pr
add initial GLES2 3D renderer
Diffstat (limited to 'methods.py')
-rw-r--r-- | methods.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/methods.py b/methods.py index 33d503a41a..b2061f78bd 100644 --- a/methods.py +++ b/methods.py @@ -259,6 +259,7 @@ def build_legacygl_header(filename, include, class_suffix, output_attribs, gles2 fd.write("\t_FORCE_INLINE_ void set_uniform(Uniforms p_uniform, int32_t p_value) { _FU glUniform1i(get_uniform(p_uniform),p_value); }\n\n") fd.write("\t_FORCE_INLINE_ void set_uniform(Uniforms p_uniform, const Color& p_color) { _FU GLfloat col[4]={p_color.r,p_color.g,p_color.b,p_color.a}; glUniform4fv(get_uniform(p_uniform),1,col); }\n\n") fd.write("\t_FORCE_INLINE_ void set_uniform(Uniforms p_uniform, const Vector2& p_vec2) { _FU GLfloat vec2[2]={p_vec2.x,p_vec2.y}; glUniform2fv(get_uniform(p_uniform),1,vec2); }\n\n") + fd.write("\t_FORCE_INLINE_ void set_uniform(Uniforms p_uniform, const Size2i& p_vec2) { _FU GLint vec2[2]={p_vec2.x,p_vec2.y}; glUniform2iv(get_uniform(p_uniform),1,vec2); }\n\n") fd.write("\t_FORCE_INLINE_ void set_uniform(Uniforms p_uniform, const Vector3& p_vec3) { _FU GLfloat vec3[3]={p_vec3.x,p_vec3.y,p_vec3.z}; glUniform3fv(get_uniform(p_uniform),1,vec3); }\n\n") fd.write("\t_FORCE_INLINE_ void set_uniform(Uniforms p_uniform, float p_a, float p_b) { _FU glUniform2f(get_uniform(p_uniform),p_a,p_b); }\n\n") fd.write("\t_FORCE_INLINE_ void set_uniform(Uniforms p_uniform, float p_a, float p_b, float p_c) { _FU glUniform3f(get_uniform(p_uniform),p_a,p_b,p_c); }\n\n") |