Binder Class

class QOpenGLVertexArrayObject::Binder

QOpenGLVertexArrayObject::Binder クラスは、OpenGL Vertex Array Objects のバインドと解放を支援する便利なクラスです。詳細...

注意:このクラスの関数はすべてリエントラントです。

パブリック関数

Binder(QOpenGLVertexArrayObject *v)
~Binder()
void rebind()
void release()

詳細説明

QOpenGLVertexArrayObject::Binder は、 インスタンスのバインドと解放を支援するために使用できるシンプルな便利クラスです。このクラスは にとって にとって のようなものです。QOpenGLVertexArrayObject QOpenGLVertexArrayObject QMutexLocker QMutex

このクラスはRAII原則を実装しており、複雑なコードや例外が存在する場合の動作を保証するのに役立ちます。

このクラスのコンストラクタは、引数としてQOpenGLVertexArrayObject (VAO)を受け取り、必要に応じてQOpenGLVertexArrayObject::create ()を呼び出して、VAOのバインドを試みる。このクラスのデストラクタはQOpenGLVertexArrayObject::release ()を呼び出し、VAOのバインドを解除する。

必要であれば、release ()関数でVAOのバインドを一時的に解除し、rebind ()でもう一度バインドすることができる。

QOpenGLVertexArrayObjectも参照のこと

メンバ関数のドキュメント

Binder::Binder(QOpenGLVertexArrayObject *v)

QOpenGLVertexArrayObject::Binder オブジェクトを作成し、QOpenGLVertexArrayObject::bind() を呼び出してv をバインドする。必要であれば、最初にQOpenGLVertexArrayObject::create ()を呼び出す。

[noexcept] Binder::~Binder()

QOpenGLVertexArrayObject::Binder を破棄し、関連する頂点配列オブジェクトを解放します。

void Binder::rebind()

関連する頂点配列オブジェクトを再バインドするために使用できます。

release()も参照してください

void Binder::release()

関連する頂点配列オブジェクトを一時的に解放するために使用できます。

rebind()も参照してください

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.