Lines Matching refs:transforms
68 c->transforms.modelview.init(OGLES_MODELVIEW_STACK_DEPTH); in ogles_init_matrix()
69 c->transforms.projection.init(OGLES_PROJECTION_STACK_DEPTH); in ogles_init_matrix()
71 c->transforms.texture[i].init(OGLES_TEXTURE_STACK_DEPTH); in ogles_init_matrix()
73 c->transforms.current = &c->transforms.modelview; in ogles_init_matrix()
74 c->transforms.matrixMode = GL_MODELVIEW; in ogles_init_matrix()
75 c->transforms.dirty = transform_state_t::VIEWPORT | in ogles_init_matrix()
79 c->transforms.mvp.loadIdentity(); in ogles_init_matrix()
80 c->transforms.mvp4.loadIdentity(); in ogles_init_matrix()
81 c->transforms.mvit4.loadIdentity(); in ogles_init_matrix()
82 c->transforms.mvui.loadIdentity(); in ogles_init_matrix()
83 c->transforms.vpt.loadIdentity(); in ogles_init_matrix()
84 c->transforms.vpt.zNear = 0.0f; in ogles_init_matrix()
85 c->transforms.vpt.zFar = 1.0f; in ogles_init_matrix()
90 c->transforms.modelview.uninit(); in ogles_uninit_matrix()
91 c->transforms.projection.uninit(); in ogles_uninit_matrix()
93 c->transforms.texture[i].uninit(); in ogles_uninit_matrix()
107 (c->transforms.mvp4.flags & transform_t::FLAGS_2D_PROJECTION)) { in validate_perspective()
120 int dirty = c->transforms.dirty & want; in ogles_validate_transform_impl()
124 c->transforms.modelview.validate(); in ogles_validate_transform_impl()
129 c->transforms.projection.validate(); in ogles_validate_transform_impl()
134 vp_transform_t& vpt = c->transforms.vpt; in ogles_validate_transform_impl()
141 c->transforms.update_mvp(); in ogles_validate_transform_impl()
148 c->transforms.update_mvui(); in ogles_validate_transform_impl()
155 c->transforms.texture[i].validate(); in ogles_validate_transform_impl()
160 c->transforms.update_mvit(); in ogles_validate_transform_impl()
163 c->transforms.dirty &= ~want; in ogles_validate_transform_impl()
702 GLfloat near = c->transforms.vpt.zNear; in ogles_viewport()
703 GLfloat far = c->transforms.vpt.zFar; in ogles_viewport()
708 GLfloat* const f = c->transforms.vpt.matrix.editElements(); in ogles_viewport()
713 c->transforms.dirty |= transform_state_t::VIEWPORT; in ogles_viewport()
714 if (c->transforms.mvp4.flags & transform_t::FLAGS_2D_PROJECTION) in ogles_viewport()
715 c->transforms.dirty |= transform_state_t::MVP; in ogles_viewport()
848 c->transforms.current->multiply(rhs); in frustumf()
849 c->transforms.invalidate(); in frustumf()
887 c->transforms.current->multiply(rhs); in orthof()
888 c->transforms.invalidate(); in orthof()
895 GLfloat* const f = c->transforms.vpt.matrix.editElements(); in depthRangef()
898 c->transforms.dirty |= transform_state_t::VIEWPORT; in depthRangef()
899 c->transforms.vpt.zNear = zNear; in depthRangef()
900 c->transforms.vpt.zFar = zFar; in depthRangef()
915 stack = &c->transforms.modelview; in glMatrixMode()
918 stack = &c->transforms.projection; in glMatrixMode()
921 stack = &c->transforms.texture[c->textures.active]; in glMatrixMode()
927 c->transforms.matrixMode = mode; in glMatrixMode()
928 c->transforms.current = stack; in glMatrixMode()
934 c->transforms.current->loadIdentity(); // also loads the GLfixed transform in glLoadIdentity()
935 c->transforms.invalidate(); in glLoadIdentity()
936 c->transforms.current->dirty = 0; in glLoadIdentity()
942 c->transforms.current->load(m); in glLoadMatrixf()
943 c->transforms.invalidate(); in glLoadMatrixf()
949 c->transforms.current->load(m); // also loads the GLfixed transform in glLoadMatrixx()
950 c->transforms.invalidate(); in glLoadMatrixx()
951 c->transforms.current->dirty &= ~matrix_stack_t::DO_FLOAT_TO_FIXED; in glLoadMatrixx()
959 c->transforms.current->multiply(rhs); in glMultMatrixf()
960 c->transforms.invalidate(); in glMultMatrixf()
968 c->transforms.current->multiply(rhs); in glMultMatrixx()
969 c->transforms.invalidate(); in glMultMatrixx()
975 GLint err = c->transforms.current->pop(); in glPopMatrix()
980 c->transforms.invalidate(); in glPopMatrix()
986 GLint err = c->transforms.current->push(); in glPushMatrix()
991 c->transforms.invalidate(); in glPushMatrix()
1039 c->transforms.current->rotate(a, x, y, z); in glRotatef()
1040 c->transforms.invalidate(); in glRotatef()
1046 c->transforms.current->rotate( in glRotatex()
1049 c->transforms.invalidate(); in glRotatex()
1055 c->transforms.current->scale(x, y, z); in glScalef()
1056 c->transforms.invalidate(); in glScalef()
1062 c->transforms.current->scale( in glScalex()
1064 c->transforms.invalidate(); in glScalex()
1070 c->transforms.current->translate(x, y, z); in glTranslatef()
1071 c->transforms.invalidate(); in glTranslatef()
1077 c->transforms.current->translate( in glTranslatex()
1079 c->transforms.invalidate(); in glTranslatex()
1124 GLfloat const* f = c->transforms.current->top().elements(); in glQueryMatrixxOES()