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

Pure OpenGL capabilities base class. More...

Detailed Description

Pure OpenGL capabilities base class.

Definition at line 29 of file PureHwVideoDiscoverOpenGLbase.h.

#include <PureHwVideoDiscoverOpenGLbase.h>

+ Inheritance diagram for PureHwVideoDiscoverOpenGLbase:

Public Member Functions

 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.
 
virtual std::string getVersion () const =0
 
virtual bool discoverOpenGLavailability ()=0
 

Static Public Member Functions

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 Member Functions

 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.
 

Protected Attributes

const TPureUIntnVidVersionGLSLmaj
 GLSL major version.
 
const TPureUIntnVidVersionGLSLmin
 GLSL minor version.
 
GLint tmpRet [6]
 Hold for glGetInteger...() results.
 
GLfloat tmpRetf [2]
 Hold for glGetFloat...() results.
 

Private Attributes

const std::string & sVidFeaturesOGL
 VGA features based on OGL.
 
const std::string & sVidFeaturesWGL
 VGA features based on WGL.
 
const std::string & sVidVersionOGL
 OpenGL version.
 

Constructor & Destructor Documentation

◆ PureHwVideoDiscoverOpenGLbase() [1/3]

PureHwVideoDiscoverOpenGLbase::PureHwVideoDiscoverOpenGLbase ( const std::string & sFtrsOGL,
const std::string & sFtrsWGL,
const std::string & sVerOGL,
const TPureUInt & nVidVerGLSLmaj,
const TPureUInt & nVidVerGLSLmin )

Definition at line 61 of file PurehwVideoDiscoverOpenGLbase.cpp.

◆ ~PureHwVideoDiscoverOpenGLbase()

PureHwVideoDiscoverOpenGLbase::~PureHwVideoDiscoverOpenGLbase ( )
virtual

Definition at line 75 of file PurehwVideoDiscoverOpenGLbase.cpp.

◆ PureHwVideoDiscoverOpenGLbase() [2/3]

PureHwVideoDiscoverOpenGLbase::PureHwVideoDiscoverOpenGLbase ( )
protected

Definition at line 165 of file PurehwVideoDiscoverOpenGLbase.cpp.

◆ PureHwVideoDiscoverOpenGLbase() [3/3]

PureHwVideoDiscoverOpenGLbase::PureHwVideoDiscoverOpenGLbase ( const PureHwVideoDiscoverOpenGLbase & )
protected

Definition at line 174 of file PurehwVideoDiscoverOpenGLbase.cpp.

Member Function Documentation

◆ CheckAgainstStandardMinValue()

void PureHwVideoDiscoverOpenGLbase::CheckAgainstStandardMinValue ( GLint value,
GLint stdValue )
static

Checks given value against given standard value.

Definition at line 36 of file PurehwVideoDiscoverOpenGLbase.cpp.

◆ CheckAgainstStandardMinValuef()

void PureHwVideoDiscoverOpenGLbase::CheckAgainstStandardMinValuef ( GLfloat value,
GLfloat stdValue )
static

Checks given value against given standard value.

Definition at line 45 of file PurehwVideoDiscoverOpenGLbase.cpp.

◆ CheckAgainstStandardRange()

void PureHwVideoDiscoverOpenGLbase::CheckAgainstStandardRange ( GLint val1,
GLint val2,
GLint stdVal1,
GLint stdVal2 )
static

Checks given range against given standard range.

Definition at line 54 of file PurehwVideoDiscoverOpenGLbase.cpp.

◆ discoverOpenGLavailability()

◆ getConsole()

CConsole & PureHwVideoDiscoverOpenGLbase::getConsole ( ) const

Returns access to console preset with logger module name as this class.

Intentionally not virtual, so the getConsole() in derived class should hide this instead of overriding.

Returns
Console instance used by this class.

Definition at line 85 of file PurehwVideoDiscoverOpenGLbase.cpp.

◆ getLoggerModuleName()

