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 19d930f9e3f0
children 80687f258001
comparison
equal deleted inserted replaced
611:a6a191e371c7 612:73f134f84c7f
36 ctypedef enum SDL_GLattr: 36 ctypedef enum SDL_GLattr:
37 SDL_GL_CONTEXT_MAJOR_VERSION 37 SDL_GL_CONTEXT_MAJOR_VERSION
38 SDL_GL_CONTEXT_MINOR_VERSION 38 SDL_GL_CONTEXT_MINOR_VERSION
39 SDL_GL_CONTEXT_PROFILE_MASK 39 SDL_GL_CONTEXT_PROFILE_MASK
40 SDL_GL_DOUBLEBUFFER 40 SDL_GL_DOUBLEBUFFER
41 SDL_GL_RED_SIZE
42 SDL_GL_GREEN_SIZE
43 SDL_GL_BLUE_SIZE
41 SDL_GL_DEPTH_SIZE 44 SDL_GL_DEPTH_SIZE
42 45
43 ctypedef enum SDL_GLprofile: 46 ctypedef enum SDL_GLprofile:
44 SDL_GL_CONTEXT_PROFILE_CORE 47 SDL_GL_CONTEXT_PROFILE_CORE
45 SDL_GL_CONTEXT_PROFILE_COMPATIBILITY 48 SDL_GL_CONTEXT_PROFILE_COMPATIBILITY