Framebuffer
===========

.. py:currentmodule:: moderngl

.. autoclass:: moderngl.Framebuffer

Create
------

.. automethod:: Context.simple_framebuffer
   :noindex:

.. automethod:: Context.framebuffer
   :noindex:

Methods
-------

.. automethod:: Framebuffer.clear
.. automethod:: Framebuffer.read
.. automethod:: Framebuffer.read_into
.. automethod:: Framebuffer.use
.. automethod:: Framebuffer.release

Attributes
----------

.. autoattribute:: Framebuffer.viewport
.. autoattribute:: Framebuffer.scissor
.. autoattribute:: Framebuffer.color_mask
.. autoattribute:: Framebuffer.depth_mask
.. autoattribute:: Framebuffer.width
.. autoattribute:: Framebuffer.height
.. autoattribute:: Framebuffer.size
.. autoattribute:: Framebuffer.samples
.. autoattribute:: Framebuffer.bits
.. autoattribute:: Framebuffer.color_attachments
.. autoattribute:: Framebuffer.depth_attachment
.. autoattribute:: Framebuffer.glo
.. autoattribute:: Framebuffer.mglo
.. autoattribute:: Framebuffer.extra
.. autoattribute:: Framebuffer.ctx

.. toctree::
    :maxdepth: 2
