Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Monado
Monado
Commits
b9c3ac79
Commit
b9c3ac79
authored
Aug 22, 2019
by
Jakob Bornecrantz
Browse files
xrt: Add colour structs
parent
7f365177
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/xrt/include/xrt/xrt_defines.h
View file @
b9c3ac79
...
...
@@ -133,6 +133,56 @@ struct xrt_vec3
float
z
;
};
/*!
* A 3 element colour with 8 bits per channel.
*
* @ingroup xrt_iface math
*/
struct
xrt_colour_rgb_u8
{
uint8_t
r
;
uint8_t
g
;
uint8_t
b
;
};
/*!
* A 4 element colour with 8 bits per channel.
*
* @ingroup xrt_iface math
*/
struct
xrt_colour_rgba_u8
{
uint8_t
r
;
uint8_t
g
;
uint8_t
b
;
uint8_t
a
;
};
/*!
* A 3 element colour with floating point channels.
*
* @ingroup xrt_iface math
*/
struct
xrt_colour_rgb_f32
{
float
r
;
float
g
;
float
b
;
};
/*!
* A 4 element colour with floating point channels.
*
* @ingroup xrt_iface math
*/
struct
xrt_colour_rgba_f32
{
float
r
;
float
g
;
float
b
;
float
a
;
};
/*!
* A pose composed of a position and orientation.
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment