Main Page   Compound List   File List   Compound Members   File Members  

CgPixelShader Class Reference

A single instance of a PixelShader. More...

#include <cgbinding.h>

List of all members.

Public Methods

 CgPixelShader (int guid, unsigned int handle)
int GetGuid (void) const
void AddBinding (PixelBindingType type, unsigned int bind_handle)
bool Activate (void)
 Make this pixel shader program active on the hardware.

bool ActivateBindings (CgBinding *bindings, void *context1, void *context2)
 Applies all of the dynamic bindings between the application and the pixel shader program.


Detailed Description

A single instance of a PixelShader.

This class represents a single instance of a pixel shader program.

Warning:
To minimize dependencies the internal Cg program handle is case to an unsigned int
Author:
John W. Ratcliff
Date:
July 18, 2002


Constructor & Destructor Documentation

CgPixelShader::CgPixelShader int    guid,
unsigned int    handle
[inline]
 


Member Function Documentation

bool CgPixelShader::Activate void   
 

Make this pixel shader program active on the hardware.

Author:
John W. Ratcliff

bool CgPixelShader::ActivateBindings CgBinding   bindings,
void *    context1,
void *    context2
 

Applies all of the dynamic bindings between the application and the pixel shader program.

This method iterates through all of the run-time bindings and performs a callback for each to the application to get the current data values.

Parameters:
bindings  A pointer to the base class that contains the virtual methods we need to retrieve data from the application.
context1  An optional pointer provided by the application to help resolve any contextual requirements.
context2  A second optional pointer provided by the application to resolve contextual requirements.
See also:
class CgPixelBind
Author:
John W. Ratcliff

void CgPixelShader::AddBinding PixelBindingType    type,
unsigned int    bind_handle
[inline]
 

int CgPixelShader::GetGuid void    const [inline]
 


The documentation for this class was generated from the following files:
Generated on Sun Jul 21 13:35:16 2002 for CgBinding by doxygen1.2.17