Mercurial > touhou
view pytouhou/ui/opengl/framebuffer.pxd @ 794:8c2ef2d503c9
formats: Implement T6RP in Rust
This has been tested against demo00.rpy shipped in CM.DAT.
| author | Link Mauve <linkmauve@linkmauve.fr> |
|---|---|
| date | Tue, 02 Jun 2026 16:39:21 +0200 |
| parents | a6af3ff86612 |
| children |
line wrap: on
line source
from pytouhou.lib.opengl cimport GLuint from pytouhou.utils.matrix cimport Matrix from .shader cimport Shader cdef struct PassthroughVertex: short x, y float u, v cdef class Framebuffer: cdef GLuint fbo, texture, rbo # Used by the use_framebuffer_blit path cdef int x, y, width, height # Used by the other one. cdef GLuint vbo, vao cdef Shader shader cdef Matrix *mvp cdef PassthroughVertex[4] buf cpdef bind(self) cdef void set_state(self) nogil cdef bint render(self, int x, int y, int width, int height) except True
