PURE API 0.5
PR00F's Ultimate Rendering Engine full documentation
Loading...
Searching...
No Matches
PureHwVideoDiscoverOpenGL_1_5 Class Reference

Pure OpenGL 1.5 capabilities class. More...

Detailed Description

Pure OpenGL 1.5 capabilities class.

Definition at line 20 of file PureHwVideoDiscoverOpenGL_1_5.h.

#include <PureHwVideoDiscoverOpenGL_1_5.h>

+ Inheritance diagram for PureHwVideoDiscoverOpenGL_1_5:

Public Member Functions

 PureHwVideoDiscoverOpenGL_1_5 (const std::string &sVidFeaturesOGL, const std::string &sVidFeaturesWGL, const std::string &sVidVersionOGL, const TPureUInt &nVidVersionGLSLmaj, const TPureUInt &nVidVersionGLSLmin)
 
virtual ~PureHwVideoDiscoverOpenGL_1_5 ()
 
virtual std::string getVersion () const
 
virtual bool discoverOpenGLavailability ()
 This method checks for related OpenGL extensions, however final verdict on extension support is declared by Discover...Availability() functions of this class.
 
void DiscoverVertexBuffersAvailability ()
 Query vertex buffers availability.
 
void DiscoverHwOcclusionQueryAvailability ()
 Query HW occlusion query availability.
 
TPureBool isVertexBufferObjectSupported () const
 Gets whether Vertex Buffer Object is supported or not.
 
TPureBool isOcclusionQuerySupported () const
 Gets whether HW occlusion query is supported or not.
 
- Public Member Functions inherited from PureHwVideoDiscoverOpenGLbase
 PureHwVideoDiscoverOpenGLbase (const std::string &sFtrsOGL, const std::string &sFtrsWGL, const std::string &sVerOGL, const TPureUInt &nVidVerGLSLmaj, const TPureUInt &nVidVerGLSLmin)
 
virtual ~PureHwVideoDiscoverOpenGLbase ()
 
CConsole & getConsole () const
 Returns access to console preset with logger module name as this class.
 

Protected Member Functions

 PureHwVideoDiscoverOpenGL_1_5 ()
 
 PureHwVideoDiscoverOpenGL_1_5 (const PureHwVideoDiscoverOpenGL_1_5 &)
 
PureHwVideoDiscoverOpenGL_1_5operator= (const PureHwVideoDiscoverOpenGL_1_5 &)
 
- Protected Member Functions inherited from PureHwVideoDiscoverOpenGLbase
 PureHwVideoDiscoverOpenGLbase ()
 
 PureHwVideoDiscoverOpenGLbase (const PureHwVideoDiscoverOpenGLbase &)
 
PureHwVideoDiscoverOpenGLbaseoperator= (const PureHwVideoDiscoverOpenGLbase &)
 
TPureBool isExtensionSupported (const char *extname) const
 Is the given extension supported?
 
bool printExtensionSupported (const char *title, const char *name, std::vector< void * > &functions)
 Checks if given extension is supported and prints the result.
 

Private Attributes

TPureBool bSuppVertexBuffers
 Is Vertex Buffer Object supported?
 
TPureBool bSuppOcclusionQuery
 Is HW occlusion query supported?
 

Additional Inherited Members

- Static Public Member Functions inherited from PureHwVideoDiscoverOpenGLbase
static TPureBool isExtensionSupported (const char *extname, const std::string &sVidFeaturesOGL, const std::string &sVidFeaturesWGL)
 Is the given extension supported?
 
static void CheckAgainstStandardMinValue (GLint value, GLint stdValue)
 Checks given value against given standard value.
 
static void CheckAgainstStandardMinValuef (GLfloat value, GLfloat stdValue)
 Checks given value against given standard value.
 
static void CheckAgainstStandardRange (GLint val1, GLint val2, GLint stdVal1, GLint stdVal2)
 Checks given range against given standard range.
 
static const char * getLoggerModuleName ()
 Returns the logger module name of this class.
 
- Protected Attributes inherited from PureHwVideoDiscoverOpenGLbase
const TPureUIntnVidVersionGLSLmaj
 GLSL major version.
 
const TPureUIntnVidVersionGLSLmin
 GLSL minor version.
 
GLint tmpRet [6]
 Hold for glGetInteger...() results.
 
GLfloat tmpRetf [2]
 Hold for glGetFloat...() results.
 

Constructor & Destructor Documentation

◆ PureHwVideoDiscoverOpenGL_1_5() [1/3]

