Mercurial > sdl-ios-xcode
comparison src/video/photon/SDL_photon.h @ 3384:04af265172f9
Continue working on 2D support in Photon.
author | Mike Gorchak <lestat@i.com.ua> |
---|---|
date | Mon, 12 Oct 2009 08:21:43 +0000 |
parents | 64e4442676a6 |
children | fff074de9675 |
comparison
equal
deleted
inserted
replaced
3383:90935231e9b6 | 3384:04af265172f9 |
---|---|
65 #define SDL_VIDEO_PHOTON_MAX_CURSOR_SIZE 128 | 65 #define SDL_VIDEO_PHOTON_MAX_CURSOR_SIZE 128 |
66 | 66 |
67 /* Maximum event message size with data payload */ | 67 /* Maximum event message size with data payload */ |
68 #define SDL_VIDEO_PHOTON_EVENT_SIZE 8192 | 68 #define SDL_VIDEO_PHOTON_EVENT_SIZE 8192 |
69 | 69 |
70 /* Current video mode graphics capabilities */ | |
71 #define SDL_VIDEO_CAP_ALPHA_BLEND 0x00000001 | |
72 #define SDL_VIDEO_CAP_SCALED_BLIT 0x00000002 | |
73 | |
70 typedef struct SDL_DisplayData | 74 typedef struct SDL_DisplayData |
71 { | 75 { |
72 uint32_t device_id; | 76 uint32_t device_id; |
73 uint32_t custom_refresh; /* Custom refresh rate for all modes */ | 77 uint32_t custom_refresh; /* Custom refresh rate for all modes */ |
74 SDL_DisplayMode current_mode; /* Current video mode */ | 78 SDL_DisplayMode current_mode; /* Current video mode */ |
76 /* Device description */ | 80 /* Device description */ |
77 uint32_t caps; /* Device capabilities */ | 81 uint32_t caps; /* Device capabilities */ |
78 PhCursorDef_t *cursor; /* Global cursor settings */ | 82 PhCursorDef_t *cursor; /* Global cursor settings */ |
79 SDL_bool cursor_visible; /* SDL_TRUE if cursor visible */ | 83 SDL_bool cursor_visible; /* SDL_TRUE if cursor visible */ |
80 uint32_t cursor_size; /* Cursor size in memory w/ structure */ | 84 uint32_t cursor_size; /* Cursor size in memory w/ structure */ |
85 uint32_t mode_2dcaps; /* Current video mode 2D capabilities */ | |
81 #if defined(SDL_VIDEO_OPENGL_ES) | 86 #if defined(SDL_VIDEO_OPENGL_ES) |
82 gf_display_t display; /* GF display handle */ | 87 gf_display_t display; /* GF display handle */ |
83 gf_display_info_t display_info; /* GF display information */ | 88 gf_display_info_t display_info; /* GF display information */ |
84 #endif /* SDL_VIDEO_OPENGL_ES */ | 89 #endif /* SDL_VIDEO_OPENGL_ES */ |
85 } SDL_DisplayData; | 90 } SDL_DisplayData; |