Go to the documentation of this file.
28 #ifndef __GpuProgramUsage_H__
29 #define __GpuProgramUsage_H__
virtual const String & getName(void) const
Gets resource name.
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
const String & getProgramName(void) const
Gets the program being used.
void setParameters(GpuProgramParametersSharedPtr params)
Sets the program parameters that should be used; because parameters can be shared between multiple us...
GpuProgramUsage(const GpuProgramUsage &rhs, Pass *newparent)
Copy constructor.
GpuProgramUsage(GpuProgramType gptype, Pass *parent)
Default constructor.
void loadingComplete(Resource *prog)
Called whenever the resource finishes loading.
GpuProgramType getType(void) const
Gets the type of program we're trying to link to.
bool mRecreateParams
Whether to recreate parameters next load.
Class defining a single pass of a Technique (of a Material), i.e.
void recreateParameters()
const GpuProgramPtr & getProgram() const
Gets the program being used.
GpuProgramType
Enumerates the types of programs which can run on the GPU.
void setProgramName(const String &name, bool resetParams=true)
Sets the name of the program to use.
GpuProgramPtr mProgram
The program link.
Abstract class representing a loadable resource (e.g.
GpuProgramParametersSharedPtr getParameters(void)
Gets the parameters being used here.
GpuProgramParametersSharedPtr mParameters
Program parameters.
void unloadingComplete(Resource *prog)
Called whenever the resource has been unloaded.
void _unload(void)
Unload this usage.
This class makes the usage of a vertex and fragment programs (low-level or high-level),...
size_t calculateSize(void) const
void _load(void)
Load this usage (and ensure program is loaded)
void setProgram(GpuProgramPtr &prog)
Sets the program to use.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.