返回介绍

QGL Class

发布于 2019-10-04 15:00:31 字数 2318 浏览 1029 评论 0 收藏 0

The QGL class is a namespace for miscellaneous identifiers in the Qt OpenGL module. More...

#include <qgl.h>

Inherited by QGLFormat, QGLContext and QGLWidget.

List of all member functions.

Public Members

  • enum FormatOption { DoubleBuffer = 0x0001, DepthBuffer = 0x0002, Rgba = 0x0004, AlphaChannel = 0x0008, AccumBuffer = 0x0010, StencilBuffer = 0x0020, StereoBuffers = 0x0040, DirectRendering = 0x0080, HasOverlay = 0x0100, SingleBuffer = DoubleBuffer<<16, NoDepthBuffer = DepthBuffer<<16, ColorIndex = Rgba<<16, NoAlphaChannel = AlphaChannel<<16, NoAccumBuffer = AccumBuffer<<16, NoStencilBuffer = StencilBuffer<<16, NoStereoBuffers = StereoBuffers<<16, IndirectRendering = DirectRendering<<16, NoOverlay = HasOverlay<<16 }

Detailed Description

The QGL class is a namespace for miscellaneous identifiers in the Qt OpenGL module.

Normally you can ignore this class. QGLWidget and the other OpenGL* module classes inherit it, so when you make your own QGLWidget subclass you can use the identifiers in the QGL namespace without qualification.

However, you may occasionally find yourself in situations where you need to refer to these identifiers from outside the QGL namespace's scope, e.g. in static functions. In such cases, simply write e.g. QGL::DoubleBuffer instead of just DoubleBuffer.

* OpenGL is a trademark of Silicon Graphics, Inc. in the United States and other countries.

See also Graphics Classes and Image Processing Classes.


Member Type Documentation

QGL::FormatOption

This enum specifies the format options.

  • QGL::DoubleBuffer
  • QGL::DepthBuffer
  • QGL::Rgba
  • QGL::AlphaChannel
  • QGL::AccumBuffer
  • QGL::StencilBuffer
  • QGL::StereoBuffers
  • QGL::DirectRendering
  • QGL::HasOverlay
  • QGL::SingleBuffer
  • QGL::NoDepthBuffer
  • QGL::ColorIndex
  • QGL::NoAlphaChannel
  • QGL::NoAccumBuffer
  • QGL::NoStencilBuffer
  • QGL::NoStereoBuffers
  • QGL::IndirectRendering
  • QGL::NoOverlay

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文