Qt 4.8
Public Functions | Static Public Functions | Properties | List of all members
QOpenGLCoordinateOffset Class Reference

Public Functions

 QOpenGLCoordinateOffset (QOpenGLPaintEnginePrivate *d)
 
 ~QOpenGLCoordinateOffset ()
 

Static Public Functions

static void disableOffset (QOpenGLPaintEnginePrivate *d)
 
static void enableOffset (QOpenGLPaintEnginePrivate *d)
 

Properties

QOpenGLPaintEnginePrivated
 

Detailed Description

Definition at line 852 of file qpaintengine_opengl.cpp.

Constructors and Destructors

◆ QOpenGLCoordinateOffset()

QOpenGLCoordinateOffset::QOpenGLCoordinateOffset ( QOpenGLPaintEnginePrivate d)

Definition at line 865 of file qpaintengine_opengl.cpp.

866  : d(d_)
867 {
868  enableOffset(d);
869 }
QOpenGLPaintEnginePrivate * d
static void enableOffset(QOpenGLPaintEnginePrivate *d)

◆ ~QOpenGLCoordinateOffset()

QOpenGLCoordinateOffset::~QOpenGLCoordinateOffset ( )

Definition at line 882 of file qpaintengine_opengl.cpp.

883 {
884  disableOffset(d);
885 }
QOpenGLPaintEnginePrivate * d
static void disableOffset(QOpenGLPaintEnginePrivate *d)

Functions

◆ disableOffset()

void QOpenGLCoordinateOffset::disableOffset ( QOpenGLPaintEnginePrivate d)
static

Definition at line 887 of file qpaintengine_opengl.cpp.

Referenced by QOpenGLPaintEnginePrivate::drawFastRect(), and ~QOpenGLCoordinateOffset().

888 {
889  if (!d->has_antialiasing) {
890  glMatrixMode(GL_MODELVIEW);
891  glPopMatrix();
892  d->mv_matrix[3][0] -= 0.5;
893  d->mv_matrix[3][1] -= 0.5;
894  }
895 }

◆ enableOffset()

void QOpenGLCoordinateOffset::enableOffset ( QOpenGLPaintEnginePrivate d)
static

Definition at line 871 of file qpaintengine_opengl.cpp.

Referenced by QOpenGLPaintEnginePrivate::drawFastRect(), and QOpenGLCoordinateOffset().

872 {
873  if (!d->has_antialiasing) {
874  glMatrixMode(GL_MODELVIEW);
875  glPushMatrix();
876  d->mv_matrix[3][0] += 0.5;
877  d->mv_matrix[3][1] += 0.5;
878  d->updateGLMatrix();
879  }
880 }

Properties

◆ d

QOpenGLPaintEnginePrivate* QOpenGLCoordinateOffset::d
private

Definition at line 862 of file qpaintengine_opengl.cpp.

Referenced by QOpenGLCoordinateOffset(), and ~QOpenGLCoordinateOffset().


The documentation for this class was generated from the following file: