QGraphicsApiFilter Class

( Qt3DRender::QGraphicsApiFilter )

The QGraphicsApiFilter class identifies the API required for the attached QTechnique 更多...

头: #include <QGraphicsApiFilter>
qmake: QT += 3drender
Since: Qt 5.5
实例化: GraphicsApiFilter
继承: QObject

公共类型

enum Api { OpenGLES, OpenGL }
enum OpenGLProfile { NoProfile, CoreProfile, CompatibilityProfile }

特性

公共函数

QGraphicsApiFilter (QObject * parent = nullptr)
Api api () const
QStringList extensions () const
int majorVersion () const
int minorVersion () const
OpenGLProfile profile () const
QString vendor () const

公共槽

void setApi (Api api )
void setExtensions (const QStringList & extensions )
void setMajorVersion (int majorVersion )
void setMinorVersion (int minorVersion )
void setProfile (OpenGLProfile profile )
void setVendor (const QString & vendor )

信号

void apiChanged (Qt3DRender::QGraphicsApiFilter::Api api )
void extensionsChanged (const QStringList & extensions )
void graphicsApiFilterChanged ()
void majorVersionChanged (int majorVersion )
void minorVersionChanged (int minorVersion )
void profileChanged (Qt3DRender::QGraphicsApiFilter::OpenGLProfile profile )
void vendorChanged (const QString & vendor )
bool operator!= (const QGraphicsApiFilter & reference , const QGraphicsApiFilter & sample )
bool operator== (const QGraphicsApiFilter & reference , const QGraphicsApiFilter & sample )

额外继承成员

详细描述

The QGraphicsApiFilter class identifies the API required for the attached QTechnique

成员类型文档编制

enum QGraphicsApiFilter:: Api

常量 描述
Qt3DRender::QGraphicsApiFilter::OpenGLES QSurfaceFormat::OpenGLES QSurfaceFormat::OpenGLES
Qt3DRender::QGraphicsApiFilter::OpenGL QSurfaceFormat::OpenGL QSurfaceFormat::OpenGL

enum QGraphicsApiFilter:: OpenGLProfile

This enum identifies the type of profile required

常量
Qt3DRender::QGraphicsApiFilter::NoProfile QSurfaceFormat::NoProfile
Qt3DRender::QGraphicsApiFilter::CoreProfile QSurfaceFormat::CoreProfile
Qt3DRender::QGraphicsApiFilter::CompatibilityProfile QSurfaceFormat::CompatibilityProfile

特性文档编制

api : Qt3DRender::QGraphicsApiFilter::Api

访问函数:

Api api () const
void setApi (Api api )

通知程序信号:

void apiChanged (Qt3DRender::QGraphicsApiFilter::Api api )

extensions : QStringList

访问函数:

QStringList extensions () const
void setExtensions (const QStringList & extensions )

通知程序信号:

void extensionsChanged (const QStringList & extensions )

majorVersion : int

访问函数:

int majorVersion () const
void setMajorVersion (int majorVersion )

通知程序信号:

void majorVersionChanged (int majorVersion )

minorVersion : int

访问函数:

int minorVersion () const
void setMinorVersion (int minorVersion )

通知程序信号:

void minorVersionChanged (int minorVersion )

profile : Qt3DRender::QGraphicsApiFilter::OpenGLProfile

访问函数:

OpenGLProfile profile () const
void setProfile (OpenGLProfile profile )

通知程序信号:

void profileChanged (Qt3DRender::QGraphicsApiFilter::OpenGLProfile profile )

vendor : QString

访问函数:

QString vendor () const
void setVendor (const QString & vendor )

通知程序信号:

void vendorChanged (const QString & vendor )

成员函数文档编制

QGraphicsApiFilter:: QGraphicsApiFilter ( QObject * parent = nullptr)

构造新的 QGraphicsApiFilter 采用指定 parent .

[signal] void QGraphicsApiFilter:: graphicsApiFilterChanged ()

This signal is emitted when the value of any property is changed.

相关非成员

bool Qt3DRender:: operator!= (const QGraphicsApiFilter & reference , const QGraphicsApiFilter & sample )

返回 true if reference and sample are different.

bool Qt3DRender:: operator== (const QGraphicsApiFilter & reference , const QGraphicsApiFilter & sample )

返回 true if reference and sample are equivalent.