Mercurial > sdl-ios-xcode
comparison include/SDL_compat.h @ 2222:926294b2bb4e
Emphasized the separation between SDL_Surface and SDL_Texture
- SDL_Surface is a system memory representation of pixel data
- SDL_Texture is a video memory representation of pixel data
The concept of SDL_Surface with SDL_HWSURFACE is no longer used.
Separated SDL_Texture types by usage rather than memory type
- SDL_TEXTUREACCESS_STATIC is for rarely changed pixel data,
can be placed in video memory.
- SDL_TEXTUREACCESS_STREAMING is for frequently changing pixel
data, usually placed in system memory or AGP memory.
Optimized the SDL_compat usage of the OpenGL renderer by only
using one copy of the framebuffer instead of two.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 11 Aug 2007 20:54:31 +0000 |
parents | 760c1bd2d625 |
children | e61ad15a205f |
comparison
equal
deleted
inserted
replaced
2221:1d75c38e1e5c | 2222:926294b2bb4e |
---|---|
34 /* *INDENT-OFF* */ | 34 /* *INDENT-OFF* */ |
35 extern "C" { | 35 extern "C" { |
36 /* *INDENT-ON* */ | 36 /* *INDENT-ON* */ |
37 #endif | 37 #endif |
38 | 38 |
39 #define SDL_SWSURFACE 0x00000000 | 39 #define SDL_SWSURFACE 0x00000000 /* Not used */ |
40 #define SDL_ANYFORMAT 0x00100000 | 40 #define SDL_ANYFORMAT 0x00100000 |
41 #define SDL_HWPALETTE 0x00200000 | 41 #define SDL_HWPALETTE 0x00200000 |
42 #define SDL_DOUBLEBUF 0x00400000 | 42 #define SDL_DOUBLEBUF 0x00400000 |
43 #define SDL_FULLSCREEN 0x00800000 | 43 #define SDL_FULLSCREEN 0x00800000 |
44 #define SDL_RESIZABLE 0x01000000 | 44 #define SDL_RESIZABLE 0x01000000 |
45 #define SDL_NOFRAME 0x02000000 | 45 #define SDL_NOFRAME 0x02000000 |
46 #define SDL_OPENGL 0x04000000 | 46 #define SDL_OPENGL 0x04000000 |
47 #define SDL_HWSURFACE 0x08000001 /* Not used */ | |
47 #define SDL_ASYNCBLIT 0x08000000 /* Not used */ | 48 #define SDL_ASYNCBLIT 0x08000000 /* Not used */ |
48 #define SDL_HWACCEL 0x08000000 /* Not used */ | 49 #define SDL_HWACCEL 0x08000000 /* Not used */ |
49 | 50 |
50 #define SDL_APPMOUSEFOCUS 0x01 | 51 #define SDL_APPMOUSEFOCUS 0x01 |
51 #define SDL_APPINPUTFOCUS 0x02 | 52 #define SDL_APPINPUTFOCUS 0x02 |