Loading...
Searching...
No Matches
Classes |
Public Member Functions |
Static Public Member Functions |
Public Attributes |
Static Public Attributes |
List of all members
score::gfx::ShownTexture Struct Reference
Detailed Description
The 2D image the views show of a texture.
Single shows one slice, layer or face at the texture's size. Overview tiles up to max_tiles slices or layers, evenly spaced, row by row from the top left, and unfolds a cube as a cross:
+Y
-X +Z +X -Z -Y
The shaders of shownTextureGlsl() lay it out the same way.
Classes | |
| struct | Point |
Public Member Functions | |
| bool | layered () const noexcept |
| Whether there is more than one image to lay out. | |
| bool | overview () const noexcept |
| int | tiles () const noexcept |
| Images tiled by Overview, and in how many columns and rows. | |
| int | columns () const noexcept |
| int | rows () const noexcept |
| int | tileLayer (int i) const noexcept |
| The slice, layer or face of the i-th tile of Overview. | |
| QSize | size (int max_side) const noexcept |
Size of the image shown, at most max_side pixels wide and high. | |
| Point | locate (double u, double v) const noexcept |
| layer -1: the point falls in no tile. | |
Static Public Member Functions | |
| static ShownTexture | of (TextureShape shape, TextureLayout layout, double slice, int layer) noexcept |
Public Attributes | |
| TextureShape | shape |
| TextureLayout | layout {TextureLayout::Single} |
| int | index {} |
| The slice, layer or face Single shows. | |
Static Public Attributes | |
| static constexpr int | max_tiles = 16 |
Member Function Documentation
◆ of()
|
staticnoexcept |
For a 3D texture, slice from 0 to 1 across its depth; for an array, layer; for a cube, layer is the face, 0 to 5 for +X -X +Y -Y +Z -Z.
The documentation for this struct was generated from the following files:
- TextureKind.hpp
- TextureKind.cpp