Binder Class
class QOpenGLVertexArrayObject::BinderQOpenGLVertexArrayObject::Binder 클래스는 OpenGL 버텍스 배열 객체의 바인딩 및 해제에 도움이 되는 편의 클래스입니다. 더 보기...
- 상속된 멤버를 포함한 모든 멤버 목록
- 바인더는 3D 렌더링의 일부입니다.
참고: 이 클래스의 모든 함수는 재진입됩니다.
공용 함수
상세 설명
QOpenGLVertexArrayObject::Binder 는 QOpenGLVertexArrayObject 인스턴스의 바인딩 및 해제를 지원하는 데 사용할 수 있는 간단한 편의 클래스입니다. 이 클래스는 QMutexLocker 이 QMutex 에 해당하는 것처럼 QOpenGLVertexArrayObject 에 해당합니다.
이 클래스는 복잡한 코드나 예외가 있을 때 동작을 보장하는 데 도움이 되는 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.