pfISLTexCoordData(3pf) OpenGL Performer 3.2.2 libpr C++ Reference Pages
NAMEpfISLTexCoordData - Data wrapper for shader callbacks
FUNCTION SPECIFICATION
#include <Performer/pf/pfISL.h>
void * pfISLTexCoordData::borrowMemory(int size);
islAppearance* pfISLTexCoordData::getAppearance();
pfGeoSet* pfISLTexCoordData::getGSet();
pfMatrix* pfISLTexCoordData::getModelview();
pfMatrix* pfISLTexCoordData::getViewmat();
PARENT CLASS FUNCTIONS
The OpenGL Performer class pfGeoSet is derived from the parent class
pfObject, so each of these member functions of class pfObject are also
directly usable with objects of class pfGeoSet. This is also true for
ancestor classes of class pfObject.
void* pfObject::operator new(size_t);
void* pfObject::operator new(size_t, void *arena);
void* pfObject::operator new(size_t, pfFluxMemory *fmem);
void pfObject::setUserData(void *data);
void pfObject::setUserData(int slot, void *data);
void* pfObject::getUserData(pfObject *obj);
void* pfObject::getUserData(pfObject *obj, int slot);
int pfObject::getNumUserData();
Since the class pfObject is itself derived from the parent class
pfMemory, objects of class pfGeoSet can also be used with these functions
designed for objects of class pfMemory.
void* pfMemory::getData(const void *ptr);
pfType * pfMemory::getType();
int pfMemory::isOfType(pfType *type);
int pfMemory::isExactType(pfType *type);
const char * pfMemory::getTypeName();
int pfMemory::copy(pfMemory *src);
int pfMemory::compare(const pfMemory *mem);
void pfMemory::print(uint which, uint verbose, char *prefix,
FILE *file);
int pfMemory::getArena(void *ptr);
void* pfMemory::getArena();
int pfMemory::ref();
int pfMemory::unref();
int pfMemory::unrefDelete();
Page 1
pfISLTexCoordData(3pf) OpenGL Performer 3.2.2 libpr C++ Reference Pages
int pfMemory::unrefGetRef();
int pfMemory::getRef();
int pfMemory::checkDelete();
int pfMemory::isFluxed();
void * pfMemory::getArena();
int pfMemory::getSize();
DESCRIPTION
This is a utility class that is passed as a parameter to callback
functions registered with pfShaderTexCoordFunc and
pfShaderTexComputeFunc. It is used to wrap a set of handy data to have
when performing the operation requested by the callback.
pfISLTexCoordData::borrowMemory is used to borrow memory which will be
used for rendering the specified pfGeoSet in the current frame. This
memory will be reclaimed by Performer on the next frame and it is very
quick to allocate and deallocate. An example of where to use it would be
for the texture coordinate array that Performer requests for rendering a
particular pfGeoSet.
pfISLTexCoordData::getGSet returns the pfGeoSet that is currently being
shaded.
pfISLTexCoordData::getAppearance returns the islAppearance that is
currently active.
pfISLTexCoordData::getModelview returns the composite matrix of all
transformations between the current pfGeoSet and the top of the scene
graph.
pfISLTexCoordData::getViewmat returns the current viewing matrix that
corresponds to the current pfChannel's eye position.
Page 2