Localise addressing mode state display for GL

* On GL addressing modes are called wrap modes, and the wrap value is then known
  as repeat. If we don't 'localise' this then it can be confusing to show that
  it is "Wrap".
This commit is contained in:
baldurk
2019-05-17 12:04:45 +01:00
parent 96cc08b960
commit 51c50e0da3
8 changed files with 70 additions and 9 deletions
+1 -1
View File
@@ -424,7 +424,7 @@ rdcstr DoStringise(const TextureFilter &el)
if(a == 0 || filters[a] == filters[a - 1])
{
if(filtPrefix != "")
filtPrefix += "/";
filtPrefix += "&";
filtPrefix += filterPrefixes[a];
}
else
+15
View File
@@ -327,15 +327,27 @@ DOCUMENT(R"(A texture addressing mode in a single direction (U,V or W).
The texture is tiled at every multiple of 1.0.
.. data:: Repeat
Alias of :data:`Wrap`.
.. data:: Mirror
The texture is tiled as with :data:`Wrap`, but with the absolute value of the texture co-ordinate.
.. data:: MirrorRepeat
Alias of :data:`Mirror`.
.. data:: MirrorOnce
The texture is mirrored with :data:`Mirror`, but the texture does not tile as with
:data:`ClampEdge`.
.. data:: MirrorClamp
Alias of :data:`MirrorOnce`.
.. data:: ClampEdge
The texture is clamped to the range of ``[0.0, 1.0]`` and the texture value at each end used.
@@ -348,8 +360,11 @@ DOCUMENT(R"(A texture addressing mode in a single direction (U,V or W).
enum class AddressMode : uint32_t
{
Wrap,
Repeat = Wrap,
Mirror,
MirrorRepeat = Mirror,
MirrorOnce,
MirrorClamp = MirrorOnce,
ClampEdge,
ClampBorder,
};