equal
deleted
inserted
replaced
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 */ |