Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « PySide2.QtOpenGL »

Classe « QGLContext »

Informations générales

Héritage

builtins.object
    Object
        QGLContext

Définition

class QGLContext(Object):

Description [extrait de QGLContext.__doc__]

QGLContext(self, format: PySide2.QtOpenGL.QGLFormat)

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]
__init__(self, /, *args, **kwargs) Initialize self. See help(type(self)) for accurate signature. [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
CanFlipNativePixmapBindOptionPySide2.QtOpenGL.QGLContext.BindOption.CanFlipNativePixmapBindOption
DefaultBindOptionPySide2.QtOpenGL.QGLContext.BindOption.DefaultBindOption
InternalBindOptionPySide2.QtOpenGL.QGLContext.BindOption.InternalBindOption
InvertedYBindOptionPySide2.QtOpenGL.QGLContext.BindOption.InvertedYBindOption
LinearFilteringBindOptionPySide2.QtOpenGL.QGLContext.BindOption.LinearFilteringBindOption
MemoryManagedBindOptionPySide2.QtOpenGL.QGLContext.BindOption.MemoryManagedBindOption
MipmapBindOptionPySide2.QtOpenGL.QGLContext.BindOption.MipmapBindOption
NoBindOptionPySide2.QtOpenGL.QGLContext.BindOption.NoBindOption
PremultipliedAlphaBindOptionPySide2.QtOpenGL.QGLContext.BindOption.PremultipliedAlphaBindOption
TemporarilyCachedBindOptionPySide2.QtOpenGL.QGLContext.BindOption.TemporarilyCachedBindOption

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__delattr__(self, name) Implement delattr(self, name). [extrait de __delattr__.__doc__]
__setattr__(self, name, value) Implement setattr(self, name, value). [extrait de __setattr__.__doc__]
areSharing(context1: PySide2.QtOpenGL.QGLContext, context2: PySide2.QtOpenGL.QGLContext) -> bool areSharing(context1: PySide2.QtOpenGL.QGLContext, context2: PySide2.QtOpenGL.QGLContext) -> bool [extrait de areSharing.__doc__]
BindOption
BindOptions
bindTexture bindTexture(self, fileName: str) -> int [extrait de bindTexture.__doc__]
chooseContext(self, shareContext: typing.Union[PySide2.QtOpenGL.QGLContext, NoneType] = None) -> bool chooseContext(self, shareContext: typing.Union[PySide2.QtOpenGL.QGLContext, NoneType] = None) -> bool [extrait de chooseContext.__doc__]
colorIndex(self, c: PySide2.QtGui.QColor) -> int colorIndex(self, c: PySide2.QtGui.QColor) -> int [extrait de colorIndex.__doc__]
contextHandle(self) -> PySide2.QtGui.QOpenGLContext contextHandle(self) -> PySide2.QtGui.QOpenGLContext [extrait de contextHandle.__doc__]
create(self, shareContext: typing.Union[PySide2.QtOpenGL.QGLContext, NoneType] = None) -> bool create(self, shareContext: typing.Union[PySide2.QtOpenGL.QGLContext, NoneType] = None) -> bool [extrait de create.__doc__]
currentContext() -> PySide2.QtOpenGL.QGLContext currentContext() -> PySide2.QtOpenGL.QGLContext [extrait de currentContext.__doc__]
deleteTexture(self, tx_id: int) deleteTexture(self, tx_id: int) [extrait de deleteTexture.__doc__]
device(self) -> PySide2.QtGui.QPaintDevice device(self) -> PySide2.QtGui.QPaintDevice [extrait de device.__doc__]
deviceIsPixmap(self) -> bool deviceIsPixmap(self) -> bool [extrait de deviceIsPixmap.__doc__]
doneCurrent(self) doneCurrent(self) [extrait de doneCurrent.__doc__]
drawTexture drawTexture(self, point: PySide2.QtCore.QPointF, textureId: int, textureTarget: int = 3553) [extrait de drawTexture.__doc__]
format(self) -> PySide2.QtOpenGL.QGLFormat format(self) -> PySide2.QtOpenGL.QGLFormat [extrait de format.__doc__]
fromOpenGLContext(platformContext: PySide2.QtGui.QOpenGLContext) -> PySide2.QtOpenGL.QGLContext fromOpenGLContext(platformContext: PySide2.QtGui.QOpenGLContext) -> PySide2.QtOpenGL.QGLContext [extrait de fromOpenGLContext.__doc__]
initialized(self) -> bool initialized(self) -> bool [extrait de initialized.__doc__]
isSharing(self) -> bool isSharing(self) -> bool [extrait de isSharing.__doc__]
isValid(self) -> bool isValid(self) -> bool [extrait de isValid.__doc__]
makeCurrent(self) makeCurrent(self) [extrait de makeCurrent.__doc__]
moveToThread(self, thread: PySide2.QtCore.QThread) moveToThread(self, thread: PySide2.QtCore.QThread) [extrait de moveToThread.__doc__]
overlayTransparentColor(self) -> PySide2.QtGui.QColor overlayTransparentColor(self) -> PySide2.QtGui.QColor [extrait de overlayTransparentColor.__doc__]
requestedFormat(self) -> PySide2.QtOpenGL.QGLFormat requestedFormat(self) -> PySide2.QtOpenGL.QGLFormat [extrait de requestedFormat.__doc__]
reset(self) reset(self) [extrait de reset.__doc__]
setDevice(self, pDev: PySide2.QtGui.QPaintDevice) setDevice(self, pDev: PySide2.QtGui.QPaintDevice) [extrait de setDevice.__doc__]
setFormat(self, format: PySide2.QtOpenGL.QGLFormat) setFormat(self, format: PySide2.QtOpenGL.QGLFormat) [extrait de setFormat.__doc__]
setInitialized(self, on: bool) setInitialized(self, on: bool) [extrait de setInitialized.__doc__]
setTextureCacheLimit(size: int) setTextureCacheLimit(size: int) [extrait de setTextureCacheLimit.__doc__]
setValid(self, valid: bool) setValid(self, valid: bool) [extrait de setValid.__doc__]
setWindowCreated(self, on: bool) setWindowCreated(self, on: bool) [extrait de setWindowCreated.__doc__]
swapBuffers(self) swapBuffers(self) [extrait de swapBuffers.__doc__]
textureCacheLimit() -> int textureCacheLimit() -> int [extrait de textureCacheLimit.__doc__]
windowCreated(self) -> bool windowCreated(self) -> bool [extrait de windowCreated.__doc__]

Méthodes héritées de la classe Object

__init_subclass__, __subclasshook__

Méthodes héritées de la classe object

__dir__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __sizeof__, __str__