Mercurial > touhou
comparison pytouhou/ui/opengl/texture.pyx @ 606:3c2f96f1d715
Fix compilation under Cython 0.22, by making the pyx and the pxd declarations’ except clause similar.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 26 Nov 2014 13:36:38 +0100 |
parents | 6e79756b7f42 |
children | a6af3ff86612 |
comparison
equal
deleted
inserted
replaced
605:d6ead6f0ba80 | 606:3c2f96f1d715 |
---|---|
37 self.loader = loader | 37 self.loader = loader |
38 self.renderer = renderer | 38 self.renderer = renderer |
39 self.texture_class = texture_class | 39 self.texture_class = texture_class |
40 | 40 |
41 | 41 |
42 cdef void load(self, dict anms): | 42 cdef void load(self, dict anms) except *: |
43 if use_debug_group: | 43 if use_debug_group: |
44 glPushDebugGroup(GL_DEBUG_SOURCE_APPLICATION, 0, -1, "Texture loading") | 44 glPushDebugGroup(GL_DEBUG_SOURCE_APPLICATION, 0, -1, "Texture loading") |
45 | 45 |
46 for anm in sorted(anms.values(), key=is_ascii): | 46 for anm in sorted(anms.values(), key=is_ascii): |
47 if use_debug_group: | 47 if use_debug_group: |
71 self.font = Font(fontname, fontsize) | 71 self.font = Font(fontname, fontsize) |
72 self.renderer = renderer | 72 self.renderer = renderer |
73 self.texture_class = texture_class | 73 self.texture_class = texture_class |
74 | 74 |
75 | 75 |
76 cdef void load(self, dict labels): | 76 cdef void load(self, dict labels) except *: |
77 cdef NativeText label | 77 cdef NativeText label |
78 | 78 |
79 if use_debug_group: | 79 if use_debug_group: |
80 glPushDebugGroup(GL_DEBUG_SOURCE_APPLICATION, 0, -1, "Text rendering") | 80 glPushDebugGroup(GL_DEBUG_SOURCE_APPLICATION, 0, -1, "Text rendering") |
81 | 81 |