Qt 4.8
Public Functions | Public Variables | List of all members
QGLShaderProgramPrivate Class Reference
Inheritance diagram for QGLShaderProgramPrivate:
QObjectPrivate QObjectData

Public Functions

bool hasShader (QGLShader::ShaderType type) const
 
 QGLShaderProgramPrivate (const QGLContext *context)
 
 ~QGLShaderProgramPrivate ()
 
- Public Functions inherited from QObjectPrivate
void _q_reregisterTimers (void *pointer)
 
void addConnection (int signal, Connection *c)
 
void cleanConnectionLists ()
 
void connectNotify (const char *signal)
 
void deleteChildren ()
 
void disconnectNotify (const char *signal)
 
bool isSender (const QObject *receiver, const char *signal) const
 
bool isSignalConnected (uint signalIdx) const
 Returns true if the signal with index signal_index from object sender is connected. More...
 
void moveToThread_helper ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () const
 
void setParent_helper (QObject *)
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData)
 
int signalIndex (const char *signalName) const
 Returns the signal index used in the internal connectionLists vector. More...
 
virtual ~QObjectPrivate ()
 
- Public Functions inherited from QObjectData
virtual ~QObjectData ()=0
 

Public Variables

QList< QGLShader * > anonShaders
 
GLenum geometryInputType
 
GLenum geometryOutputType
 
int geometryVertexCount
 
bool inited
 
bool linked
 
QString log
 
QGLSharedResourceGuard programGuard
 
bool removingShaders
 
QList< QGLShader * > shaders
 
- Public Variables inherited from QObjectPrivate
union {
   QObject *   currentChildBeingDeleted
 
   QAbstractDeclarativeData *   declarativeData
 
}; 
 
quint32 connectedSignals [2]
 
QObjectConnectionListVectorconnectionLists
 
SendercurrentSender
 
QList< QPointer< QObject > > eventFilters
 
ExtraDataextraData
 
QString objectName
 
Connectionsenders
 
QAtomicPointer< QtSharedPointer::ExternalRefCountData > sharedRefcount
 
QThreadDatathreadData
 
void * unused
 
- Public Variables inherited from QObjectData
uint blockSig: 1
 
QObjectList children
 
uint hasGuards: 1
 
uint inEventHandler: 1
 
uint inThreadChangeEvent: 1
 
uint isWidget: 1
 
QMetaObjectmetaObject
 
uint ownObjectName: 1
 
QObjectparent
 
uint pendTimer: 1
 
int postedEvents
 
QObjectq_ptr
 
uint receiveChildEvents: 1
 
uint sendChildEvents: 1
 
uint unused: 22
 
uint wasDeleted: 1
 

Additional Inherited Members

- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
- Static Public Functions inherited from QObjectPrivate
static void clearGuards (QObject *)
 
static QObjectPrivateget (QObject *o)
 
static void resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender)
 
static SendersetCurrentSender (QObject *receiver, Sender *sender)
 
static void signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result)
 

Detailed Description

Definition at line 555 of file qglshaderprogram.cpp.

Constructors and Destructors

◆ QGLShaderProgramPrivate()

QGLShaderProgramPrivate::QGLShaderProgramPrivate ( const QGLContext context)
inline

Definition at line 559 of file qglshaderprogram.cpp.

560  : programGuard(context)
561  , linked(false)
562  , inited(false)
563  , removingShaders(false)
564  , geometryVertexCount(64)
565  , geometryInputType(0)
566  , geometryOutputType(0)
567  {
568  }
QGLSharedResourceGuard programGuard

◆ ~QGLShaderProgramPrivate()

QGLShaderProgramPrivate::~QGLShaderProgramPrivate ( )

Definition at line 587 of file qglshaderprogram.cpp.

588 {
589  if (programGuard.id()) {
592  }
593 }
const QGLContext * context() const
Definition: qgl_p.h:873
GLuint id() const
Definition: qgl_p.h:880
QGLSharedResourceGuard programGuard
#define glDeleteProgram

Functions

◆ hasShader()

bool QGLShaderProgramPrivate::hasShader ( QGLShader::ShaderType  type) const

Definition at line 595 of file qglshaderprogram.cpp.

596 {
597  foreach (QGLShader *shader, shaders) {
598  if (shader->shaderType() == type)
599  return true;
600  }
601  return false;
602 }
int type
Definition: qmetatype.cpp:239
QGLShader::ShaderType shaderType() const
Returns the type of this shader.
QList< QGLShader * > shaders
The QGLShader class allows OpenGL shaders to be compiled.

Properties

◆ anonShaders

QList<QGLShader *> QGLShaderProgramPrivate::anonShaders

Definition at line 582 of file qglshaderprogram.cpp.

◆ geometryInputType

GLenum QGLShaderProgramPrivate::geometryInputType

Definition at line 577 of file qglshaderprogram.cpp.

◆ geometryOutputType

GLenum QGLShaderProgramPrivate::geometryOutputType

Definition at line 578 of file qglshaderprogram.cpp.

◆ geometryVertexCount

int QGLShaderProgramPrivate::geometryVertexCount

Definition at line 576 of file qglshaderprogram.cpp.

◆ inited

bool QGLShaderProgramPrivate::inited

Definition at line 573 of file qglshaderprogram.cpp.

◆ linked

bool QGLShaderProgramPrivate::linked

Definition at line 572 of file qglshaderprogram.cpp.

◆ log

QString QGLShaderProgramPrivate::log

Definition at line 580 of file qglshaderprogram.cpp.

◆ programGuard

QGLSharedResourceGuard QGLShaderProgramPrivate::programGuard

Definition at line 571 of file qglshaderprogram.cpp.

◆ removingShaders

bool QGLShaderProgramPrivate::removingShaders

Definition at line 574 of file qglshaderprogram.cpp.

◆ shaders

QList<QGLShader *> QGLShaderProgramPrivate::shaders

Definition at line 581 of file qglshaderprogram.cpp.


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