Static Public Member Functions

CL_SharedGCData Class Reference
[clanDisplay Display]

Shared Graphic Context Data. More...

#include <shared_gc_data.h>

List of all members.

Static Public Member Functions

static void add_disposable (CL_DisposableObject *disposable)
 Add disposable.
static void add_ref ()
 Add ref.
static bool add_texture (CL_Texture &texture, const CL_String &filename, const CL_VirtualDirectory &virtual_directory=CL_VirtualDirectory(), const CL_ImageImportDescription &import_desc=CL_ImageImportDescription())
 Add texture to the shared texture cache.
static void dispose_objects ()
 Dispose objects.
static CL_Signal_v0func_gc_destruction_imminent ()
 Func gc destruction imminent.
static std::vector
< CL_GraphicContextProvider * > & 
get_gc_providers ()
static CL_SharedGCDataget_instance ()
 Get Instance.
static CL_Texture load_texture (CL_GraphicContext &gc, const CL_String &filename, const CL_VirtualDirectory &virtual_directory=CL_VirtualDirectory(), const CL_ImageImportDescription &import_desc=CL_ImageImportDescription())
 Load texture.
static void release_ref ()
 Release ref.
static void remove_disposable (CL_DisposableObject *disposable)
 Remove disposable.
static void unload_all_textures ()
 Unload all textures.
static void unload_texture (const CL_String &filename, const CL_VirtualDirectory &virtual_directory=CL_VirtualDirectory(), const CL_ImageImportDescription &import_desc=CL_ImageImportDescription())
 Unload texture.

Detailed Description

Shared Graphic Context Data.


Member Function Documentation

static void CL_SharedGCData::add_disposable ( CL_DisposableObject disposable  )  [static]

Add disposable.

Parameters:
disposable = Disposable Object
static void CL_SharedGCData::add_ref (  )  [static]

Add ref.

static bool CL_SharedGCData::add_texture ( CL_Texture texture,
const CL_String filename,
const CL_VirtualDirectory virtual_directory = CL_VirtualDirectory(),
const CL_ImageImportDescription import_desc = CL_ImageImportDescription() 
) [static]

Add texture to the shared texture cache.

Parameters:
texture = Texture
filename = String
virtual_directory = Virtual Directory
import_desc = Import Description
Returns:
True if the texture was added successfully, false if it's already in the cache
static void CL_SharedGCData::dispose_objects (  )  [static]

Dispose objects.

static CL_Signal_v0& CL_SharedGCData::func_gc_destruction_imminent (  )  [static]

Func gc destruction imminent.

Returns:
Signal_v0
static std::vector<CL_GraphicContextProvider*>& CL_SharedGCData::get_gc_providers (  )  [static]
static CL_SharedGCData* CL_SharedGCData::get_instance (  )  [static]

Get Instance.

Returns:
instance
static CL_Texture CL_SharedGCData::load_texture ( CL_GraphicContext gc,
const CL_String filename,
const CL_VirtualDirectory virtual_directory = CL_VirtualDirectory(),
const CL_ImageImportDescription import_desc = CL_ImageImportDescription() 
) [static]

Load texture.

Parameters:
gc = Graphic Context
filename = String
virtual_directory = Virtual Directory
Returns:
Texture
static void CL_SharedGCData::release_ref (  )  [static]

Release ref.

static void CL_SharedGCData::remove_disposable ( CL_DisposableObject disposable  )  [static]

Remove disposable.

Parameters:
disposable = Disposable Object
static void CL_SharedGCData::unload_all_textures (  )  [static]

Unload all textures.

static void CL_SharedGCData::unload_texture ( const CL_String filename,
const CL_VirtualDirectory virtual_directory = CL_VirtualDirectory(),
const CL_ImageImportDescription import_desc = CL_ImageImportDescription() 
) [static]

Unload texture.

Parameters:
filename = String
virtual_directory = Virtual Directory

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