浏览代码

Corrected bug on texture rotation

pull/342/head
raysan5 7 年前
父节点
当前提交
2227742e96
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/textures.c

+ 2
- 2
src/textures.c 查看文件

@ -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);

正在加载...
取消
保存