libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
color.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <stdint.h>
4
5
#ifdef __cplusplus
6
extern
"C"
{
7
#endif
8
14
typedef
struct
{
15
uint8_t
r
;
16
uint8_t
g
;
17
uint8_t
b
;
18
}
Color_RGB8
;
19
26
typedef
struct
{
27
uint8_t
r
;
28
uint8_t
g
;
29
uint8_t
b
;
30
uint8_t
a
;
31
}
Color_RGBA8
;
32
33
#ifdef __cplusplus
34
};
35
#endif
Color_RGB8
8-bit RGB colour without an alpha channel.
Definition
color.h:14
Color_RGB8::r
uint8_t r
Red channel.
Definition
color.h:15
Color_RGB8::b
uint8_t b
Blue channel.
Definition
color.h:17
Color_RGB8::g
uint8_t g
Green channel.
Definition
color.h:16
Color_RGBA8
8-bit RGBA colour (red, green, blue, alpha).
Definition
color.h:26
Color_RGBA8::r
uint8_t r
Red channel.
Definition
color.h:27
Color_RGBA8::g
uint8_t g
Green channel.
Definition
color.h:28
Color_RGBA8::a
uint8_t a
Alpha channel (0 = transparent, 255 = opaque).
Definition
color.h:30
Color_RGBA8::b
uint8_t b
Blue channel.
Definition
color.h:29
include
ship
utils
color.h
Generated by
1.9.8