QGraphicsApiFilter Class

class Qt3DRender ::QGraphicsApiFilter

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

头: #include <QGraphicsApiFilter>
CMake: find_package(Qt6 COMPONENTS 3drender REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
Since: Qt 5.5
实例化: GraphicsApiFilter
继承: QObject

公共类型

enum Api { OpenGLES, OpenGL, Vulkan, DirectX, RHI }
enum OpenGLProfile { NoProfile, CoreProfile, CompatibilityProfile }

特性

公共函数

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

公共槽

void setApi (Qt3DRender::QGraphicsApiFilter::Api api )
void setExtensions (const QStringList & extensions )
void setMajorVersion (int majorVersion )
void setMinorVersion (int minorVersion )
void setProfile (Qt3DRender::QGraphicsApiFilter::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 Qt3DRender::QGraphicsApiFilter & reference , const Qt3DRender::QGraphicsApiFilter & sample )
bool operator== (const Qt3DRender::QGraphicsApiFilter & reference , const Qt3DRender::QGraphicsApiFilter & sample )

详细描述

成员类型文档编制

enum QGraphicsApiFilter:: Api

常量 描述
Qt3DRender::QGraphicsApiFilter::OpenGLES QSurfaceFormat::OpenGLES QSurfaceFormat::OpenGLES
Qt3DRender::QGraphicsApiFilter::OpenGL QSurfaceFormat::OpenGL QSurfaceFormat::OpenGL
Qt3DRender::QGraphicsApiFilter::Vulkan 3 Vulkan
Qt3DRender::QGraphicsApiFilter::DirectX 4 DirectX
Qt3DRender::QGraphicsApiFilter::RHI 5 RHI

enum QGraphicsApiFilter:: OpenGLProfile

This enum identifies the type of profile required.

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

特性文档编制

api : Qt3DRender::QGraphicsApiFilter::Api

访问函数:

Qt3DRender::QGraphicsApiFilter::Api api () const
void setApi (Qt3DRender::QGraphicsApiFilter::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

访问函数:

Qt3DRender::QGraphicsApiFilter::OpenGLProfile profile () const
void setProfile (Qt3DRender::QGraphicsApiFilter::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)

Constructs a new QGraphicsApiFilter with the specified parent .

[signal] void QGraphicsApiFilter:: graphicsApiFilterChanged ()

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

相关非成员

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

返回 true if reference and sample are different.

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

返回 true if reference and sample are equivalent.