summaryrefslogtreecommitdiffstats
path: root/methods.py
diff options
context:
space:
mode:
authorkarroffel <therzog@mail.de>2018-02-24 14:48:22 +0100
committerkarroffel <therzog@mail.de>2018-07-27 14:15:46 +0200
commitb64171e79cb8de3e7cc5b79352a4cb711347918c (patch)
tree3a69c6a0af9b594a80825e41f0f233cfff056f88 /methods.py
parentbfb21be871d015308f63d7510c45c3249d2052e4 (diff)
downloadredot-engine-b64171e79cb8de3e7cc5b79352a4cb711347918c.tar.gz
add initial GLES2 3D renderer
Diffstat (limited to 'methods.py')
-rw-r--r--methods.py1
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")