Dali 3D User Interface Engine
List of all members | Public Member Functions | Private Member Functions
Dali::Internal::ProgramCache Class Referenceabstract

This class is interface for caching Program objects. More...

#include <program-cache.h>

Inheritance diagram for Dali::Internal::ProgramCache:
Inheritance graph
[legend]

Public Member Functions

 ProgramCache ()
 Constructor. More...
 
virtual ~ProgramCache ()
 Destructor, virtual as this is an interface. More...
 
virtual
Integration::GlAbstraction
GetGlAbstraction ()=0
 
virtual ProgramGetProgram (size_t shaderHash)=0
 Get the program from cache with hash. More...
 
virtual void AddProgram (size_t shaderHash, Program *program)=0
 Add a program to cache. More...
 
virtual ProgramGetCurrentProgram ()=0
 Get currently bound program. More...
 
virtual void SetCurrentProgram (Program *program)=0
 Set the currently bound program. More...
 
virtual bool IsBinarySupported ()=0
 
virtual GLenum ProgramBinaryFormat ()=0
 
virtual void StoreBinary (Internal::ShaderDataPtr programData)=0
 

Private Member Functions

 ProgramCache (const ProgramCache &rhs)
 
ProgramCacheoperator= (const ProgramCache &rhs)
 

Detailed Description

This class is interface for caching Program objects.

Definition at line 35 of file program-cache.h.

Constructor & Destructor Documentation

Dali::Internal::ProgramCache::ProgramCache ( )
inline

Constructor.

Definition at line 42 of file program-cache.h.

virtual Dali::Internal::ProgramCache::~ProgramCache ( )
inlinevirtual

Destructor, virtual as this is an interface.

Definition at line 48 of file program-cache.h.

Dali::Internal::ProgramCache::ProgramCache ( const ProgramCache rhs)
private

Member Function Documentation

virtual void Dali::Internal::ProgramCache::AddProgram ( size_t  shaderHash,
Program program 
)
pure virtual

Add a program to cache.

Parameters
shaderHashof the program
programto add

Implemented in Dali::Internal::ProgramController.

Referenced by Dali::Internal::Program::New().

Here is the caller graph for this function:

virtual Program* Dali::Internal::ProgramCache::GetCurrentProgram ( )
pure virtual

Get currently bound program.

Returns
program that is currently used

Implemented in Dali::Internal::ProgramController.

Referenced by Dali::Internal::Program::IsUsed(), Dali::Internal::Program::Unload(), and Dali::Internal::Program::Use().

Here is the caller graph for this function:

virtual Integration::GlAbstraction& Dali::Internal::ProgramCache::GetGlAbstraction ( )
pure virtual
Returns
GlAbstraction

Implemented in Dali::Internal::ProgramController.

virtual Program* Dali::Internal::ProgramCache::GetProgram ( size_t  shaderHash)
pure virtual

Get the program from cache with hash.

Parameters
shaderHashto use
Returns
program

Implemented in Dali::Internal::ProgramController.

Referenced by Dali::Internal::Program::New().

Here is the caller graph for this function:

virtual bool Dali::Internal::ProgramCache::IsBinarySupported ( )
pure virtual
Returns
true if program binaries are supported

Implemented in Dali::Internal::ProgramController.

Referenced by Dali::Internal::Program::Load().

Here is the caller graph for this function:

ProgramCache& Dali::Internal::ProgramCache::operator= ( const ProgramCache rhs)
private
virtual GLenum Dali::Internal::ProgramCache::ProgramBinaryFormat ( )
pure virtual
Returns
the binary format to use

Implemented in Dali::Internal::ProgramController.

Referenced by Dali::Internal::Program::Load().

Here is the caller graph for this function:

virtual void Dali::Internal::ProgramCache::SetCurrentProgram ( Program program)
pure virtual

Set the currently bound program.

Parameters
programthat is used

Implemented in Dali::Internal::ProgramController.

Referenced by Dali::Internal::Program::Unload(), and Dali::Internal::Program::Use().

Here is the caller graph for this function:

virtual void Dali::Internal::ProgramCache::StoreBinary ( Internal::ShaderDataPtr  programData)
pure virtual
Parameters
programDatato store/save

Implemented in Dali::Internal::ProgramController.

Referenced by Dali::Internal::Program::Load().

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
Dali Docs Home
Read more about Dali