| 360 | } |
| 361 | |
| 362 | static void Rotate(const CPoint *pCenter, CPoint *pPoint, float Rotation) |
| 363 | { |
| 364 | int x = pPoint->x - pCenter->x; |
| 365 | int y = pPoint->y - pCenter->y; |
| 366 | pPoint->x = (int)(x * std::cos(Rotation) - y * std::sin(Rotation) + pCenter->x); |
| 367 | pPoint->y = (int)(x * std::sin(Rotation) + y * std::cos(Rotation) + pCenter->y); |
| 368 | } |
| 369 | |
| 370 | void CRenderMap::ForceRenderQuads(CQuad *pQuads, int NumQuads, int RenderFlags, IEnvelopeEval *pEnvEval, float Alpha) |
| 371 | { |