Main Page   Compound List   File List   Compound Members   File Members  

CgPixelBind Class Reference

A single bind point for a pixel CgProgram. More...

#include <cgbinding.h>

List of all members.

Public Methods

 CgPixelBind (void)
 CgPixelBind (PixelBindingType b, unsigned int handle)
bool Activate (CgBinding *bindings, unsigned int program_handle, void *context1, void *context2)
 Passes the correct value down to the pixel shader program for a single dynamic bind point.


Detailed Description

A single bind point for a pixel CgProgram.

This class manages a single binding point between a particular instance of a Cg pixel shader fragment and remaps it to a logical VertexBindingType. The application must be able to provide the data that is needed for this bind point. For example the world*view*projection matrix.

See also:
enum PixelBindingType
Warning:
To minimize dependencies the internal bind point handle is case to a generic unsigned int
Author:
John W. Ratcliff
Date:
July 18, 2002


Constructor & Destructor Documentation

CgPixelBind::CgPixelBind void    [inline]
 

CgPixelBind::CgPixelBind PixelBindingType    b,
unsigned int    handle
[inline]
 


Member Function Documentation

bool CgPixelBind::Activate CgBinding   bindings,
unsigned int    program_handle,
void *    context1,
void *    context2
 

Passes the correct value down to the pixel shader program for a single dynamic bind point.

The application provides the current valid data item for this binding type. If the application returns a null pointer then the value is not updated unless it is an enumeated texture type. The binding types PBT_TEX0 through PBT_TEX7 are reserved for updating texture arguments.

Parameters:
bindings  A pointer to the base class that contains the virtual methods we need to retrieve data from the application.
program_handle  A handle to the CgShader program we are binding to.
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:
enum CgBindingType
Author:
John W. Ratcliff


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