![]() |
Walls And Holes
1
|
Functions | |
QPoint | neighborOffset (SideDirection side) |
neighborOffset Computes the offset for the coordinates of a neighbor of a tile. More... | |
QVector2D | awayDirection (SideDirection side) |
awayDirection Computes the "away" direction for a side on a tile, in XZ coordinates. More... | |
QVector3D | normalDirection (SideDirection side) |
normalDirection Computes the normal direction for a vertical side of a tile. More... | |
M2M::Quad | makeTopQuadFragment (SideDirection side, QVector2D quadCenter, QVector2D minusQuadCenter, float minusQuadSize, M2M::ImageInfo quadImage, M2M::PhongInfo quadMaterial) |
makeTopQuadFragment Creates a fragment of a top-facing quad. More... | |
QVector2D M2M_Private::SideTools::awayDirection | ( | SideDirection | side | ) |
awayDirection Computes the "away" direction for a side on a tile, in XZ coordinates.
side | The direction a side is facing. |
M2M::Quad M2M_Private::SideTools::makeTopQuadFragment | ( | SideDirection | side, |
QVector2D | quadCenter, | ||
QVector2D | minusQuadCenter, | ||
float | minusQuadSize, | ||
M2M::ImageInfo | quadImage, | ||
M2M::PhongInfo | quadMaterial | ||
) |
makeTopQuadFragment Creates a fragment of a top-facing quad.
side | Which fragment? (there are 4!) |
quadCenter | Center in XZ coordinates of the quad. The quad is assumed to be size (1, 1). |
minusQuadCenter | Center in XZ coordinates of the quad that is subtracted. |
minusQuadSize | Size of the subtracted quad (so it is assumed a square). |
quadImage | Texture for the main quad. |
quadMaterial | Material for the main quad. |
TODO: Preconditions.
QPoint M2M_Private::SideTools::neighborOffset | ( | SideDirection | side | ) |
neighborOffset Computes the offset for the coordinates of a neighbor of a tile.
side | The direction towards the neighbor. |
QVector3D M2M_Private::SideTools::normalDirection | ( | SideDirection | side | ) |
normalDirection Computes the normal direction for a vertical side of a tile.
side | The direction a side is facing. |