Back to index

nux  3.0.0
Public Member Functions
nux::TGLResourceFactory< T, U > Class Template Reference

#include <GLResourceManager.h>

Inheritance diagram for nux::TGLResourceFactory< T, U >:
Inheritance graph
[legend]
Collaboration diagram for nux::TGLResourceFactory< T, U >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TGLResourceFactory (NObjectType *Type)
 Constructor.
virtual ~TGLResourceFactory (void)
virtual CachedResourceDataBuildResource (NResourceSet *ResourceManager, ResourceData *Resource)
 Create a new resource.
const NObjectTypeType () const
bool BuildsThisResource (ResourceData *Resource)
 Returns true if the given ResourceData is created by this factory.

Detailed Description

template<typename T, typename U>
class nux::TGLResourceFactory< T, U >

Definition at line 195 of file GLResourceManager.h.


Constructor & Destructor Documentation

template<typename T , typename U >
nux::TGLResourceFactory< T, U >::TGLResourceFactory ( NObjectType Type) [inline]

Constructor.

Parameters:
type- resource class type to associate w/ this factory.

Definition at line 202 of file GLResourceManager.h.

template<typename T , typename U >
virtual nux::TGLResourceFactory< T, U >::~TGLResourceFactory ( void  ) [inline, virtual]

Definition at line 206 of file GLResourceManager.h.

    {}

Member Function Documentation

template<typename T , typename U >
virtual CachedResourceData* nux::TGLResourceFactory< T, U >::BuildResource ( NResourceSet ResourceManager,
ResourceData Resource 
) [inline, virtual]

Create a new resource.

Create a new resource for the given ResourceData.

Parameters:
ResourceManagerThe resource manager.
ResourceResource to build and cache.
Returns:
The built resource.

Reimplemented from nux::NResourceFactory.

Definition at line 215 of file GLResourceManager.h.

    {
      return new U(ResourceManager, (T *)Resource);
    }
bool nux::NResourceFactory::BuildsThisResource ( ResourceData Resource) [inline, inherited]

Returns true if the given ResourceData is created by this factory.

Parameters:
Resource- the resource in question.

Definition at line 179 of file GLResourceManager.h.

    {
      return Resource->Type().IsObjectType(Type());
    }

Here is the call graph for this function:

Here is the caller graph for this function:

const NObjectType& nux::NResourceFactory::Type ( ) const [inline, inherited]

Definition at line 170 of file GLResourceManager.h.

    {
      return *m_ResourceType;
    }

Here is the caller graph for this function:


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