comparison pytouhou/lib/sdl.pxd @ 612:73f134f84c7f

Request a RGB888 context, since SDL2’s default of RGB332 sucks. On X11/GLX, it will select the first config available, that is the best one, while on EGL it will iterate over them to select the one closest to what the application requested. Of course, anything lower than RGB888 looks bad and we really don’t want that.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 26 Mar 2015 20:20:37 +0100
parents 9dbc234ea087
children 4ce3ef053a25
comparison
equal deleted inserted replaced
611:a6a191e371c7 612:73f134f84c7f
17 17
18 cdef SDL_GLattr GL_CONTEXT_MAJOR_VERSION 18 cdef SDL_GLattr GL_CONTEXT_MAJOR_VERSION
19 cdef SDL_GLattr GL_CONTEXT_MINOR_VERSION 19 cdef SDL_GLattr GL_CONTEXT_MINOR_VERSION
20 cdef SDL_GLattr GL_CONTEXT_PROFILE_MASK 20 cdef SDL_GLattr GL_CONTEXT_PROFILE_MASK
21 cdef SDL_GLattr GL_DOUBLEBUFFER 21 cdef SDL_GLattr GL_DOUBLEBUFFER
22 cdef SDL_GLattr GL_RED_SIZE
23 cdef SDL_GLattr GL_GREEN_SIZE
24 cdef SDL_GLattr GL_BLUE_SIZE
22 cdef SDL_GLattr GL_DEPTH_SIZE 25 cdef SDL_GLattr GL_DEPTH_SIZE
23 26
24 cdef SDL_GLprofile GL_CONTEXT_PROFILE_CORE 27 cdef SDL_GLprofile GL_CONTEXT_PROFILE_CORE
25 cdef SDL_GLprofile GL_CONTEXT_PROFILE_COMPATIBILITY 28 cdef SDL_GLprofile GL_CONTEXT_PROFILE_COMPATIBILITY
26 cdef SDL_GLprofile GL_CONTEXT_PROFILE_ES 29 cdef SDL_GLprofile GL_CONTEXT_PROFILE_ES