Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::OpenGLCapabilities Class Reference
Inheritance diagram for inviwo::OpenGLCapabilities:

Classes

class  GLSLShaderVersion

Public Types

enum class  GlVendor { Nvidia , Amd , Intel , Unknown }

Public Member Functions

size_t getCurrentAvailableTextureMem ()
size_t getCurrentShaderIndex () const
GLSLShaderVersion getCurrentShaderVersion () const
const std::string & getGLSLVersionString () const
const std::string & getGLVersionString () const
int getMax3DTexSize () const
int getMaxArrayTexSize () const
int getMaxArrayVertexAttribs () const
int getMaxColorAttachments () const
int getMaxProgramLoopCount () const
int getMaxTexSize () const
size_t getNumberOfShaderVersions () const
int getNumTexUnits () const
const std::string & getProfileString () const
const std::string & getRenderString () const
GLSLShaderVersion getShaderVersion (size_t ind) const
size_t getTotalAvailableTextureMem ()
GlVendor getVendor () const
const std::string & getVendorString () const
bool is3DTexturesSupported () const
bool isFboSupported () const
bool isGeometryShadersSupported () const
bool isShadersSupported () const
bool isShadersSupportedARB () const
bool isTextureArraysSupported () const
bool isTexturesSupported () const
 OpenGLCapabilities (OpenGLSettings *settings)
void printDetailedInfo ()
virtual void printInfo () override

Static Public Member Functions

static int getOpenGLVersion ()
static bool hasOpenGLVersion ()
static bool hasSupportedOpenGLVersion ()
static void initializeGLEW ()
static bool isComputeShadersSupported ()
static bool isExtensionSupported (const char *)
static bool isShaderStorageBuffersSupported ()
static bool isSignedIntNormalizationSymmetric ()
static bool isSupported (const char *)

Protected Member Functions

void addShaderVersion (GLSLShaderVersion)
void addShaderVersionIfEqualOrLower (GLSLShaderVersion, int)
void parseAndAddShaderVersion (std::string, int)
virtual void retrieveDynamicInfo () override
virtual void retrieveStaticInfo () override

Static Protected Member Functions

static int parseAndRetrieveVersion (std::string)

Member Function Documentation

◆ isSignedIntNormalizationSymmetric()

bool inviwo::OpenGLCapabilities::isSignedIntNormalizationSymmetric ( )
static

The conversion from normalized fixed-point integers to floating-point values and back was changed to use a symmetric range in OpenGL 4.2. That is the range [-127, 127] is used for the normalization of 8bit signed integers instead of [-128, 127]. It appears that OpenGL 4.1 on Apple also uses symmetric ranges.

See also
DataMapper::SignedNormalization
OpenGL 4.6 specification, Section 2.3.5 Fixed-Point Data Conversion

◆ printInfo()

virtual void inviwo::OpenGLCapabilities::printInfo ( )
overridevirtual

Implements inviwo::Capabilities.

◆ retrieveDynamicInfo()

virtual void inviwo::OpenGLCapabilities::retrieveDynamicInfo ( )
overrideprotectedvirtual

Implements inviwo::Capabilities.

◆ retrieveStaticInfo()

virtual void inviwo::OpenGLCapabilities::retrieveStaticInfo ( )
overrideprotectedvirtual

Implements inviwo::Capabilities.


The documentation for this class was generated from the following file:
  • modules/opengl/include/modules/opengl/openglcapabilities.h