Main Page   Compound List   File List   Compound Members   File Members  

CgVertexShader Class Reference

A single instance of a vertexshader for a specific vertex format. More...

#include <cgbinding.h>

List of all members.

Public Methods

 CgVertexShader (int guid, VertexBindingFormat format, unsigned int handle)
int GetGuid (void) const
void AddBinding (VertexBindingType type, unsigned int bind_handle)
bool Activate (void)
 Make this vertex 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 vertex shader program.


Detailed Description

A single instance of a vertexshader for a specific vertex format.

This class represents a single instance of a vertex program for a specific vertex format.

See also:
enum VertexBindingFormat , class CgVertexBind
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

CgVertexShader::CgVertexShader int    guid,
VertexBindingFormat    format,
unsigned int    handle
[inline]
 


Member Function Documentation

bool CgVertexShader::Activate void   
 

Make this vertex shader program active on the hardware.

Author:
John W. Ratcliff

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

Applies all of the dynamic bindings between the application and the vertex 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.

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 CgVertexBind
Author:
John W. Ratcliff

void CgVertexShader::AddBinding VertexBindingType    type,
unsigned int    bind_handle
[inline]
 

int CgVertexShader::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