Main Page | Namespace List | Class List | Directories | File List | Namespace Members | Class Members | File Members

IShading Class Reference

General functionality for GPU bindings. More...

#include <ishading.h>

List of all members.

Public Member Functions

void readbackFBO ()
 Readback FBO (debug purpose).
void createFBO ()
 Create FBO.
CGprogram * getVpProgram ()
 Get VP program.
CGprogram * getFpProgram ()
 Get FP program.

Private Member Functions

 IShading ()
 Constructor, default.
 ~IShading ()
 Destructor.
void activate () const
 Activate for rendering / computing.
void activateFBO () const
 Activate FBO as render target.
void deactivate () const
 Deactivate after rendering.
void deactivateFBO () const
 Deactivate FBO.

Static Private Member Functions

static void checkCgError (const std::string &msg="")
 Check for Cg Errors.
static void loadProgram (CGcontext &ctx, CGprofile &profile, CGprogram &prog, const std::string &path)
 Load a shader program.

Private Attributes

CGprogram fp_prog
CGprogram vp_prog
CGparameter mv
CGparameter mvp
CGparameter p
CGparameter plPos
GLuint fbo

Static Private Attributes

static CGcontext ctx
 Variables, static.
static CGprofile fp_profile
static CGprofile vp_profile

Friends

class ISphereShading
class IQuadricShading
class IMaterial


Detailed Description

General functionality for GPU bindings.

module : Util

project : icaster

description: GPU binding


Member Data Documentation

CGcontext IShading::ctx [static, private]
 

Variables, static.

Parameters:
ctx handle to the Cg context

GLuint IShading::fbo [private]
 

Parameters:
fbo handle to FBO (debug purpose)

CGprogram IShading::fp_prog [private]
 

Parameters:
fp_prog handle to the fragment shader

CGparameter IShading::mv [private]
 

Parameters:
mv Model-View matrix

CGparameter IShading::mvp [private]
 

Parameters:
mvp Model-View-Projection matrix

CGparameter IShading::p [private]
 

Parameters:
p Projection matrix

CGparameter IShading::plPos [private]
 

Parameters:
plPos is the position of the point light source


The documentation for this class was generated from the following files:
Generated on Sat Dec 31 18:07:49 2005 for ICaster by  doxygen 1.4.4