forked from Mirrorlandia_minetest/minetest
Drop unused tile rotations
This commit is contained in:
parent
1102f92dac
commit
7c26cb1c35
@ -208,30 +208,6 @@ static std::array<video::S3DVertex, 24> setupCuboidVertices(const aabb3f &box, c
|
|||||||
case TileRotation::R270:
|
case TileRotation::R270:
|
||||||
tcoords.set(tcoords.Y, -tcoords.X);
|
tcoords.set(tcoords.Y, -tcoords.X);
|
||||||
break;
|
break;
|
||||||
case TileRotation::FXR90:
|
|
||||||
tcoords.X = 1.0 - tcoords.X;
|
|
||||||
tcoords.set(-tcoords.Y, tcoords.X);
|
|
||||||
break;
|
|
||||||
case TileRotation::FXR270:
|
|
||||||
tcoords.X = 1.0 - tcoords.X;
|
|
||||||
tcoords.set(tcoords.Y, -tcoords.X);
|
|
||||||
break;
|
|
||||||
case TileRotation::FYR90:
|
|
||||||
tcoords.Y = 1.0 - tcoords.Y;
|
|
||||||
tcoords.set(-tcoords.Y, tcoords.X);
|
|
||||||
break;
|
|
||||||
case TileRotation::FYR270:
|
|
||||||
tcoords.Y = 1.0 - tcoords.Y;
|
|
||||||
tcoords.set(tcoords.Y, -tcoords.X);
|
|
||||||
break;
|
|
||||||
case TileRotation::FX:
|
|
||||||
tcoords.X = 1.0 - tcoords.X;
|
|
||||||
break;
|
|
||||||
case TileRotation::FY:
|
|
||||||
tcoords.Y = 1.0 - tcoords.Y;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -300,12 +300,6 @@ enum class TileRotation: u8 {
|
|||||||
R90,
|
R90,
|
||||||
R180,
|
R180,
|
||||||
R270,
|
R270,
|
||||||
FXR90,
|
|
||||||
FXR270,
|
|
||||||
FYR90,
|
|
||||||
FYR270,
|
|
||||||
FX,
|
|
||||||
FY,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
Loading…
Reference in New Issue
Block a user