Mercurial > touhou
view pytouhou/ui/opengl/backend.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 | 1b31169dc344 |
children | 80687f258001 |
line wrap: on
line source
from pytouhou.lib.sdl cimport SDL_GLprofile from pytouhou.lib.opengl cimport GLenum_mode cdef SDL_GLprofile profile cdef int major cdef int minor cdef int double_buffer cdef bint is_legacy cdef GLenum_mode primitive_mode cdef bint use_debug_group cdef bint use_vao cdef bint use_framebuffer_blit cdef bint use_primitive_restart cdef bint use_pack_invert cdef bint use_scaled_rendering cdef bytes shader_header