Procházet zdrojové kódy

Corrected bug on texture rotation

pull/342/head
raysan5 před 8 roky
rodič
revize
2227742e96
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. +2
    -2
      src/textures.c

+ 2
- 2
src/textures.c Zobrazit soubor

@ -1800,9 +1800,9 @@ void DrawTexturePro(Texture2D texture, Rectangle sourceRec, Rectangle destRec, V
rlEnableTexture(texture.id);
rlPushMatrix();
rlTranslatef((float)destRec.x, (float)destRec.y, 0);
rlRotatef(rotation, 0, 0, 1);
rlTranslatef(-origin.x, -origin.y, 0);
rlRotatef(rotation, 0, 0, 1);
rlTranslatef((float)destRec.x, (float)destRec.y, 0);
rlBegin(RL_QUADS);
rlColor4ub(tint.r, tint.g, tint.b, tint.a);

Načítá se…
Zrušit
Uložit