libdragon
|
00001 00006 #ifndef __LIBDRAGON_DISPLAY_H 00007 #define __LIBDRAGON_DISPLAY_H 00008 00009 #include <stdint.h> 00010 00019 typedef enum 00020 { 00022 TV_TYPE_PAL, 00024 TV_TYPE_NTSC, 00026 TV_TYPE_MPAL 00027 } tvtype_t; 00028 00032 typedef enum 00033 { 00035 RESOLUTION_320x240, 00037 RESOLUTION_640x480, 00039 RESOLUTION_256x240, 00041 RESOLUTION_512x480 00042 } resolution_t; 00043 00045 typedef enum 00046 { 00048 DEPTH_16_BPP, 00050 DEPTH_32_BPP 00051 } bitdepth_t; 00052 00054 typedef enum 00055 { 00057 GAMMA_NONE, 00059 GAMMA_CORRECT, 00061 GAMMA_CORRECT_DITHER 00062 } gamma_t; 00063 00065 typedef enum 00066 { 00068 ANTIALIAS_OFF, 00070 ANTIALIAS_RESAMPLE, 00072 ANTIALIAS_RESAMPLE_FETCH_NEEDED, 00074 ANTIALIAS_RESAMPLE_FETCH_ALWAYS 00075 } antialias_t; 00076 00078 typedef int display_context_t; 00079 00080 #ifdef __cplusplus 00081 extern "C" { 00082 #endif 00083 00084 void display_init( resolution_t res, bitdepth_t bit, uint32_t num_buffers, gamma_t gamma, antialias_t aa ); 00085 void display_init_ex( tvtype_t tv, resolution_t res, bitdepth_t bit, uint32_t num_buffers, gamma_t gamma, antialias_t aa ); 00086 display_context_t display_lock(); 00087 void display_show(display_context_t disp); 00088 void display_close(); 00089 00090 #ifdef __cplusplus 00091 } 00092 #endif 00093 /* display */ 00095 00096 #endif