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
6extern "C" {
7#endif
8
14typedef struct {
15 uint8_t r;
16 uint8_t g;
17 uint8_t b;
19
26typedef struct {
27 uint8_t r;
28 uint8_t g;
29 uint8_t b;
30 uint8_t a;
32
33#ifdef __cplusplus
34};
35#endif
8-bit RGB colour without an alpha channel.
Definition color.h:14
uint8_t r
Red channel.
Definition color.h:15
uint8_t b
Blue channel.
Definition color.h:17
uint8_t g
Green channel.
Definition color.h:16
8-bit RGBA colour (red, green, blue, alpha).
Definition color.h:26
uint8_t r
Red channel.
Definition color.h:27
uint8_t g
Green channel.
Definition color.h:28
uint8_t a
Alpha channel (0 = transparent, 255 = opaque).
Definition color.h:30
uint8_t b
Blue channel.
Definition color.h:29