dms::Transform

Source Code

Class Specification

#include <dms/Transform.h>

Transform(void);
virtual ~Transform(void);
virtual void apply(void) = 0;
void pushApply(void);
void pop(void);

Description

void apply(void)

The apply() function must be defined by class derived from Transform. It applies the Transform's transformation to anything that is drawn subsequently.

void pushApply(void)

Calls glPushMatrix(), followed by apply().

void pop(void)

Calls glPopMatrix().
Example:

xform.pushApply();
drawObject();
xform.pop();