Function Index Class Index

Set_Shader Class Reference

#include <hic_wrap.h>

List of all members.

Public Member Functions

const char * GetName ()
virtual void set_shader (HIC_Rendition const *nr, HIC_Driver_Shader_Type driver_type, HIC_Driver_Shader_Geometry_Type geom_type, HIC_Driver_Shader_Geometry_Bits geom_bits, long geometry)=0
 Set_Shader (HC_KEY key, const char *name, void *data=0)
virtual ~Set_Shader ()

Protected Member Functions

void * GetData ()


Detailed Description

The Set_Shader class is a base class used to define and set a callback at the "set shader" callback point during the HOOPS update cycle. To use this class, derive your own child class from it and implement the method set_shader. For more information on how to define and set callbacks as a C++/C/Java Developer, please see the HOOPS/3dGS Programming Guide.

Constructor & Destructor Documentation

Set_Shader::Set_Shader ( HC_KEY  key,
const char *  name,
void *  data = 0 
)

Constructs a Set_Shader Callback object.

Parameters:
key Key to the segment on which the callback is set.
name The name of the callback.
data Optional pointer to user data that can then be accessed from the callback.

virtual Set_Shader::~Set_Shader (  )  [virtual]

Deletes the callback object.


Member Function Documentation

void* Set_Shader::GetData (  )  [protected]

Returns the pointer to the user data that may have been provided when the callback was created.

const char* Set_Shader::GetName (  ) 

Returns the name of the callback.

virtual void Set_Shader::set_shader ( HIC_Rendition const *  nr,
HIC_Driver_Shader_Type  driver_type,
HIC_Driver_Shader_Geometry_Type  geom_type,
HIC_Driver_Shader_Geometry_Bits  geom_bits,
long  geometry 
) [pure virtual]

The function you implement for your callback.

Parameters:
nr A pointer to a const HIC_Rendition
driver_type A flag holding a HIC_Driver_Shader_Type bit
geom_type A int flag holding a HIC_Driver_Shader_Geometry_Type bit
geom_type A int flag holding a HIC_Driver_Shader_Geometry_Bits bit
geometry A pointer to a const HIC_Geometry


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