Mercurial > touhou
diff 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 |
line wrap: on
line diff
--- a/pytouhou/ui/opengl/framebuffer.pxd +++ b/pytouhou/ui/opengl/framebuffer.pxd @@ -8,7 +8,8 @@ cdef struct PassthroughVertex: cdef class Framebuffer: cdef GLuint fbo, texture, rbo, vbo, vao cdef PassthroughVertex[4] buf + cdef int x, y, width, height cpdef bind(self) cdef void set_state(self) nogil - cdef void render(self) nogil + cdef void render(self, int x, int y, int width, int height) nogil