Factory to create an OpenGL based image renderer. More...
#include <cvb/ui/opengl_image_renderer_factory.hpp>
Static Public Member Functions | |
static std::unique_ptr< OpenGLImageRenderer > | CreateRenderer (int version) |
Create a renderer. More... | |
static QSurfaceFormat | CreateFormat (int version) |
Create a OpenGL format for the given version. More... | |
static bool | TryVersion (int version) noexcept |
Test if a OpenGL version is implemented on your system. More... | |
static bool | TryVersion (int version, QSurfaceFormat &format) noexcept |
Test if a OpenGL version is implemented on your system. More... | |
static String | VendorName (int version) |
Get the name of the OpenGL vendor. More... | |
static String | RendererName (int version) |
Gets the name of the OpenGL renderer. More... | |
Factory to create an OpenGL based image renderer.
Creates an CvbQtGLImageRenderer based on the CvbRenderEngeine provided. In order to create a renderer a suitable context must be current.
|
inlinestatic |
Create a OpenGL format for the given version.
[in] | version | The required version number either 2 or 3. |
Any | exception derived from std::exception including CvbException. |
|
inlinestatic |
Create a renderer.
[in] | version | The required version number either 2 or 3. |
Any | exception derived from std::exception including CvbException. |
|
inlinestatic |
Gets the name of the OpenGL renderer.
[in] | version | Version of the requested implementation (2 or 3). |
Any | exception derived from std::exception including CvbException. |
|
inlinestaticnoexcept |
Test if a OpenGL version is implemented on your system.
[in] | version | Version to test for (2 or 3) |
Any | exception derived from std::exception including CvbException. |
Does | not throw any exception. |
|
inlinestaticnoexcept |
Test if a OpenGL version is implemented on your system.
[in] | version | Version to test for (2 or 3) |
[out] | format | A suitable format to create a context. |
Does | not throw any exception. |
|
inlinestatic |
Get the name of the OpenGL vendor.
[in] | version | Version of the requested implementation (2 or 3). |
Any | exception derived from std::exception including CvbException. |