TGlobalsGraphic Class Reference

This class manages all managers for graphic. More...

#include <GlobalsGraphic.h>

Inheritance diagram for TGlobalsGraphic:

Inheritance graph
[legend]
Collaboration diagram for TGlobalsGraphic:

Collaboration graph
[legend]
List of all members.

Static Public Member Functions

static BOOL Initialize (void *wnd)
 This class initialized all static components of this class.
static void Destroy (void)
 This class destroy all items (managers, renderer, etc.
static TRendererGetRenderer (void)
 Returns actual renderer.
static void SetTextureManager (TTextureManager *manager)
 Set texture manager.
static TTextureManagerGetTextureManager (void)
 Returns actual texture manager.
static void SetDeclarationManager (TDeclarationManager *manager)
 Set declaration manager.
static TDeclarationManagerGetDeclarationManager (void)
 Returns actual declaration manager.
static void SetMeshManager (TMeshManager *manager)
 Set mesh manager.
static TMeshManagerGetMeshManager (void)
 Returns actual mesh manager.
static void SetVertexShaderManager (TVertexShaderManager *manager)
 Set vertex shader manager.
static TVertexShaderManagerGetVertexShaderManager (void)
 Returns actual vertex shader manager.
static void SetPixelShaderManager (TPixelShaderManager *manager)
 Set pixel shader manager.
static TPixelShaderManagerGetPixelShaderManager (void)
 Returns actual pixel shader manager.

Detailed Description

This class manages all managers for graphic.

It is pure static class.

All GET method must always return non-NULL pointers.

You must initialize this class via TGlobalsGraphic::Initialize() and free all resources at end of application via TGlobalsGraphic::Destroy().

Warning:
Before working with class TGlobalsSystem and TGlobalMath classes should be initialized!!!
Todo:
add next managers

Definition at line 37 of file GlobalsGraphic.h.


Member Function Documentation

void TGlobalsGraphic::Destroy void   )  [static]
 

This class destroy all items (managers, renderer, etc.

) allocated inside this static class.

Note:
This method should be called at end of application before TGlobalsSystem and TGlobalsMath are destroyed.

Definition at line 131 of file GlobalsGraphic.cpp.

References TRendererCreatorHelper::Destroy(), TTextureManager::DestroyTextureManager(), TGlobalsSystem::GetLogFile(), NSMath::NSStdMath::log(), TRenderer::Release(), and TRUE.

Referenced by Initialize(), and WinMain().

Here is the call graph for this function:

TDeclarationManager * TGlobalsGraphic::GetDeclarationManager void   )  [inline, static]
 

Returns actual declaration manager.

Definition at line 112 of file GlobalsGraphic.h.

TMeshManager * TGlobalsGraphic::GetMeshManager void   )  [inline, static]
 

Returns actual mesh manager.

Definition at line 127 of file GlobalsGraphic.h.

TPixelShaderManager * TGlobalsGraphic::GetPixelShaderManager void   )  [inline, static]
 

Returns actual pixel shader manager.

Definition at line 156 of file GlobalsGraphic.h.

TRenderer * TGlobalsGraphic::GetRenderer void   )  [inline, static]
 

Returns actual renderer.

Definition at line 82 of file GlobalsGraphic.h.

Referenced by MainLoop().

TTextureManager * TGlobalsGraphic::GetTextureManager void   )  [inline, static]
 

Returns actual texture manager.

Definition at line 97 of file GlobalsGraphic.h.

TVertexShaderManager * TGlobalsGraphic::GetVertexShaderManager void   )  [inline, static]
 

Returns actual vertex shader manager.

Definition at line 141 of file GlobalsGraphic.h.

BOOL TGlobalsGraphic::Initialize void *  wnd  )  [static]
 

This class initialized all static components of this class.

Method returns TRUE only if all items are initialized properly.

If method returns FALSE all items inside are uninitialized!!!

Warning:
Before calling this method classes TGlobalsSystem and TGlobalsMath should be initialized properly!!!
Parameters:
wnd [in] pointer to window where renderer will be created In WINDOWS it is HWND type.

Definition at line 38 of file GlobalsGraphic.cpp.

References TTextureManager::CreateTextureManager(), Destroy(), FALSE, TGlobalsSystem::GetLogFile(), NSMath::NSStdMath::log(), and TRUE.

Referenced by WinMain().

Here is the call graph for this function:

void TGlobalsGraphic::SetDeclarationManager TDeclarationManager manager  )  [inline, static]
 

Set declaration manager.

Parameters:
manager [in] declaration manager

Definition at line 105 of file GlobalsGraphic.h.

void TGlobalsGraphic::SetMeshManager TMeshManager manager  )  [inline, static]
 

Set mesh manager.

Parameters:
manager [in] mesh manager

Definition at line 120 of file GlobalsGraphic.h.

void TGlobalsGraphic::SetPixelShaderManager TPixelShaderManager manager  )  [inline, static]
 

Set pixel shader manager.

Parameters:
manager [in] pixel shader manager

Definition at line 149 of file GlobalsGraphic.h.

void TGlobalsGraphic::SetTextureManager TTextureManager manager  )  [inline, static]
 

Set texture manager.

Parameters:
manager [in] texture manager

Definition at line 90 of file GlobalsGraphic.h.

void TGlobalsGraphic::SetVertexShaderManager TVertexShaderManager manager  )  [inline, static]
 

Set vertex shader manager.

Parameters:
manager [in] vertex shader manager

Definition at line 135 of file GlobalsGraphic.h.


The documentation for this class was generated from the following files:
Generated on Wed Nov 28 22:42:18 2007 for Joy4D by  doxygen 1.4.6-NO