PureHwVideoDiscoverOpenGL_1_5::PureHwVideoDiscoverOpenGL_1_5 ( const std::string & sVidFeaturesOGL,
const std::string & sVidFeaturesWGL,
const std::string & sVidVersionOGL,
const TPureUInt & nVidVersionGLSLmaj,
const TPureUInt & nVidVersionGLSLmin )
inline

Definition at line 28 of file PureHwVideoDiscoverOpenGL_1_5.h.

◆ ~PureHwVideoDiscoverOpenGL_1_5()

virtual PureHwVideoDiscoverOpenGL_1_5::~PureHwVideoDiscoverOpenGL_1_5 ( )
inlinevirtual

Definition at line 44 of file PureHwVideoDiscoverOpenGL_1_5.h.

◆ PureHwVideoDiscoverOpenGL_1_5() [2/3]

PureHwVideoDiscoverOpenGL_1_5::PureHwVideoDiscoverOpenGL_1_5 ( )
inlineprotected

Definition at line 153 of file PureHwVideoDiscoverOpenGL_1_5.h.

◆ PureHwVideoDiscoverOpenGL_1_5() [3/3]

PureHwVideoDiscoverOpenGL_1_5::PureHwVideoDiscoverOpenGL_1_5 ( const PureHwVideoDiscoverOpenGL_1_5 & )
inlineprotected

Definition at line 159 of file PureHwVideoDiscoverOpenGL_1_5.h.

Member Function Documentation

◆ DiscoverHwOcclusionQueryAvailability()

void PureHwVideoDiscoverOpenGL_1_5::DiscoverHwOcclusionQueryAvailability ( )
inline

Query HW occlusion query availability.

Definition at line 111 of file PureHwVideoDiscoverOpenGL_1_5.h.

◆ discoverOpenGLavailability()

virtual bool PureHwVideoDiscoverOpenGL_1_5::discoverOpenGLavailability ( )
inlinevirtual

This method checks for related OpenGL extensions, however final verdict on extension support is declared by Discover...Availability() functions of this class.

Some higher level manager first invokes this method, then later based on some logic it invokes the Discover...Availability() functions of this class. This class doesn't limit the way you invoke its public functions as this class is not intended to have that kind of logic, however the order is important from the perspective of the logic of the higher-level class, including logging.

Implements PureHwVideoDiscoverOpenGLbase.

Definition at line 57 of file PureHwVideoDiscoverOpenGL_1_5.h.

◆ DiscoverVertexBuffersAvailability()

void PureHwVideoDiscoverOpenGL_1_5::DiscoverVertexBuffersAvailability ( )
inline

Query vertex buffers availability.

Definition at line 99 of file PureHwVideoDiscoverOpenGL_1_5.h.

◆ getVersion()

virtual std::string PureHwVideoDiscoverOpenGL_1_5::getVersion ( ) const
inlinevirtual

Implements PureHwVideoDiscoverOpenGLbase.

Definition at line 46 of file PureHwVideoDiscoverOpenGL_1_5.h.

◆ isOcclusionQuerySupported()

TPureBool PureHwVideoDiscoverOpenGL_1_5::isOcclusionQuerySupported ( ) const
inline

Gets whether HW occlusion query is supported or not.

Returns
True if HW occlusion query is supported, otherwise false.

Definition at line 147 of file PureHwVideoDiscoverOpenGL_1_5.h.

◆ isVertexBufferObjectSupported()

TPureBool PureHwVideoDiscoverOpenGL_1_5::isVertexBufferObjectSupported ( ) const
inline

Gets whether Vertex Buffer Object is supported or not.

Returns
True if Vertex Buffer Object is supported, otherwise false.

Definition at line 138 of file PureHwVideoDiscoverOpenGL_1_5.h.

◆ operator=()

PureHwVideoDiscoverOpenGL_1_5 & PureHwVideoDiscoverOpenGL_1_5::operator= ( const PureHwVideoDiscoverOpenGL_1_5 & )
inlineprotected

Definition at line 160 of file PureHwVideoDiscoverOpenGL_1_5.h.

Member Data Documentation

◆ bSuppOcclusionQuery

TPureBool PureHwVideoDiscoverOpenGL_1_5::bSuppOcclusionQuery
private

Is HW occlusion query supported?

Definition at line 164 of file PureHwVideoDiscoverOpenGL_1_5.h.

◆ bSuppVertexBuffers

TPureBool PureHwVideoDiscoverOpenGL_1_5::bSuppVertexBuffers
private

Is Vertex Buffer Object supported?

Definition at line 163 of file PureHwVideoDiscoverOpenGL_1_5.h.


The documentation for this class was generated from the following file: