Source code for picogl.backend.gl.api.target

"""
Enumeration of OpenGL framebuffer targets.

This module defines an enumeration of OpenGL framebuffer targets
for use with OpenGL functions that interact with framebuffers.
It includes constants for specifying read framebuffer, draw
framebuffer, and general framebuffer targets.
"""

from enum import IntEnum

from OpenGL.raw.GL.VERSION.GL_3_0 import (
    GL_FRAMEBUFFER,
    GL_FRAMEBUFFER_COMPLETE,
    GL_READ_FRAMEBUFFER,
)


[docs] class GLFrameBufferTarget(IntEnum): """GLFrameBufferTarget"""
[docs] FRAMEBUFFER = GL_FRAMEBUFFER # Is equivalent to GL_DRAW_FRAMEBUFFER
[docs] READ_FRAMEBUFFER = GL_READ_FRAMEBUFFER
[docs] class GLFrameBufferStatus(IntEnum): """GL Framebuffer Status"""
[docs] FRAMEBUFFER_COMPLETE = GL_FRAMEBUFFER_COMPLETE