acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
_binary_stream.h
1
// First compilation from other files by camilo on 2022-10-07 23:30 <3ThomasBorregaardSorensen!!
2
#pragma once
3
4
5
#include "acme/filesystem/file/binary_stream.h"
6
7
8
// template < typename FILE >
9
inline
binary_stream
& operator << (
binary_stream
& s, const ::color::HLS & hls)
10
{
11
12
s << hls.m_dH;
13
s << hls.m_dL;
14
s << hls.m_dS;
15
16
return
s;
17
18
}
19
20
21
// template < typename FILE >
22
inline
binary_stream
& operator >> (
binary_stream
& s,
::color::HLS
& hls)
23
{
24
25
s >> hls.m_dH;
26
s >> hls.m_dL;
27
s >> hls.m_dS;
28
29
return
s;
30
31
}
32
33
34
// template < typename FILE >
35
inline
binary_stream
& operator << (
binary_stream
& s, const ::color::color & color)
36
{
37
38
s << color.m_u8Red;
39
s << color.m_u8Green;
40
s << color.m_u8Blue;
41
s << color.m_u8Opacity;
42
43
return
s;
44
45
}
46
47
48
// template < typename FILE >
49
inline
binary_stream
& operator >> (
binary_stream
& s,
::color::color
& color)
50
{
51
52
s >> color.m_u8Red;
53
s >> color.m_u8Green;
54
s >> color.m_u8Blue;
55
s >> color.m_u8Opacity;
56
57
return
s;
58
59
}
60
61
62
binary_stream
Definition
binary_stream.h:12
color::color
Definition
color.h:162
color::HLS
Definition
color.h:93
graphics
draw2d
_binary_stream.h
Generated by
1.17.0