"""
PySide stub files generated by **IceSpringPySideStubs**

Home: https://baijifeilong.github.io/2022/01/06/ice-spring-pyside-stubs/index.html

Github: https://github.com/baijifeilong/IceSpringPySideStubs

PyPI(PySide2): https://pypi.org/project/IceSpringPySideStubs-PySide2

PyPI(PySide6): https://pypi.org/project/IceSpringPySideStubs-PySide6

PyPI(PyQt5): https://pypi.org/project/IceSpringPySideStubs-PyQt5

Generated by BaiJiFeiLong@gmail.com

Licence: GPLv3
"""
"""
This file contains the exact signatures for all functions in module
PySide6.QtOpenGL, except for defaults which are replaced by "...".
"""
from typing import Optional
import PySide6.QtCore
import PySide6.QtGui
import PySide6.QtOpenGL

bytes = str


class QOpenGLVersionFunctionsFactory(object):
    """
    https://doc.qt.io/qt-6/qopenglversionfunctionsfactory.html

    **Detailed Description**
    """

    def __init__(self) -> None:
        ...

    @staticmethod
    def get(
        versionProfile: PySide6.QtOpenGL.QOpenGLVersionProfile = ...,
        context: Optional[PySide6.QtGui.QOpenGLContext] = ...,
    ) -> PySide6.QtOpenGL.QAbstractOpenGLFunctions:
        """
        https://doc.qt.io/qt-6/qopenglversionfunctionsfactory.html#get

        **[static] QAbstractOpenGLFunctions
        *QOpenGLVersionFunctionsFactory::get(const QOpenGLVersionProfile &
        versionProfile = QOpenGLVersionProfile(), QOpenGLContext * context =
        nullptr)**

        Returns a pointer to an object that provides access to all functions for
        the **versionProfile** of the **context**. There is no need to call
        QAbstractOpenGLFunctions::initializeOpenGLFunctions() as long as the
        **context** is current. It is also possible to call this function when
        the **context** is not current, but in that case it is the caller's
        responsibility to ensure proper initialization by calling
        QAbstractOpenGLFunctions::initializeOpenGLFunctions() afterwards.

        Usually one would use the template version of this function to
        automatically have the result cast to the correct type.
        """
        ...
