Mercurial > sdl-ios-xcode
comparison src/video/SDL_sysvideo.h @ 1681:80a5e6a4e1e2 SDL-1.3
Working on paletted display and texture support (two different issues)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 15 Jun 2006 07:07:07 +0000 |
parents | 9488fca10677 |
children | 7ae8018b2e5d |
comparison
equal
deleted
inserted
replaced
1680:9488fca10677 | 1681:80a5e6a4e1e2 |
---|---|
68 { | 68 { |
69 int (*CreateTexture) (SDL_Renderer * renderer, SDL_Texture * texture); | 69 int (*CreateTexture) (SDL_Renderer * renderer, SDL_Texture * texture); |
70 int (*QueryTexturePixels) (SDL_Renderer * renderer, SDL_Texture * texture, | 70 int (*QueryTexturePixels) (SDL_Renderer * renderer, SDL_Texture * texture, |
71 void **pixels, int *pitch); | 71 void **pixels, int *pitch); |
72 int (*SetTexturePalette) (SDL_Renderer * renderer, SDL_Texture * texture, | 72 int (*SetTexturePalette) (SDL_Renderer * renderer, SDL_Texture * texture, |
73 const SDL_Color * colors, int firstcolor, | |
74 int ncolors); | |
75 int (*GetTexturePalette) (SDL_Renderer * renderer, SDL_Texture * texture, | |
73 SDL_Color * colors, int firstcolor, | 76 SDL_Color * colors, int firstcolor, |
74 int ncolors); | 77 int ncolors); |
75 int (*UpdateTexture) (SDL_Renderer * renderer, SDL_Texture * texture, | 78 int (*UpdateTexture) (SDL_Renderer * renderer, SDL_Texture * texture, |
76 SDL_Rect * rect, const void *pixels, int pitch); | 79 const SDL_Rect * rect, const void *pixels, |
80 int pitch); | |
77 int (*LockTexture) (SDL_Renderer * renderer, SDL_Texture * texture, | 81 int (*LockTexture) (SDL_Renderer * renderer, SDL_Texture * texture, |
78 SDL_Rect * rect, int markDirty, void **pixels, | 82 const SDL_Rect * rect, int markDirty, void **pixels, |
79 int *pitch); | 83 int *pitch); |
80 void (*UnlockTexture) (SDL_Renderer * renderer, SDL_Texture * texture); | 84 void (*UnlockTexture) (SDL_Renderer * renderer, SDL_Texture * texture); |
81 void (*DirtyTexture) (SDL_Renderer * renderer, SDL_Texture * texture, | 85 void (*DirtyTexture) (SDL_Renderer * renderer, SDL_Texture * texture, |
82 int numrects, SDL_Rect * rects); | 86 int numrects, const SDL_Rect * rects); |
83 void (*SelectRenderTexture) (SDL_Renderer * renderer, | 87 void (*SelectRenderTexture) (SDL_Renderer * renderer, |
84 SDL_Texture * texture); | 88 SDL_Texture * texture); |
85 void (*RenderFill) (SDL_Renderer * renderer, SDL_Rect * rect, | 89 void (*RenderFill) (SDL_Renderer * renderer, const SDL_Rect * rect, |
86 Uint32 color); | 90 Uint32 color); |
87 int (*RenderCopy) (SDL_Renderer * renderer, SDL_Texture * texture, | 91 int (*RenderCopy) (SDL_Renderer * renderer, SDL_Texture * texture, |
88 SDL_Rect * srcrect, SDL_Rect * dstrect, int blendMode, | 92 const SDL_Rect * srcrect, const SDL_Rect * dstrect, |
89 int scaleMode); | 93 int blendMode, int scaleMode); |
90 int (*RenderReadPixels) (SDL_Renderer * renderer, SDL_Rect * rect, | 94 int (*RenderReadPixels) (SDL_Renderer * renderer, const SDL_Rect * rect, |
91 void *pixels, int pitch); | 95 void *pixels, int pitch); |
92 int (*RenderWritePixels) (SDL_Renderer * renderer, SDL_Rect * rect, | 96 int (*RenderWritePixels) (SDL_Renderer * renderer, const SDL_Rect * rect, |
93 const void *pixels, int pitch); | 97 const void *pixels, int pitch); |
94 void (*RenderPresent) (SDL_Renderer * renderer); | 98 void (*RenderPresent) (SDL_Renderer * renderer); |
95 void (*DestroyTexture) (SDL_Renderer * renderer, SDL_Texture * texture); | 99 void (*DestroyTexture) (SDL_Renderer * renderer, SDL_Texture * texture); |
96 | 100 |
97 void (*DestroyRenderer) (SDL_Renderer * renderer); | 101 void (*DestroyRenderer) (SDL_Renderer * renderer); |
140 { | 144 { |
141 int num_display_modes; | 145 int num_display_modes; |
142 SDL_DisplayMode *display_modes; | 146 SDL_DisplayMode *display_modes; |
143 SDL_DisplayMode desktop_mode; | 147 SDL_DisplayMode desktop_mode; |
144 SDL_DisplayMode current_mode; | 148 SDL_DisplayMode current_mode; |
149 SDL_Palette palette; | |
145 | 150 |
146 int num_render_drivers; | 151 int num_render_drivers; |
147 SDL_RenderDriver *render_drivers; | 152 SDL_RenderDriver *render_drivers; |
148 | 153 |
149 int num_windows; | 154 int num_windows; |
182 * should have their data updated accordingly, including the | 187 * should have their data updated accordingly, including the |
183 * display surfaces associated with them. | 188 * display surfaces associated with them. |
184 */ | 189 */ |
185 int (*SetDisplayMode) (_THIS, const SDL_DisplayMode * mode); | 190 int (*SetDisplayMode) (_THIS, const SDL_DisplayMode * mode); |
186 | 191 |
187 /* Sets the color entries { firstcolor .. (firstcolor+ncolors-1) } | 192 /* Sets the color entries of the display palette to those in 'colors'. |
188 of the physical palette to those in 'colors'. The return value | 193 The return value is 0 if all entries could be set properly or -1 |
189 is 0 if all entries could be set properly or -1 otherwise. | 194 otherwise. |
190 */ | 195 */ |
191 int (*SetDisplayColors) (_THIS, int firstcolor, int ncolors, | 196 int (*SetDisplayPalette) (_THIS, SDL_Palette * palette); |
192 SDL_Color * colors); | |
193 | 197 |
194 /* * * */ | 198 /* * * */ |
195 /* Window functions | 199 /* Window functions |
196 */ | 200 */ |
197 int (*CreateWindow) (_THIS, SDL_Window * window); | 201 int (*CreateWindow) (_THIS, SDL_Window * window); |
198 int (*CreateWindowFrom) (_THIS, SDL_Window * window, void *data); | 202 int (*CreateWindowFrom) (_THIS, SDL_Window * window, const void *data); |
199 void (*SetWindowTitle) (_THIS, SDL_Window * window); | 203 void (*SetWindowTitle) (_THIS, SDL_Window * window); |
200 void (*SetWindowPosition) (_THIS, SDL_Window * window); | 204 void (*SetWindowPosition) (_THIS, SDL_Window * window); |
201 void (*SetWindowSize) (_THIS, SDL_Window * window); | 205 void (*SetWindowSize) (_THIS, SDL_Window * window); |
202 void (*ShowWindow) (_THIS, SDL_Window * window); | 206 void (*ShowWindow) (_THIS, SDL_Window * window); |
203 void (*HideWindow) (_THIS, SDL_Window * window); | 207 void (*HideWindow) (_THIS, SDL_Window * window); |