Pyrogenesis
HEAD
Pyrogenesis, a RTS Engine
SColor.h
Go to the documentation of this file.
1
/* Copyright (C) 2026 Wildfire Games.
2
* This file is part of 0 A.D.
3
*
4
* 0 A.D. is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation, either version 2 of the License, or
7
* (at your option) any later version.
8
*
9
* 0 A.D. is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>.
16
*/
17
18
#ifndef INCLUDED_SCOLOR
19
#define INCLUDED_SCOLOR
20
21
// SColor3ub: structure for packed RGB colors
22
struct
SColor3ub
23
{
24
std::uint8_t
R
;
25
std::uint8_t
G
;
26
std::uint8_t
B
;
27
};
28
29
// SColor4ub: structure for packed RGBA colors
30
struct
SColor4ub
31
{
32
std::uint8_t
R
;
33
std::uint8_t
G
;
34
std::uint8_t
B
;
35
std::uint8_t
A
;
36
37
SColor4ub
() { }
38
SColor4ub
(std::uint8_t _r, std::uint8_t _g, std::uint8_t _b, std::uint8_t _a) :
39
R
(_r),
G
(_g),
B
(_b),
A
(_a) { }
40
};
41
42
#endif
SColor3ub
Definition:
SColor.h:23
SColor3ub::G
std::uint8_t G
Definition:
SColor.h:25
SColor3ub::R
std::uint8_t R
Definition:
SColor.h:24
SColor3ub::B
std::uint8_t B
Definition:
SColor.h:26
SColor4ub
Definition:
SColor.h:31
SColor4ub::SColor4ub
SColor4ub()
Definition:
SColor.h:37
SColor4ub::B
std::uint8_t B
Definition:
SColor.h:34
SColor4ub::G
std::uint8_t G
Definition:
SColor.h:33
SColor4ub::A
std::uint8_t A
Definition:
SColor.h:35
SColor4ub::SColor4ub
SColor4ub(std::uint8_t _r, std::uint8_t _g, std::uint8_t _b, std::uint8_t _a)
Definition:
SColor.h:38
SColor4ub::R
std::uint8_t R
Definition:
SColor.h:32
source
graphics
SColor.h
Generated by
1.9.4