JubeatPlus 3.9.11
Loading...
Searching...
No Matches
sprite_vertex.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4
16
26 float fX; // +0x00
27 float fY; // +0x04
28 float fZ; // +0x08
29 float flU; // +0x0c
30 float flV; // +0x10
31 std::uint8_t byRed; // +0x14
32 std::uint8_t byGreen; // +0x15
33 std::uint8_t byBlue; // +0x16
34 std::uint8_t byAlpha; // +0x17
35};
36
52
70void SetQuadTexCoordsAndAlpha(float flU0,
71 float flV0,
72 float flU1,
73 float flV1,
74 float flAlpha,
75 SpriteVertex *pQuadVerts,
76 SpriteTransform bTransform);
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