diff options
Diffstat (limited to 'minui/include')
-rw-r--r-- | minui/include/minui/minui.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/minui/include/minui/minui.h b/minui/include/minui/minui.h index 97660d476..fa13ecdff 100644 --- a/minui/include/minui/minui.h +++ b/minui/include/minui/minui.h @@ -48,6 +48,13 @@ enum class GRRotation : int { LEFT = 3, }; +enum class PixelFormat : int { + UNKNOWN = 0, + ABGR = 1, + RGBX = 2, + BGRA = 3, +}; + // Initializes the graphics backend and loads font file. Returns 0 on success, or -1 on error. Note // that the font initialization failure would be non-fatal, as caller may not need to draw any text // at all. Caller can check the font initialization result via gr_sys_font() as needed. @@ -85,6 +92,9 @@ unsigned int gr_get_height(const GRSurface* surface); // Sets rotation, flips gr_fb_width/height if 90 degree rotation difference void gr_rotate(GRRotation rotation); +// Returns the current PixelFormat being used. +PixelFormat gr_pixel_format(); + // // Input events. // |