comparison pytouhou/lib/sdl.pyx @ 556:c34b23e29d16

Make the OpenGL flavor and version options work.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 30 May 2014 16:40:36 +0200
parents 1abb6f7db8cc
children 0768122da817
comparison
equal deleted inserted replaced
555:98380e4a0ee5 556:c34b23e29d16
17 logger = get_logger(__name__) 17 logger = get_logger(__name__)
18 18
19 19
20 GL_CONTEXT_MAJOR_VERSION = SDL_GL_CONTEXT_MAJOR_VERSION 20 GL_CONTEXT_MAJOR_VERSION = SDL_GL_CONTEXT_MAJOR_VERSION
21 GL_CONTEXT_MINOR_VERSION = SDL_GL_CONTEXT_MINOR_VERSION 21 GL_CONTEXT_MINOR_VERSION = SDL_GL_CONTEXT_MINOR_VERSION
22 GL_CONTEXT_PROFILE_MASK = SDL_GL_CONTEXT_PROFILE_MASK
22 GL_DOUBLEBUFFER = SDL_GL_DOUBLEBUFFER 23 GL_DOUBLEBUFFER = SDL_GL_DOUBLEBUFFER
23 GL_DEPTH_SIZE = SDL_GL_DEPTH_SIZE 24 GL_DEPTH_SIZE = SDL_GL_DEPTH_SIZE
25
26 GL_CONTEXT_PROFILE_CORE = SDL_GL_CONTEXT_PROFILE_CORE
27 GL_CONTEXT_PROFILE_COMPATIBILITY = SDL_GL_CONTEXT_PROFILE_COMPATIBILITY
28 GL_CONTEXT_PROFILE_ES = SDL_GL_CONTEXT_PROFILE_ES
24 29
25 WINDOWPOS_CENTERED = SDL_WINDOWPOS_CENTERED 30 WINDOWPOS_CENTERED = SDL_WINDOWPOS_CENTERED
26 WINDOW_OPENGL = SDL_WINDOW_OPENGL 31 WINDOW_OPENGL = SDL_WINDOW_OPENGL
27 WINDOW_RESIZABLE = SDL_WINDOW_RESIZABLE 32 WINDOW_RESIZABLE = SDL_WINDOW_RESIZABLE
28 33