fix code generation so it generates Transform2D instead of Matrix32

This commit is contained in:
Juan Linietsky 2017-01-11 09:15:57 -03:00
parent e6583117df
commit 0413328dcb
1 changed files with 4 additions and 4 deletions

View File

@ -279,9 +279,9 @@ def build_glsl_header(filename):
""") """)
fd.write("""\t_FORCE_INLINE_ void set_uniform(Uniforms p_uniform, const Matrix32& p_transform) { _FU fd.write("""\t_FORCE_INLINE_ void set_uniform(Uniforms p_uniform, const Transform2D& p_transform) { _FU
const Matrix32 &tr = p_transform; const Transform2D &tr = p_transform;
GLfloat matrix[16]={ /* build a 16x16 matrix */ GLfloat matrix[16]={ /* build a 16x16 matrix */
tr.elements[0][0], tr.elements[0][0],
@ -933,9 +933,9 @@ def build_legacygl_header(filename, include, class_suffix, output_attribs):
""") """)
fd.write("""\t_FORCE_INLINE_ void set_uniform(Uniforms p_uniform, const Matrix32& p_transform) { _FU fd.write("""\t_FORCE_INLINE_ void set_uniform(Uniforms p_uniform, const Transform2D& p_transform) { _FU
const Matrix32 &tr = p_transform; const Transform2D &tr = p_transform;
GLfloat matrix[16]={ /* build a 16x16 matrix */ GLfloat matrix[16]={ /* build a 16x16 matrix */
tr.elements[0][0], tr.elements[0][0],