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

Detailed Description

Definition at line 24 of file PurehwInfo.cpp.

+ Inheritance diagram for PureHwInfoImpl:

Public Member Functions

CConsole & getConsole () const
 Returns access to console preset with logger module name as this class.
 
void Initialize (HGLRC rc, HDC wnd_dc, TPureUInt nResX, TPureUInt nResY, TPureInt nColorBits, TPureInt nDepthBits, TPureInt nStencilBits, TPureInt nFSAAlevel)
 Sets members to real values within the singleton instance.
 
void Deinitialize ()
 Deinitializes the singleton instance.
 
TPureBool isInitialized () const
 Returns whether the singleton instance is successfully initialized.
 
PureHwCentralProcessorgetCentralProcessor () const
 Gives access to PureHwCentralProcessor instance.
 
PureHwSystemMemorygetMemory () const
 Gives access to PureHwSystemMemory instance.
 
PureHwVideogetVideo () const
 Gives access to PureHwVideo instance.
 
PureHwAudiogetAudio () const
 Gives access to PureHwAudio instance.
 
void WriteStats ()
 Writes statistics to the console.
 
- Public Member Functions inherited from PureHwInfo

Static Public Member Functions

static PureHwInfoImplget ()
 Gets the singleton instance.
 
static const char * getLoggerModuleName ()
 Returns the logger module name of this class.
 
- Static Public Member Functions inherited from PureHwInfo
static PureHwInfoget ()
 Gets the singleton instance.
 

Private Member Functions

 PureHwInfoImpl ()
 Sets members to default values.
 
 PureHwInfoImpl (const PureHwInfoImpl &)
 
PureHwInfoImploperator= (const PureHwInfoImpl &)
 
virtual ~PureHwInfoImpl ()
 
void PreInitialize ()
 Preinitializes members.
 

Private Attributes

PureHwCentralProcessorhwCentralProcessor
 
PureHwSystemMemoryhwMemory
 
PureHwVideohwVideo
 
PureHwAudiohwAudio
 

Static Private Attributes

static PureHwInfoImpl hwInfoInstance
 
static TPureBool bInitialized = false
 Is the singleton instance initialized?
 

Constructor & Destructor Documentation

◆ PureHwInfoImpl() [1/2]

PureHwInfoImpl::PureHwInfoImpl ( )
private

Sets members to default values.

Definition at line 285 of file PurehwInfo.cpp.

◆ PureHwInfoImpl() [2/2]

PureHwInfoImpl::PureHwInfoImpl ( const PureHwInfoImpl & )
private

Definition at line 295 of file PurehwInfo.cpp.

◆ ~PureHwInfoImpl()

PureHwInfoImpl::~PureHwInfoImpl ( )
privatevirtual

Definition at line 311 of file PurehwInfo.cpp.

Member Function Documentation

◆ Deinitialize()

void PureHwInfoImpl::Deinitialize ( )
virtual

Deinitializes the singleton instance.

Deinitializes PureHwCentralProcessor, PurehwMemory, PureHwVideo and PureHwAudio instances.

Implements PureHwInfo.

Definition at line 171 of file PurehwInfo.cpp.

◆ get()

PureHwInfoImpl & PureHwInfoImpl::get ( )
static

Gets the singleton instance.

Definition at line 85 of file PurehwInfo.cpp.

◆ getAudio()

PureHwAudio & PureHwInfoImpl::getAudio ( ) const
virtual

Gives access to PureHwAudio instance.

Implements PureHwInfo.

Definition at line 224 of file PurehwInfo.cpp.

◆ getCentralProcessor()

PureHwCentralProcessor & PureHwInfoImpl::getCentralProcessor ( ) const
virtual

Gives access to PureHwCentralProcessor instance.

Implements PureHwInfo.

Definition at line 197 of file PurehwInfo.cpp.

◆ getConsole()

CConsole & PureHwInfoImpl::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 97 of file PurehwInfo.cpp.

◆ getLoggerModuleName()

const char * PureHwInfoImpl::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 110 of file PurehwInfo.cpp.

◆ getMemory()

PureHwSystemMemory & PureHwInfoImpl::getMemory ( ) const
virtual

Gives access to PureHwSystemMemory instance.

Implements PureHwInfo.

Definition at line 206 of file PurehwInfo.cpp.

◆ getVideo()

PureHwVideo & PureHwInfoImpl::getVideo ( ) const
virtual

Gives access to PureHwVideo instance.

Implements PureHwInfo.

Definition at line 215 of file PurehwInfo.cpp.

◆ Initialize()

void PureHwInfoImpl::Initialize ( HGLRC rc,
HDC wnd_dc,
TPureUInt nResX,
TPureUInt nResY,
TPureInt nColorBits,
TPureInt nDepthBits,
TPureInt nStencilBits,
TPureInt nFSAAlevel )
virtual

Sets members to real values within the singleton instance.

Initializes PureHwCentralProcessor, PurehwMemory, PureHwVideo and PureHwAudio instances.

Implements PureHwInfo.

Definition at line 120 of file PurehwInfo.cpp.

◆ isInitialized()

TPureBool PureHwInfoImpl::isInitialized ( ) const
virtual

Returns whether the singleton instance is successfully initialized.

Implements PureHwInfo.

Definition at line 188 of file PurehwInfo.cpp.

◆ operator=()

PureHwInfoImpl & PureHwInfoImpl::operator= ( const PureHwInfoImpl & )
private

Definition at line 305 of file PurehwInfo.cpp.

◆ PreInitialize()

void PureHwInfoImpl::PreInitialize ( )
private

Preinitializes members.

Definition at line 320 of file PurehwInfo.cpp.

◆ WriteStats()

void PureHwInfoImpl::WriteStats ( )
virtual

Writes statistics to the console.

Implements PureHwInfo.

Definition at line 233 of file PurehwInfo.cpp.

Member Data Documentation

◆ bInitialized

TPureBool PureHwInfoImpl::bInitialized = false
staticprivate

Is the singleton instance initialized?

Definition at line 55 of file PurehwInfo.cpp.

◆ hwAudio

PureHwAudio& PureHwInfoImpl::hwAudio
private

Definition at line 62 of file PurehwInfo.cpp.

◆ hwCentralProcessor

PureHwCentralProcessor& PureHwInfoImpl::hwCentralProcessor
private

Definition at line 59 of file PurehwInfo.cpp.

◆ hwInfoInstance

PureHwInfoImpl PureHwInfoImpl::hwInfoInstance
staticprivate

Definition at line 54 of file PurehwInfo.cpp.

◆ hwMemory

PureHwSystemMemory& PureHwInfoImpl::hwMemory
private

Definition at line 60 of file PurehwInfo.cpp.

◆ hwVideo

PureHwVideo& PureHwInfoImpl::hwVideo
private

Definition at line 61 of file PurehwInfo.cpp.


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