const char * PureHwVideoDiscoverOpenGLbase::getLoggerModuleName ( )
static

Returns the logger module name of this class.

Intentionally not virtual, so derived class should hide this instead of overriding. Not even private, so user can also access this from outside, for any reason like controlling log filtering per logger module name.

Returns
The logger module name of this class.

Definition at line 98 of file PurehwVideoDiscoverOpenGLbase.cpp.

◆ getVersion()

◆ isExtensionSupported() [1/2]

TPureBool PureHwVideoDiscoverOpenGLbase::isExtensionSupported ( const char * extname) const
protected

Is the given extension supported?

Returns
True if the given extension is supported (exported by the driver), false otherwise.

Definition at line 111 of file PurehwVideoDiscoverOpenGLbase.cpp.

◆ isExtensionSupported() [2/2]

TPureBool PureHwVideoDiscoverOpenGLbase::isExtensionSupported ( const char * extname,
const std::string & sVidFeaturesOGL,
const std::string & sVidFeaturesWGL )
static

Is the given extension supported?

Returns
True if the given extension name can be found in either sVidFeaturesOGL or sVidFeaturesWGL, false otherwise.

Definition at line 25 of file PurehwVideoDiscoverOpenGLbase.cpp.

◆ operator=()

PureHwVideoDiscoverOpenGLbase & PureHwVideoDiscoverOpenGLbase::operator= ( const PureHwVideoDiscoverOpenGLbase & )
protected

Definition at line 183 of file PurehwVideoDiscoverOpenGLbase.cpp.

◆ printExtensionSupported()

bool PureHwVideoDiscoverOpenGLbase::printExtensionSupported ( const char * title,
const char * name,
std::vector< void * > & functions )
protected

Checks if given extension is supported and prints the result.

Not only extension name string but extension-specific function pointers can be also checked.

Parameters
titleA human-readable short form title of the extension/feature.
nameThe extension name we are checking for.
functionsExtension-specific function pointers to be checked. This vector becomes empty after the call.
Returns
True if given extension name string is exported by driver and optionally specified function pointers are also valid, otherwise false.

Definition at line 138 of file PurehwVideoDiscoverOpenGLbase.cpp.

Member Data Documentation

◆ nVidVersionGLSLmaj

const TPureUInt& PureHwVideoDiscoverOpenGLbase::nVidVersionGLSLmaj
protected

GLSL major version.

Definition at line 69 of file PureHwVideoDiscoverOpenGLbase.h.

◆ nVidVersionGLSLmin

const TPureUInt& PureHwVideoDiscoverOpenGLbase::nVidVersionGLSLmin
protected

GLSL minor version.

Definition at line 70 of file PureHwVideoDiscoverOpenGLbase.h.

◆ sVidFeaturesOGL

const std::string& PureHwVideoDiscoverOpenGLbase::sVidFeaturesOGL
private

VGA features based on OGL.

Definition at line 85 of file PureHwVideoDiscoverOpenGLbase.h.

◆ sVidFeaturesWGL

const std::string& PureHwVideoDiscoverOpenGLbase::sVidFeaturesWGL
private

VGA features based on WGL.

Definition at line 86 of file PureHwVideoDiscoverOpenGLbase.h.

◆ sVidVersionOGL

const std::string& PureHwVideoDiscoverOpenGLbase::sVidVersionOGL
private

OpenGL version.

Definition at line 87 of file PureHwVideoDiscoverOpenGLbase.h.

◆ tmpRet

GLint PureHwVideoDiscoverOpenGLbase::tmpRet[6]
protected

Hold for glGetInteger...() results.

Definition at line 72 of file PureHwVideoDiscoverOpenGLbase.h.

◆ tmpRetf

GLfloat PureHwVideoDiscoverOpenGLbase::tmpRetf[2]
protected

Hold for glGetFloat...() results.

Definition at line 73 of file PureHwVideoDiscoverOpenGLbase.h.


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