-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathpixel.hpp
36 lines (32 loc) · 1.03 KB
/
pixel.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#pragma once
//=====================================================================//
/*! @file
@brief グラフィックス・ピクセル定義
@author 平松邦仁 ([email protected])
@copyright Copyright (C) 2018 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RX/blob/master/LICENSE
*/
//=====================================================================//
#include <cstdint>
namespace graphics {
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief ピクセル定義
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
struct pixel {
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief ピクセル・タイプ
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
enum class TYPE {
CLUT1 = 1, ///< 1 bits / pixel
CLUT4 = 4, ///< 4 bits / pixel
CLUT8 = 8, ///< 8 bits / pixel
RGB565 = 16, ///< 16 bits / pixel
RGB888 = 32, ///< 32 bits / pixel
};
};
}