In file include/csengine/tranman.h:

class csTransformedSet

Every entity that is interested in having a set of transformed camera vertices has to maintain an instance of this object

Public Methods

void CheckUpdate ()
Same as Update() but a bit more loose
csTransformedSet ()
Constructor.
csTransformedSet (csTransformationManager* manager)
Constructor.
csVertexArray* GetVertexArray ()
Get the current vertex array
void SetTransformationManager (csTransformationManager* manager)
Set the transformation manager (required).
void Transform (csVector3* wor_verts, int num_vertices, const csTransform& w2c)
Transform (if needed)
void Translate (csVector3* wor_verts, int num_vertices, const csVector3& trans)
Translate (if needed)
void Update ()
Check and update the vertex array if needed
~csTransformedSet ()
Destructor.

Private Fields

csVertexArray* current_array
The current verex array.
csTranCookie last_cookie
Last cookie used by this set
csTransformationManager* tr_manager
The transformation manager.
csVertexArray* vertex_arrays
The vertex array set.

Documentation

Every entity that is interested in having a set of transformed camera vertices has to maintain an instance of this object. It communicates with the transformation manager.
csTransformationManager* tr_manager
The transformation manager.

csTranCookie last_cookie
Last cookie used by this set. We use this to detect if the frame has changed.

csVertexArray* vertex_arrays
The vertex array set.

csVertexArray* current_array
The current verex array.

csTransformedSet()
Constructor.

csTransformedSet(csTransformationManager* manager)
Constructor.

~csTransformedSet()
Destructor.

void SetTransformationManager(csTransformationManager* manager)
Set the transformation manager (required).

csVertexArray* GetVertexArray()
Get the current vertex array. This function does not check if the array is indeed current.

void Update()
Check and update the vertex array if needed

void CheckUpdate()
Same as Update() but a bit more loose. It will assume that no new array will be created but there is one present which is ok.

void Transform(csVector3* wor_verts, int num_vertices, const csTransform& w2c)
Transform (if needed). This function can safely be called multiple times during a session. The session manager will only really redo the transformation if needed.

void Translate(csVector3* wor_verts, int num_vertices, const csVector3& trans)
Translate (if needed). This function can safely be called multiple times during a session. The session manager will only really redo the transformation if needed.


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de