Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QGLSubsurface Class

The QGLSubsurface class represents a sub-surface of another OpenGL drawing surface. More...

 #include <QGLSubsurface>

Inherits: QGLAbstractSurface.

This class was introduced in Qt 4.8.

Public Types

enum SurfaceType { Window, FramebufferObject, PixelBuffer, Subsurface, User }

Public Functions

QGLSubsurface()
QGLSubsurface(QGLAbstractSurface * surface, const QRect & region)
virtual ~QGLAbstractSurface()
~QGLSubsurface()
virtual bool activate(QGLAbstractSurface * prevSurface = 0) = 0
virtual qreal aspectRatio() const
QOpenGLContext * context() const
virtual void deactivate(QGLAbstractSurface * nextSurface = 0) = 0
QOpenGLFramebufferObject * framebufferObject() const
virtual bool isValid() const
QRect region() const
void setContext(QOpenGLContext * context)
void setFramebufferObject(QOpenGLFramebufferObject * framebufferObject)
void setRegion(const QRect & region)
void setSurface(QGLAbstractSurface * surface)
void setWindow(QWindow * window)
QGLAbstractSurface * surface() const
int surfaceType() const
bool switchTo(QGLAbstractSurface * nextSurface)
virtual QRect viewportGL() const = 0
QRect viewportRect() const
QWindow * window() const

Reimplemented Public Functions

virtual bool activate(QGLAbstractSurface * prevSurface = 0)
virtual void deactivate(QGLAbstractSurface * nextSurface = 0)
virtual bool isValid() const
virtual QRect viewportGL() const

Static Public Members

QGLAbstractSurface * createSurfaceForContext(QOpenGLContext * context)

Protected Functions

QGLAbstractSurface(int surfaceType)

Detailed Description

The QGLSubsurface class represents a sub-surface of another OpenGL drawing surface.

Member Function Documentation

QGLSubsurface::QGLSubsurface()

Constructs a new subsurface. This constructor should be followed by calls to setSurface() and setRegion().

QGLSubsurface::QGLSubsurface(QGLAbstractSurface * surface, const QRect & region)

Constructs a new subsurface that occupies region within surface. The region has its origin at the top-left of surface.

QGLSubsurface::~QGLSubsurface()

Destroys this subsurface.

bool QGLSubsurface::activate(QGLAbstractSurface * prevSurface = 0) [virtual]

Reimplemented from QGLAbstractSurface::activate().

void QGLSubsurface::deactivate(QGLAbstractSurface * nextSurface = 0) [virtual]

Reimplemented from QGLAbstractSurface::deactivate().

bool QGLSubsurface::isValid() const [virtual]

QRect QGLSubsurface::region() const

Returns the region within surface() that is occupied by this subsurface, relative to the viewportRect() of surface(). The origin is at the top-left of surface().

See also setRegion() and surface().

void QGLSubsurface::setRegion(const QRect & region)

Sets the region within surface() that is occupied by this subsurface, relative to the viewportRect() of surface(). The origin is at the top-left of surface().

See also region() and setSurface().

void QGLSubsurface::setSurface(QGLAbstractSurface * surface)

Sets the surface behind this subsurface.

See also surface() and setRegion().

QGLAbstractSurface * QGLSubsurface::surface() const

Returns the surface behind this subsurface, or null if the surface has not been set.

See also setSurface() and region().

QRect QGLSubsurface::viewportGL() const [virtual]

Reimplemented from QGLAbstractSurface::viewportGL().

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 5.0-snapshot
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web