Main Page   Compound List   File List   Compound Members   File Members  

CgVertexBind Class Reference

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

#include <cgbinding.h>

List of all members.

Public Methods

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


Detailed Description

A single bind point for a vertex CgProgram.

This class manages a single binding point between a particular instance of a Cg vertex program 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 VertexBindingType
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

CgVertexBind::CgVertexBind void    [inline]
 

CgVertexBind::CgVertexBind VertexBindingType    b,
unsigned int    handle
[inline]
 


Member Function Documentation

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

Passes the correct value down to the vertex 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.

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