src/render/opengles2/SDL_render_gles2.c
 changeset 6825 a9c669052fa2 parent 6528 e978048ced60 child 6885 700f1b25f77f
equal inserted replaced
6824:436b5b8a5b98 6825:a9c669052fa2
`  1339 `
`  1339 `
`  1340     GLES2_ActivateRenderer(renderer);`
`  1340     GLES2_ActivateRenderer(renderer);`
`  1341     `
`  1341     `
`  1342     rdata->glEnableVertexAttribArray(GLES2_ATTRIBUTE_CENTER);`
`  1342     rdata->glEnableVertexAttribArray(GLES2_ATTRIBUTE_CENTER);`
`  1343     rdata->glEnableVertexAttribArray(GLES2_ATTRIBUTE_ANGLE);`
`  1343     rdata->glEnableVertexAttribArray(GLES2_ATTRIBUTE_ANGLE);`
`  1344     fAngle[0] = fAngle[1] = fAngle[2] = fAngle[3] = (GLfloat)angle;`
`  1344     fAngle[0] = fAngle[1] = fAngle[2] = fAngle[3] = (GLfloat)(360.0f - angle);`
`  1345     /* Calculate the center of rotation */`
`  1345     /* Calculate the center of rotation */`
`  1346     translate[0] = translate[2] = translate[4] = translate[6] = (center->x + dstrect->x);`
`  1346     translate[0] = translate[2] = translate[4] = translate[6] = (center->x + dstrect->x);`
`  1347     translate[1] = translate[3] = translate[5] = translate[7] = (center->y + dstrect->y);`
`  1347     translate[1] = translate[3] = translate[5] = translate[7] = (center->y + dstrect->y);`
`  1348 `
`  1348 `
`  1349     /* Activate an appropriate shader and set the projection matrix */`
`  1349     /* Activate an appropriate shader and set the projection matrix */`