Qt 4.8
Public Functions | Public Variables | List of all members
QGLPoint Class Reference

#include <qgl2pexvertexarray_p.h>

Public Functions

 operator QPointF ()
 
 operator QPointF () const
 
 QGLPoint (GLfloat new_x, GLfloat new_y)
 
 QGLPoint (const QPointF &p)
 
 QGLPoint (const QPointF *p)
 

Public Variables

GLfloat x
 
GLfloat y
 

Detailed Description

Definition at line 64 of file qgl2pexvertexarray_p.h.

Constructors and Destructors

◆ QGLPoint() [1/3]

QGLPoint::QGLPoint ( GLfloat  new_x,
GLfloat  new_y 
)
inline

Definition at line 67 of file qgl2pexvertexarray_p.h.

Referenced by QGL2PEXVertexArray::addQuad(), QGL2PEXVertexArray::addRect(), and QGL2PEXVertexArray::addVertex().

67  :
68  x(new_x), y(new_y) {};

◆ QGLPoint() [2/3]

QGLPoint::QGLPoint ( const QPointF p)
inline

Definition at line 70 of file qgl2pexvertexarray_p.h.

70  :
71  x(p.x()), y(p.y()) {};
qreal x() const
Returns the x-coordinate of this point.
Definition: qpoint.h:282
qreal y() const
Returns the y-coordinate of this point.
Definition: qpoint.h:287

◆ QGLPoint() [3/3]

QGLPoint::QGLPoint ( const QPointF p)
inline

Definition at line 73 of file qgl2pexvertexarray_p.h.

73  :
74  x(p->x()), y(p->y()) {};
qreal x() const
Returns the x-coordinate of this point.
Definition: qpoint.h:282
qreal y() const
Returns the y-coordinate of this point.
Definition: qpoint.h:287

Functions

◆ operator QPointF() [1/2]

QGLPoint::operator QPointF ( )
inline

Definition at line 79 of file qgl2pexvertexarray_p.h.

79 {return QPointF(x,y);}
The QPointF class defines a point in the plane using floating point precision.
Definition: qpoint.h:214

◆ operator QPointF() [2/2]

QGLPoint::operator QPointF ( ) const
inline

Definition at line 80 of file qgl2pexvertexarray_p.h.

80 {return QPointF(x,y);}
The QPointF class defines a point in the plane using floating point precision.
Definition: qpoint.h:214

Properties

◆ x

GLfloat QGLPoint::x

◆ y

GLfloat QGLPoint::y

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