Mercurial > touhou
comparison pytouhou/ui/opengl/framebuffer.pxd @ 587:6c9d8a3d853f
Use ARB_framebuffer_blit instead of a second rendering pass for scaled rendering, if supported, and remove framebuffer stuff from the Renderer.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 08 Oct 2014 18:34:27 +0200 |
parents | 4b0593da29d5 |
children | 1b31169dc344 |
comparison
equal
deleted
inserted
replaced
586:4b0593da29d5 | 587:6c9d8a3d853f |
---|---|
6 | 6 |
7 | 7 |
8 cdef class Framebuffer: | 8 cdef class Framebuffer: |
9 cdef GLuint fbo, texture, rbo, vbo, vao | 9 cdef GLuint fbo, texture, rbo, vbo, vao |
10 cdef PassthroughVertex[4] buf | 10 cdef PassthroughVertex[4] buf |
11 cdef int x, y, width, height | |
11 | 12 |
12 cpdef bind(self) | 13 cpdef bind(self) |
13 cdef void set_state(self) nogil | 14 cdef void set_state(self) nogil |
14 cdef void render(self) nogil | 15 cdef void render(self, int x, int y, int width, int height) nogil |