|  | libdragon
    | 
Display Subsystem. More...
Go to the source code of this file.
| Data Structures | |
| struct | resolution_t | 
| Video resolution structure.  More... | |
| Typedefs | |
| typedef surface_t * | display_context_t | 
| Display context (DEPRECATED: Use surface_t instead) | |
| Enumerations | |
| enum | bitdepth_t { DEPTH_16_BPP , DEPTH_32_BPP } | 
| Valid bit depths.  More... | |
| enum | gamma_t { GAMMA_NONE , GAMMA_CORRECT , GAMMA_CORRECT_DITHER } | 
| Valid gamma correction settings.  More... | |
| enum | filter_options_t { FILTERS_DISABLED , FILTERS_RESAMPLE , FILTERS_DEDITHER , FILTERS_RESAMPLE_ANTIALIAS , FILTERS_RESAMPLE_ANTIALIAS_DEDITHER } | 
| Valid display filter options.  More... | |
| Functions | |
| void | display_init (resolution_t res, bitdepth_t bit, uint32_t num_buffers, gamma_t gamma, filter_options_t filters) | 
| Initialize the display to a particular resolution and bit depth. | |
| void | display_close () | 
| Close the display. | |
| surface_t * | display_get (void) | 
| Get a display buffer for rendering. | |
| surface_t * | display_try_get (void) | 
| Try getting a display surface. | |
| void | display_show (surface_t *surf) | 
| Display a buffer on the screen. | |
| uint32_t | display_get_width (void) | 
| Get the currently configured width of the display in pixels. | |
| uint32_t | display_get_height (void) | 
| Get the currently configured height of the display in pixels. | |
| uint32_t | display_get_bitdepth (void) | 
| Get the currently configured bitdepth of the display (in bytes per pixels) | |
| uint32_t | display_get_num_buffers (void) | 
| Get the currently configured number of buffers. | |
| float | display_get_fps (void) | 
| Get the current number of frames per second being rendered. | |
| Variables | |
| const resolution_t | RESOLUTION_256x240 = {256, 240, false} | 
| 256x240 mode | |
| const resolution_t | RESOLUTION_320x240 = {320, 240, false} | 
| 320x240 mode | |
| const resolution_t | RESOLUTION_512x240 = {512, 240, false} | 
| 512x240 mode, high-res progressive | |
| const resolution_t | RESOLUTION_640x240 = {640, 240, false} | 
| 640x240 mode, high-res progressive | |
| const resolution_t | RESOLUTION_512x480 = {512, 480, true} | 
| 512x480 mode, interlaced | |
| const resolution_t | RESOLUTION_640x480 = {640, 480, true} | 
| 640x480 mode, interlaced | |
Display Subsystem.