Dali 3D User Interface Engine
List of all members | Public Member Functions | Private Attributes
Dali::Internal::CustomUniform Class Reference

Helper class to handle the index of the custom uniforms. More...

#include <custom-uniform.h>

Public Member Functions

 CustomUniform ()
 Creates a custom uniform. More...
 
 ~CustomUniform ()
 Destructor, nonvirtual as not a base class. More...
 
void Initialize (Program &program, const char *name)
 Initializes the custom uniform. More...
 
void Reset ()
 Resets the custom uniform in case program was changed. More...
 
int GetUniformLocation (Program &program, const char *name)
 Gets the uniform location for custom uniform. More...
 

Private Attributes

unsigned int mCacheIndex
 internal cache index More...
 

Detailed Description

Helper class to handle the index of the custom uniforms.

Definition at line 35 of file custom-uniform.h.

Constructor & Destructor Documentation

Dali::Internal::CustomUniform::CustomUniform ( )

Creates a custom uniform.

Definition at line 30 of file custom-uniform.cpp.

Dali::Internal::CustomUniform::~CustomUniform ( )

Destructor, nonvirtual as not a base class.

Definition at line 35 of file custom-uniform.cpp.

Member Function Documentation

int Dali::Internal::CustomUniform::GetUniformLocation ( Program program,
const char *  name 
)

Gets the uniform location for custom uniform.

Parameters
programto use
nameof the uniform

Definition at line 49 of file custom-uniform.cpp.

References Dali::Internal::Program::GetUniformLocation(), Initialize(), and mCacheIndex.

Here is the call graph for this function:

void Dali::Internal::CustomUniform::Initialize ( Program program,
const char *  name 
)

Initializes the custom uniform.

Should be called only once

Parameters
programto use
nameof the uniform

Definition at line 39 of file custom-uniform.cpp.

References mCacheIndex, and Dali::Internal::Program::RegisterUniform().

Referenced by GetUniformLocation().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::CustomUniform::Reset ( )

Resets the custom uniform in case program was changed.

Definition at line 44 of file custom-uniform.cpp.

References mCacheIndex.

Member Data Documentation

unsigned int Dali::Internal::CustomUniform::mCacheIndex
private

internal cache index

Definition at line 70 of file custom-uniform.h.

Referenced by GetUniformLocation(), Initialize(), and Reset().


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