ScummVM API documentation
hpl::iGpuProgram Class Referenceabstract
Inheritance diagram for hpl::iGpuProgram:
hpl::iResourceBase hpl::iGLStateProgram

Public Member Functions

 iGpuProgram (const tString &asName)
 
virtual void Bind ()=0
 
virtual void UnBind ()=0
 
virtual bool SetFloat (const tString &asName, float afX)=0
 
bool SetVec2f (const tString &asName, const cVector2f avVec)
 
virtual bool SetVec2f (const tString &asName, float afX, float afY)=0
 
bool SetVec3f (const tString &asName, const cVector3f &avVec)
 
bool SetColor3f (const tString &asName, const cColor &aCol)
 
virtual bool SetVec3f (const tString &asName, float afX, float afY, float afZ)=0
 
bool SetColor4f (const tString &asName, const cColor &aCol)
 
virtual bool SetVec4f (const tString &asName, float afX, float afY, float afZ, float afW)=0
 
virtual bool SetMatrixf (const tString &asName, const cMatrixf &mMtx)=0
 
virtual bool SetMatrixf (const tString &asName, eGpuProgramMatrix mType, eGpuProgramMatrixOp mOp)=0
 
- Public Member Functions inherited from hpl::iResourceBase
 iResourceBase (tString asName, unsigned long alPrio)
 
virtual bool reload ()=0
 
virtual void unload ()=0
 
virtual void destroy ()=0
 
tString GetName ()
 
unsigned long GetHandle ()
 
void SetHandle (unsigned long alHandle)
 
tString GetFilePath ()
 
unsigned long GetTime ()
 
unsigned long GetPrio ()
 
unsigned long GetSize ()
 
void SetLogDestruction (bool abX)
 
unsigned int GetUserCount ()
 
void IncUserCount ()
 
void DecUserCount ()
 
bool HasUsers ()
 

Static Public Member Functions

static void SetLogDebugInformation (bool abX)
 
- Static Public Member Functions inherited from hpl::iResourceBase
static bool GetLogCreateAndDelete ()
 
static void SetLogCreateAndDelete (bool abX)
 

Static Protected Attributes

static bool mbDebugInfo
 
- Static Protected Attributes inherited from hpl::iResourceBase
static bool mbLogCreateAndDelete
 

Additional Inherited Members

- Protected Attributes inherited from hpl::iResourceBase
unsigned int mlPrio
 
unsigned long mlTime
 
unsigned long mlSize
 
unsigned int mlUserCount
 
unsigned long mlHandle
 
tString msName
 
tString msFilePath
 
bool mbLogDestruction
 

Member Function Documentation

◆ Bind()

virtual void hpl::iGpuProgram::Bind ( )
pure virtual

Bind the program to the GPU

Implemented in hpl::iGLStateProgram.

◆ UnBind()

virtual void hpl::iGpuProgram::UnBind ( )
pure virtual

Unbind the program to the GPU

Implemented in hpl::iGLStateProgram.


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