TinyGPU
Loading...
Searching...
No Matches
TinyGPUGlobals.h
Go to the documentation of this file.
1#pragma once
2#include "TinyGPU/Font/Font5x7.h"
3#include "TinyGPU/Font/BitmapFont.h"
4#include "TinyGPU/Surface/FrameBuffer.h"
5#include "TinyGPU/Surface/FrameBufferMonochrome.h"
6#include "TinyGPU/Font/IFont.h"
7#include "TinyGPU/Font/LinePrinter.h"
8#include "TinyGPU/Color/RGB565.h"
9#include "TinyGPU/Color/RGB666.h"
10#include "TinyGPU/Color/RGB888.h"
11#include "TinyGPU/Font/AsciiFonts.h"
12#include "TinyGPU/Surface/Surface.h"
13#include "TinyGPU/Surface/SurfaceMonochrome.h"
14#include "TinyGPUConfig.h"
15#include "TinyGPU/ThreeD/WireFrame3D.h"
16
17namespace tinygpu {
18
19/**
20 * @typedef SurfaceRGB565
21 * @brief Surface with RGB565 pixel format.
22 */
23using SurfaceRGB565 = Surface<RGB565>;
24/**
25 * @typedef SurfaceRGB666
26 * @brief Surface with RGB666 pixel format.
27 */
28using SurfaceRGB666 = Surface<RGB666>;
29/**
30 * @typedef SurfaceRGB888
31 * @brief Surface with RGB888 pixel format.
32 */
33using SurfaceRGB888 = Surface<RGB888>;
34
35/**
36 * @typedef FrameBufferRGB565
37 * @brief FrameBuffer with RGB565 pixel format.
38 */
40/**
41 * @typedef FrameBufferRGB666
42 * @brief FrameBuffer with RGB666 pixel format.
43 */
45/**
46 * @typedef FrameBufferRGB888
47 * @brief FrameBuffer with RGB888 pixel format.
48 */
50/**
51 * @typedef SpriteRGB565
52 * @brief Sprite with RGB565 pixel format.
53 */
55/**
56 * @typedef SpriteRGB666
57 * @brief Sprite with RGB666 pixel format.
58 */
60/**
61 * @typedef SpriteRGB888
62 * @brief Sprite with RGB888 pixel format.
63 */
65/**
66 * @typedef LinePrinterRGB565
67 * @brief LinePrinter with RGB565 pixel format.
68 */
69using LinePrinterRGB565 = LinePrinter<RGB565>;
70/**
71 * @typedef LinePrinterRGB666
72 * @brief LinePrinter with RGB666 pixel format.
73 */
74using LinePrinterRGB666 = LinePrinter<RGB666>;
75/** @typedef LinePrinterRGB888
76 * @brief LinePrinter with RGB888 pixel format.
77 */
78using LinePrinterRGB888 = LinePrinter<RGB888>;
79/**
80 * @typedef Font5x7RGB565
81 * @brief Font5x7 with RGB565 pixel format.
82 */
83using Font5x7RGB565 = Font5x7<RGB565>;
84/**
85 * @typedef Font5x7RGB666
86 * @brief Font5x7 with RGB666 pixel format.
87 */
88using Font5x7RGB666 = Font5x7<RGB666>;
89/**
90 * @typedef Font5x7RGB888
91 * @brief Font5x7 with RGB888 pixel format.
92 */
93using Font5x7RGB888 = Font5x7<RGB888>;
94
95/// @brief Default 5x7 bitmap font instance (RGB565) - the implicit
96/// default font for APIs that need one (e.g. SurfaceWithExternalBuffer's
97/// font constructor parameter).
98inline Font5x7RGB565 FontRGB565;
99/// @brief Default 5x7 bitmap font instance (RGB666).
100inline Font5x7RGB666 FontRGB666;
101/// @brief Default 5x7 bitmap font instance (RGB888).
102inline Font5x7RGB888 FontRGB888;
103/// @brief Default 5x7 bitmap font instance for monochrome (1-bit)
104/// surfaces (SurfaceMonochrome/FrameBufferMonochrome/SpriteMonochrome use
105/// IFont<bool>, not one of the RGB_T typedefs above).
107/**
108 * @typedef IFontRGB565
109 * @brief IFont with RGB565 pixel format.
110 */
111using IFontRGB565 = IFont<RGB565>;
112/**
113 * @typedef IFontRGB666
114 * @brief IFont with RGB666 pixel format.
115 */
116using IFontRGB666 = IFont<RGB666>;
117/**
118 * @typedef IFontRGB888
119 * @brief IFont with RGB888 pixel format.
120 */
121using IFontRGB888 = IFont<RGB888>;
122
123/// @brief Font8x8 (converted from STM32-EVAL fonts.c) with RGB565 pixel format.
124using Font8x8RGB565 = Font8x8<RGB565>;
125/// @brief Font8x8 (converted from STM32-EVAL fonts.c) with RGB666 pixel format.
126using Font8x8RGB666 = Font8x8<RGB666>;
127/// @brief Font8x8 (converted from STM32-EVAL fonts.c) with RGB888 pixel format.
128using Font8x8RGB888 = Font8x8<RGB888>;
129
130/// @brief Font8x12 (converted from STM32-EVAL fonts.c) with RGB565 pixel format.
131using Font8x12RGB565 = Font8x12<RGB565>;
132/// @brief Font8x12 (converted from STM32-EVAL fonts.c) with RGB666 pixel format.
133using Font8x12RGB666 = Font8x12<RGB666>;
134/// @brief Font8x12 (converted from STM32-EVAL fonts.c) with RGB888 pixel format.
135using Font8x12RGB888 = Font8x12<RGB888>;
136
137/// @brief Font12x12 (converted from STM32-EVAL fonts.c) with RGB565 pixel format.
138using Font12x12RGB565 = Font12x12<RGB565>;
139/// @brief Font12x12 (converted from STM32-EVAL fonts.c) with RGB666 pixel format.
140using Font12x12RGB666 = Font12x12<RGB666>;
141/// @brief Font12x12 (converted from STM32-EVAL fonts.c) with RGB888 pixel format.
142using Font12x12RGB888 = Font12x12<RGB888>;
143
144/// @brief Font16x24 (converted from STM32-EVAL fonts.c) with RGB565 pixel format.
145using Font16x24RGB565 = Font16x24<RGB565>;
146/// @brief Font16x24 (converted from STM32-EVAL fonts.c) with RGB666 pixel format.
147using Font16x24RGB666 = Font16x24<RGB666>;
148/// @brief Font16x24 (converted from STM32-EVAL fonts.c) with RGB888 pixel format.
149using Font16x24RGB888 = Font16x24<RGB888>;
150
151/**
152 * @typedef WireFrame3D_RGB565
153 * @brief WireFrame3D with RGB565 pixel format.
154 */
155using WireFrame3D_RGB565 = WireFrame3D<RGB565>;
156/**
157 * @typedef WireFrame3D_RGB666
158 * @brief WireFrame3D with RGB666 pixel format.
159 */
160using WireFrame3D_RGB666 = WireFrame3D<RGB666>;
161/**
162 * @typedef WireFrame3D_RGB888
163 * @brief WireFrame3D with RGB888 pixel format.
164 */
165using WireFrame3D_RGB888 = WireFrame3D<RGB888>;
166
167/// @brief CartesianView with RGB565 pixel format.
169/// @brief CartesianView with RGB666 pixel format.
171/// @brief CartesianView with RGB888 pixel format.
173
174} // namespace tinygpu
12x12 fixed-width bitmap font converted from the STM32-EVAL fonts.c ASCII12x12_Table.
Definition: AsciiFonts.h:464
16x24 fixed-width bitmap font converted from the STM32-EVAL fonts.c ASCII16x24_Table.
Definition: AsciiFonts.h:476
Fixed-size 5x7 bitmap font with ASCII and extended character support.
Definition: Font5x7.h:23
8x12 fixed-width bitmap font converted from the STM32-EVAL fonts.c ASCII8x12_Table.
Definition: AsciiFonts.h:452
8x8 fixed-width bitmap font converted from the STM32-EVAL fonts.c ASCII8x8_Table.
Definition: AsciiFonts.h:440
Font rendering interface for TinyGPU-compatible framebuffers.
Definition: IFont.h:19
Helper for printing wrapped lines of text onto a TinyGPU target.
Definition: LinePrinter.h:17
RGB color stored in 16-bit RGB565 format, byte-swapped from the conventional bit layout.
Definition: RGB565.h:24
RGB color stored in 18-bit RGB666 format.
Definition: RGB666.h:13
RGB color stored in 24-bit RGB888 format.
Definition: RGB888.h:13
In-memory bitmap surface with basic 2D drawing and text rendering.
Definition: Surface.h:38
Lightweight 3D wireframe renderer for TinyGPU drawing targets.
Definition: WireFrame3D.h:41
Definition: DSIBusESP32.h:19
Font5x7RGB666 FontRGB666
Default 5x7 bitmap font instance (RGB666).
Definition: TinyGPUGlobals.h:100
Font5x7< bool > FontMonochrome
Default 5x7 bitmap font instance for monochrome (1-bit) surfaces (SurfaceMonochrome/FrameBufferMonoch...
Definition: TinyGPUGlobals.h:106
Font5x7RGB888 FontRGB888
Default 5x7 bitmap font instance (RGB888).
Definition: TinyGPUGlobals.h:102
Font5x7RGB565 FontRGB565
Default 5x7 bitmap font instance (RGB565) - the implicit default font for APIs that need one (e....
Definition: TinyGPUGlobals.h:98