Synopsis
define the Graphics Display Kit transformation
GDxform_templ
group+OPort GDxform_templ
{
float+opt mat[4][4];
float+opt xlate[3];
float+opt center[3];
float+nonotify+opt ocenter[3];
float+nonotify+opt dcenter[3];
};
GDxform
GDxform_templ GDxform<NE
smallPixmapName="xform.bmx">};
DefaultXform
GDxform DefaultXform
{
mat[4][4] = {{1.0, 0.0, 0.0, 0.0},
{0.0, 1.0, 0.0, 0.0},
{0.0, 0.0, 1.0, 0.0},
{0.0, 0.0, 0.0, 1.0}};
xlate[3] = {0.0, 0.0, 0.0};
center[3] = {0.0, 0.0, 0.0};
ocenter[3] = {0.0, 0.0, 0.0};
dcenter[3] = {0.0, 0.0, 0.0};
};
Description
These templates define a Graphics Display Kit transformation. GDxform_templ and GDxform define an instanceable version without default values. DefaultXform defines an instanceable version with default values.
You can connect a DefaultXform to an object, light, or camera.
Subobjects
mat
The transformation matrix. This matrix represents only rotation and scale.
xlate
A position vector. This vector defines the current position. It is added to the transformation matrix. It is kept separate so a fixed center position can be defined.
center
A center vector. The vector defines the center to be used for rotation and scaling.
ocenter, dcenter
These are used internally by the methods associated with the transformation and you should not use them.
Examples
Libraries.Graphics_Display.Objects.GroupObject
File
v/gdif.v