mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 01:53:45 +01:00
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:
|
||||
tcoords.set(tcoords.Y, -tcoords.X);
|
||||
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,
|
||||
R180,
|
||||
R270,
|
||||
FXR90,
|
||||
FXR270,
|
||||
FYR90,
|
||||
FYR270,
|
||||
FX,
|
||||
FY,
|
||||
};
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user