List of common graphics capabilities of the device used by a SoGLContext. More...
#include <Inventor/helpers/SbGPUCapabilities.h>
Public Types | |
enum | Profile { COMPATIBILITY = 0x1 , CORE = 0x2 } |
enumeration of OpenGL profiles More... | |
enum | GpuVendor { INTEL_GPU , AMD_GPU , NVIDIA_GPU , UNKNOWN_GPU } |
enumeration of GPU vendor More... | |
Public Member Functions | |
int | getVersion () const |
OpenGL version. | |
Profile | getProfile () const |
GLContext profile. | |
GpuVendor | getGpuVendor () const |
GPU vendor. | |
const SbString & | getRenderer () const |
Renderer name. | |
const SbVec2i32 & | getMaxViewportSize () const |
GL_MAX_VIEWPORT_DIMS. | |
int | getMaxTextureSize () const |
GL_MAX_TEXTURE_SIZE. | |
int | getMax3DTextureSize () const |
GL_MAX_3D_TEXTURE_SIZE. | |
int | getMaxVertexAttribs () const |
GL_MAX_VERTEX_ATTRIBS. | |
int | getMaxFixedPipelineTextureUnits () const |
GL_MAX_TEXTURE_UNITS (i.e. | |
int | getMaxSamples () const |
GL_MAX_SAMPLES (i.e. | |
Public Member Functions inherited from SbGraphicsCapabilities | |
SbGraphicsCapabilities () | |
int | getMaxTextureUnits () const |
Maximum number of tex unit allowed. | |
int | getMaxImageUnits () const |
Maximum number of image unit allowed. | |
int | getMaxTextureCoords () const |
Maximum number of texCoord allowed. | |
int | getMaxColorTargets () const |
Maximum number of color target allowed. | |
int | getMaxDrawBuffers () const |
Maximum number of draw buffers allowed. | |
int | getMaxHardwareLights () const |
Maximum number of light allowed. | |
int | getMaxClipPlanes () const |
Maximum number of clip plane allowed. | |
int | getMinGLSLVersion () const |
Minimum version of GLSL supported. | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const SbGPUCapabilities &capabilities) |
List capabilities in human readable format. | |
List of common graphics capabilities of the device used by a SoGLContext.
This structure aims at making algorithms scalable according to the capabilities of the device used for execution. For instance, a texture can be resized if its size is greater than supported hardware size, such as:
SbGraphicsCapabilities, SoGLContext, SoGLDevice
Definition at line 49 of file SbGPUCapabilities.h.
enumeration of GPU vendor
Enumerator | |
---|---|
INTEL_GPU | |
AMD_GPU | |
NVIDIA_GPU | |
UNKNOWN_GPU |
Definition at line 61 of file SbGPUCapabilities.h.
enumeration of OpenGL profiles
Enumerator | |
---|---|
COMPATIBILITY | |
CORE |
Definition at line 54 of file SbGPUCapabilities.h.
GpuVendor SbGPUCapabilities::getGpuVendor | ( | ) | const |
GPU vendor.
int SbGPUCapabilities::getMax3DTextureSize | ( | ) | const |
GL_MAX_3D_TEXTURE_SIZE.
int SbGPUCapabilities::getMaxFixedPipelineTextureUnits | ( | ) | const |
GL_MAX_TEXTURE_UNITS (i.e.
max texture units for fixed pipeline)
int SbGPUCapabilities::getMaxSamples | ( | ) | const |
GL_MAX_SAMPLES (i.e.
max number of samples for multisampling)
int SbGPUCapabilities::getMaxTextureSize | ( | ) | const |
GL_MAX_TEXTURE_SIZE.
int SbGPUCapabilities::getMaxVertexAttribs | ( | ) | const |
GL_MAX_VERTEX_ATTRIBS.
const SbVec2i32 & SbGPUCapabilities::getMaxViewportSize | ( | ) | const |
GL_MAX_VIEWPORT_DIMS.
Profile SbGPUCapabilities::getProfile | ( | ) | const |
GLContext profile.
See Profile enumeration.
const SbString & SbGPUCapabilities::getRenderer | ( | ) | const |
Renderer name.
Format depends on GPU
int SbGPUCapabilities::getVersion | ( | ) | const |
OpenGL version.
Ex: 440 for OpenGL 4.4
|
friend |
List capabilities in human readable format.