void SetQuadTexCoordsAndAlpha(float flU0, float flV0, float flU1, float flV1, float flAlpha, SpriteVertex *pQuadVerts, SpriteTransform bTransform)
Writes the texture coordinates and packed colour of one four-vertex sprite quad.
Definition sprite_vertex.cpp:16
SpriteTransform
How a sprite quad's texture coordinates are permuted across its four vertices.
Definition sprite_vertex.h:44
@ SpriteTransformTranspose
Transposed (the U and V axes swapped).
Definition sprite_vertex.h:46
@ SpriteTransformNone
Identity: no rotation or mirroring.
Definition sprite_vertex.h:45
@ SpriteTransformRotate180
Rotated 180 degrees.
Definition sprite_vertex.h:47
@ SpriteTransformMirrorU
Mirrored in the U (horizontal) texture axis.
Definition sprite_vertex.h:50
@ SpriteTransformMirrorV
Mirrored in the V (vertical) texture axis.
Definition sprite_vertex.h:49
@ SpriteTransformTransposeFlip
Transposed the other way.
Definition sprite_vertex.h:48
One vertex of an interleaved sprite quad: position, texture coordinate, and four 8-bit colour channel...
Definition sprite_vertex.h:25
float fZ
Position Z, untouched by the 2D sprite path.
Definition sprite_vertex.h:28
std::uint8_t byRed
Red channel, 0-255.
Definition sprite_vertex.h:31
std::uint8_t byGreen
Green channel, 0-255.
Definition sprite_vertex.h:32
float flU
Texture U coordinate.
Definition sprite_vertex.h:29
std::uint8_t byAlpha
Alpha channel, 0-255.
Definition sprite_vertex.h:34
std::uint8_t byBlue
Blue channel, 0-255.
Definition sprite_vertex.h:33
float fX
Position X, written by the caller.
Definition sprite_vertex.h:26
float fY
Position Y, written by the caller.
Definition sprite_vertex.h:27
float flV
Texture V coordinate.
Definition sprite_vertex.h:30