GFXGLCardProfiler Class Reference

#include <gfxGLCardProfiler.h>

Inheritance diagram for GFXGLCardProfiler:

Inheritance graph
[legend]
List of all members.

Detailed Description

A note on workarounds - The following settings are used exclusively to work around driver bugs: GL::Workaround::needsExplicitGenerateMipmap GL::Workaround::X1600DepthBufferCopy GL::Workaround::HD2600DepthBufferCopy If you find that you need to work around additional driver bugs, add a new setting of the form GL::Workaround::<name> and set it to false in GFXGLCardProfiler::setupCardCapabilities() Enclose your workaround code in if(GFX->getCardProfiler()->queryProfile("GL::Workaround::<name>")) { <workaround> } Remember to set the work around to true in the card profile script!


Public Member Functions

void init ()
 Set load script files and generally initialize things.

Protected Member Functions

virtual const StringgetRendererString () const
virtual void setupCardCapabilities ()
virtual bool _queryCardCap (const String &query, U32 &foundResult)
 Implementation specific query code.
virtual bool _queryFormat (const GFXFormat fmt, const GFXTextureProfile *profile, bool &inOutAutogenMips)

Private Types

typedef GFXCardProfiler Parent

Private Attributes

String mRendererString


Member Typedef Documentation


Member Function Documentation

void GFXGLCardProfiler::init (  )  [virtual]

Set load script files and generally initialize things.

Implements GFXCardProfiler.

virtual const String& GFXGLCardProfiler::getRendererString (  )  const [inline, protected, virtual]

Implements GFXCardProfiler.

virtual void GFXGLCardProfiler::setupCardCapabilities (  )  [protected, virtual]

Implements GFXCardProfiler.

virtual bool GFXGLCardProfiler::_queryCardCap ( const String query,
U32 foundResult 
) [protected, virtual]

Implementation specific query code.

This function is meant to be overridden by the specific implementation class.

Some query strings are handled by the external implementation while others must be done by the specific implementation. This is given first chance to return a result, then the generic rules are applied.

Parameters:
query Capability being queried.
foundResult Result to return to the caller. If the function returns true then this value is returned as the result of the query.

Implements GFXCardProfiler.

virtual bool GFXGLCardProfiler::_queryFormat ( const GFXFormat  fmt,
const GFXTextureProfile profile,
bool inOutAutogenMips 
) [protected, virtual]

Implements GFXCardProfiler.


Member Data Documentation