Source code for picogl.backend.legacy.core.camera.setup.smooth

"""
Enable Smoothing
"""

from OpenGL.raw.GL.VERSION.GL_1_0 import (
    GL_LINE_SMOOTH,
    GL_LINE_SMOOTH_HINT,
    GL_NICEST,
    GL_POINT_SMOOTH,
    GL_POINT_SMOOTH_HINT,
    glEnable,
    glHint,
)


[docs] def enable_smoothing() -> None: """ enable_smoothing :return: None setup smoothing in legacy picogl """ glEnable(GL_POINT_SMOOTH) glEnable(GL_LINE_SMOOTH) glHint(GL_POINT_SMOOTH_HINT, GL_NICEST) glHint(GL_LINE_SMOOTH_HINT, GL_NICEST)