JubeatPlus 3.9.11
Loading...
Searching...
No Matches
SpriteVertex Struct Reference

One vertex of an interleaved sprite quad: position, texture coordinate, and four 8-bit colour channels. More...

#include <sprite_vertex.h>

Public Attributes

float fX
 Position X, written by the caller.
float fY
 Position Y, written by the caller.
float fZ
 Position Z, untouched by the 2D sprite path.
float flU
 Texture U coordinate.
float flV
 Texture V coordinate.
std::uint8_t byRed
 Red channel, 0-255.
std::uint8_t byGreen
 Green channel, 0-255.
std::uint8_t byBlue
 Blue channel, 0-255.
std::uint8_t byAlpha
 Alpha channel, 0-255.

Detailed Description

One vertex of an interleaved sprite quad: position, texture coordinate, and four 8-bit colour channels.

The engine draws a sprite as four consecutive vertices at a stride of 0x18 bytes. The ivar's runtime type encoding is ^{?=fffffCCCC}, so the colour is four separate byte channels rather than one packed word.


The documentation for this struct was generated from the following file: