comparison pytouhou/lib/glfw.pxd @ 636:4fa0a8e7d941

Add a GLFW implementation of gui.Window.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 14 May 2017 20:14:03 +0100
parents
children
comparison
equal deleted inserted replaced
635:80687f258001 636:4fa0a8e7d941
1 # -*- encoding: utf-8 -*-
2 ##
3 ## Copyright (C) 2016 Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
4 ##
5 ## This program is free software; you can redistribute it and/or modify
6 ## it under the terms of the GNU General Public License as published
7 ## by the Free Software Foundation; version 3 only.
8 ##
9 ## This program is distributed in the hope that it will be useful,
10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 ## GNU General Public License for more details.
13 ##
14
15 from pytouhou.lib._glfw cimport *
16 cimport pytouhou.lib.gui as gui
17
18 cdef int CLIENT_API
19 cdef int OPENGL_PROFILE
20 cdef int CONTEXT_VERSION_MAJOR
21 cdef int CONTEXT_VERSION_MINOR
22 cdef int DEPTH_BITS
23 cdef int ALPHA_BITS
24 cdef int RESIZABLE
25 cdef int DOUBLEBUFFER
26
27 cdef int OPENGL_API
28 cdef int OPENGL_ES_API
29 cdef int OPENGL_CORE_PROFILE
30
31 cdef void init() except *
32 cdef void terminate() nogil
33 cdef void window_hint(int hint, int value) nogil
34
35 cdef class Window(gui.Window):
36 cdef GLFWwindow* window
37
38 cdef class Monitor:
39 cdef GLFWmonitor* monitor