Visualization Library 2.1.0
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
The OpenGLContextFormat class encapsulates the settings of an OpenGL rendering context. More...
#include <OpenGLContext.hpp>
Public Member Functions | |
OpenGLContextFormat () | |
void | setRGBABits (int r, int g, int b, int a) |
void | setAccumRGBABits (int r, int g, int b, int a) |
void | setDoubleBuffer (bool double_buffer_on) |
void | setDepthBufferBits (int bits) |
void | setStencilBufferBits (int bits) |
void | setMultisample (bool multisample_on) |
void | setMultisampleSamples (int samples) |
void | setStereo (bool stereo_on) |
void | setFullscreen (bool fullscreent) |
void | setVSync (bool vsync_on) |
void | setContextClientVersion (int version) |
Used by EGLWindow to initialize either GLES 1.x or GLES 2.x contexts. More... | |
const ivec4 & | rgbaBits () const |
const ivec4 & | accumRGBABits () const |
bool | doubleBuffer () const |
int | depthBufferBits () const |
int | stencilBufferBits () const |
bool | multisample () const |
int | multisampleSamples () const |
bool | stereo () const |
bool | fullscreen () const |
bool | vSync () const |
int | contextClientVersion () const |
Used by EGLWindow to initialize either GLES 1.x or GLES 2.x contexts. More... | |
int | bitsPerPixel () const |
Returns rgbaBits().r() + rgbaBits().g() + rgbaBits().b() + rgbaBits().a() More... | |
void | setOpenGLProfile (EOpenGLProfile p) |
The OpenGL profile you'd like to access. More... | |
EOpenGLProfile | openGLProfile () const |
void | setVersion (int majv, int minv) |
Sets the OpenGL version you want to access when using vl::GLP_Compatibility or vl::GLP_Core profiles (default is 3.3 which will yield also any compatible higher version). More... | |
int | majVersion () const |
int | minVersion () const |
Protected Attributes | |
ivec4 | mRGBABits |
ivec4 | mAccumRGBABits |
int | mZBufferBits |
int | mStencilBufferBits |
int | mMultisampleSamples |
int | mContextClientVersion |
int | mMajVersion |
int | mMinVersion |
bool | mHasDoubleBuffer |
bool | mHasMultisample |
bool | mStereo |
bool | mFullscreen |
bool | mVSync |
EOpenGLProfile | mProfile |
The OpenGLContextFormat class encapsulates the settings of an OpenGL rendering context.
Definition at line 56 of file OpenGLContext.hpp.
|
inline |
Definition at line 59 of file OpenGLContext.hpp.
|
inline |
Definition at line 89 of file OpenGLContext.hpp.
References mAccumRGBABits.
Referenced by vlWin32::choosePixelFormat(), vlGLFW::GLFWWindow::initGLFWWindow(), vlGLUT::GLUTWindow::initGLUTWindow(), vlQt4::Qt4Widget::initQt4Widget(), vlQt5::Qt5Widget::initQt5Widget(), and vlSDL::SDLWindow::initSDLWindow().
|
inline |
Returns rgbaBits().r() + rgbaBits().g() + rgbaBits().b() + rgbaBits().a()
Definition at line 102 of file OpenGLContext.hpp.
References vl::Vector4< T_Scalar >::a(), vl::Vector4< T_Scalar >::b(), vl::Vector4< T_Scalar >::g(), vl::Vector4< T_Scalar >::r(), and rgbaBits().
|
inline |
Used by EGLWindow to initialize either GLES 1.x or GLES 2.x contexts.
Definition at line 99 of file OpenGLContext.hpp.
References mContextClientVersion.
Referenced by vlEGL::EGLWindow::initEGLWindow().
|
inline |
Definition at line 91 of file OpenGLContext.hpp.
References mZBufferBits.
Referenced by vlWin32::choosePixelFormat(), vlEGL::EGLWindow::initEGLWindow(), vlGLFW::GLFWWindow::initGLFWWindow(), vlGLUT::GLUTWindow::initGLUTWindow(), vlQt4::Qt4Widget::initQt4Widget(), vlQt5::Qt5Widget::initQt5Widget(), vlQt6::Qt6Widget::initQt6Widget(), and vlSDL::SDLWindow::initSDLWindow().
|
inline |
Definition at line 90 of file OpenGLContext.hpp.
References mHasDoubleBuffer.
Referenced by vlWin32::choosePixelFormat(), vlGLFW::GLFWWindow::initGLFWWindow(), vlGLUT::GLUTWindow::initGLUTWindow(), vlQt4::Qt4Widget::initQt4Widget(), vlQt5::Qt5Widget::initQt5Widget(), vlQt6::Qt6Widget::initQt6Widget(), and vlSDL::SDLWindow::initSDLWindow().
|
inline |
Definition at line 96 of file OpenGLContext.hpp.
References mFullscreen.
Referenced by vlGLFW::GLFWWindow::initGLFWWindow(), vlGLUT::GLUTWindow::initGLUTWindow(), vlQt4::Qt4Widget::initQt4Widget(), vlQt5::Qt5Widget::initQt5Widget(), vlQt6::Qt6Widget::initQt6Widget(), vlSDL::SDLWindow::initSDLWindow(), and vlWin32::Win32Context::initWin32GLContext().
|
inline |
Definition at line 111 of file OpenGLContext.hpp.
References mMajVersion.
Referenced by vlGLFW::GLFWWindow::initGLFWWindow(), vlGLUT::GLUTWindow::initGLUTWindow(), vlQt4::Qt4Widget::initQt4Widget(), vlQt5::Qt5Widget::initQt5Widget(), and vlQt6::Qt6Widget::initQt6Widget().
|
inline |
Definition at line 112 of file OpenGLContext.hpp.
References mMinVersion.
Referenced by vlGLFW::GLFWWindow::initGLFWWindow(), vlGLUT::GLUTWindow::initGLUTWindow(), vlQt4::Qt4Widget::initQt4Widget(), vlQt5::Qt5Widget::initQt5Widget(), and vlQt6::Qt6Widget::initQt6Widget().
|
inline |
Definition at line 93 of file OpenGLContext.hpp.
References mHasMultisample.
Referenced by vlWin32::choosePixelFormat(), vlEGL::EGLWindow::initEGLWindow(), vlGLFW::GLFWWindow::initGLFWWindow(), vlGLUT::GLUTWindow::initGLUTWindow(), vlQt4::Qt4Widget::initQt4Widget(), vlQt5::Qt5Widget::initQt5Widget(), vlQt6::Qt6Widget::initQt6Widget(), vlSDL::SDLWindow::initSDLWindow(), and vlWin32::Win32Context::initWin32GLContext().
|
inline |
Definition at line 94 of file OpenGLContext.hpp.
References mMultisampleSamples.
Referenced by vlWin32::choosePixelFormat(), vlEGL::EGLWindow::initEGLWindow(), vlGLFW::GLFWWindow::initGLFWWindow(), vlQt4::Qt4Widget::initQt4Widget(), vlQt5::Qt5Widget::initQt5Widget(), vlQt6::Qt6Widget::initQt6Widget(), and vlSDL::SDLWindow::initSDLWindow().
|
inline |
Definition at line 107 of file OpenGLContext.hpp.
References mProfile.
Referenced by vlGLFW::GLFWWindow::initGLFWWindow(), vlGLUT::GLUTWindow::initGLUTWindow(), vlQt4::Qt4Widget::initQt4Widget(), vlQt5::Qt5Widget::initQt5Widget(), and vlQt6::Qt6Widget::initQt6Widget().
|
inline |
Definition at line 88 of file OpenGLContext.hpp.
References mRGBABits.
Referenced by bitsPerPixel(), vlWin32::choosePixelFormat(), vlEGL::EGLWindow::initEGLWindow(), vlGLFW::GLFWWindow::initGLFWWindow(), vlGLUT::GLUTWindow::initGLUTWindow(), vlQt4::Qt4Widget::initQt4Widget(), vlQt5::Qt5Widget::initQt5Widget(), vlQt6::Qt6Widget::initQt6Widget(), and vlSDL::SDLWindow::initSDLWindow().
|
inline |
Definition at line 76 of file OpenGLContext.hpp.
References mAccumRGBABits.
|
inline |
Used by EGLWindow to initialize either GLES 1.x or GLES 2.x contexts.
Definition at line 86 of file OpenGLContext.hpp.
References mContextClientVersion.
|
inline |
Definition at line 78 of file OpenGLContext.hpp.
References mZBufferBits.
|
inline |
Definition at line 77 of file OpenGLContext.hpp.
References mHasDoubleBuffer.
|
inline |
Definition at line 83 of file OpenGLContext.hpp.
References mFullscreen.
|
inline |
Definition at line 80 of file OpenGLContext.hpp.
References mHasMultisample.
|
inline |
Definition at line 81 of file OpenGLContext.hpp.
References mMultisampleSamples.
|
inline |
The OpenGL profile you'd like to access.
When using vl::GLP_Compatibility or vl::GLP_Core you must also specify a min/maj version using setVersion() which defaults to 3.3 or a compatible higher version.
Definition at line 106 of file OpenGLContext.hpp.
References mProfile.
|
inline |
Definition at line 75 of file OpenGLContext.hpp.
References mRGBABits.
|
inline |
Definition at line 79 of file OpenGLContext.hpp.
References mStencilBufferBits.
|
inline |
Definition at line 82 of file OpenGLContext.hpp.
References mStereo.
|
inline |
Sets the OpenGL version you want to access when using vl::GLP_Compatibility or vl::GLP_Core profiles (default is 3.3 which will yield also any compatible higher version).
Definition at line 110 of file OpenGLContext.hpp.
References mMajVersion, and mMinVersion.
|
inline |
Definition at line 84 of file OpenGLContext.hpp.
References mVSync.
|
inline |
Definition at line 92 of file OpenGLContext.hpp.
References mStencilBufferBits.
Referenced by vlWin32::choosePixelFormat(), vlEGL::EGLWindow::initEGLWindow(), vlGLFW::GLFWWindow::initGLFWWindow(), vlGLUT::GLUTWindow::initGLUTWindow(), vlQt4::Qt4Widget::initQt4Widget(), vlQt5::Qt5Widget::initQt5Widget(), vlQt6::Qt6Widget::initQt6Widget(), and vlSDL::SDLWindow::initSDLWindow().
|
inline |
Definition at line 95 of file OpenGLContext.hpp.
References mStereo.
Referenced by vlWin32::choosePixelFormat(), vlGLFW::GLFWWindow::initGLFWWindow(), vlGLUT::GLUTWindow::initGLUTWindow(), vlQt4::Qt4Widget::initQt4Widget(), vlQt5::Qt5Widget::initQt5Widget(), vlQt6::Qt6Widget::initQt6Widget(), and vlSDL::SDLWindow::initSDLWindow().
|
inline |
Definition at line 97 of file OpenGLContext.hpp.
References mVSync.
Referenced by vlEGL::EGLWindow::initEGLWindow(), vlGLUT::GLUTWindow::initGLUTWindow(), vlQt4::Qt4Widget::initQt4Widget(), vlQt5::Qt5Widget::initQt5Widget(), vlQt6::Qt6Widget::initQt6Widget(), vlSDL::SDLWindow::initSDLWindow(), and vlWin32::Win32Context::initWin32GLContext().
|
protected |
Definition at line 116 of file OpenGLContext.hpp.
Referenced by accumRGBABits(), and setAccumRGBABits().
|
protected |
Definition at line 120 of file OpenGLContext.hpp.
Referenced by contextClientVersion(), and setContextClientVersion().
|
protected |
Definition at line 126 of file OpenGLContext.hpp.
Referenced by fullscreen(), vl::OpenGLContext::fullscreen(), setFullscreen(), and vl::OpenGLContext::setFullscreen().
|
protected |
Definition at line 123 of file OpenGLContext.hpp.
Referenced by doubleBuffer(), vl::OpenGLContext::hasDoubleBuffer(), and setDoubleBuffer().
|
protected |
Definition at line 124 of file OpenGLContext.hpp.
Referenced by multisample(), and setMultisample().
|
protected |
Definition at line 121 of file OpenGLContext.hpp.
Referenced by majVersion(), and setVersion().
|
protected |
Definition at line 122 of file OpenGLContext.hpp.
Referenced by minVersion(), and setVersion().
|
protected |
Definition at line 119 of file OpenGLContext.hpp.
Referenced by multisampleSamples(), and setMultisampleSamples().
|
protected |
Definition at line 128 of file OpenGLContext.hpp.
Referenced by openGLProfile(), and setOpenGLProfile().
|
protected |
Definition at line 115 of file OpenGLContext.hpp.
Referenced by rgbaBits(), and setRGBABits().
|
protected |
Definition at line 118 of file OpenGLContext.hpp.
Referenced by setStencilBufferBits(), and stencilBufferBits().
|
protected |
Definition at line 125 of file OpenGLContext.hpp.
Referenced by setStereo(), and stereo().
|
protected |
Definition at line 127 of file OpenGLContext.hpp.
Referenced by setVSync(), and vSync().
|
protected |
Definition at line 117 of file OpenGLContext.hpp.
Referenced by depthBufferBits(), and setDepthBufferBits().
Visualization Library 2.1.0 Reference Documentation
Updated on Wed Mar 10 2021 16:02:52.
© Copyright Michele Bosi. All rights reserved.