Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions

vl::ProjViewTransfCallback Class Reference

Vitual class used as a callback to update the state of the projection, view and transform matrices of a GLSLProgram or fixed function pipeline. More...

#include <ProjViewTransfCallback.hpp>

Inheritance diagram for vl::ProjViewTransfCallback:
vl::Object vl::ProjViewTransfCallbackStandard

List of all members.

Public Member Functions

virtual void programFirstUse (const Renderer *caller, const GLSLProgram *glsl, const Transform *transform, const Camera *camera, bool first_overall)=0
 This function is called whenever a new GLSLProgram (or the NULL one, i.e.
virtual void programTransfChange (const Renderer *caller, const GLSLProgram *glsl, const Transform *transform, const Camera *camera)=0
 This function is called whenever the Transform changes with respect to the current GLSLProgram (including the NULL one, i.e.

Detailed Description

Vitual class used as a callback to update the state of the projection, view and transform matrices of a GLSLProgram or fixed function pipeline.


Member Function Documentation

virtual void vl::ProjViewTransfCallback::programFirstUse ( const Renderer caller,
const GLSLProgram glsl,
const Transform transform,
const Camera camera,
bool  first_overall 
) [pure virtual]

This function is called whenever a new GLSLProgram (or the NULL one, i.e.

the fixed function pipeline) is being activated for the first time in the current rendering. This callback is most useful to initialize the GLSLProgram with the current projection and view matrices, besides the current Actor's transform.

Parameters:
callerThe Renderer object calling this function.
glslThe GLSLProgram being activated. If NULL the fixed function pipeline is being activated.
transformThe transform of the current Actor being rendered.
cameraThe Camera used for the rendering from which you can retrieve the projection and view matrices.
first_overallIf true it means that the rendering has just started. Useful if you want to initialized your callback object.

Implemented in vl::ProjViewTransfCallbackStandard.

virtual void vl::ProjViewTransfCallback::programTransfChange ( const Renderer caller,
const GLSLProgram glsl,
const Transform transform,
const Camera camera 
) [pure virtual]

This function is called whenever the Transform changes with respect to the current GLSLProgram (including the NULL one, i.e.

the fixed function pipeline). This callback is most useful to update the GLSLProgram with the current Actor's transform matrix.

Parameters:
callerThe Renderer object calling this function.
glslThe GLSLProgram being activated. If NULL the fixed function pipeline is being activated.
transformThe transform of the current Actor being rendered.
cameraThe Camera used for the rendering from which you can retrieve the projection and view matrices.

Implemented in vl::ProjViewTransfCallbackStandard.


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

Visualization Library v2010.11.1125 Reference Documentation
Copyright 2005-2009 Michele Bosi. All rights reserved.
Updated on Fri Nov 26 2010 10:33:50.
Permission is granted to use this page to write and publish articles regarding Visualization Library.