TOC PREV NEXT INDEX

DefaultXform

Synopsis

define the Graphics Display Kit transformation

GDxform_templ

group+OPort GDxform_templ {
float+opt+read mat<animate=1>[4][4];
float+opt xlate<animate=1>[3];
float+opt center<animate=1>[3];
float+nonotify+opt ocenter<NEvisible=0>[3];
float+nonotify+opt dcenter<NEvisible=0>[3];
int rspace<NEvisible=0>;
};

GDxform

GDxform_templ GDxform<NEsmallPixmapName="xform.bmx",
cxx_name="GDXxform">;

DefaultXform

GDxform DefaultXform {
mat<animate=1>[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<animate=1>[3] = {0.0, 0.0, 0.0};
center<animate=1>[3] = {0.0, 0.0, 0.0};
ocenter[3] = {0.0, 0.0, 0.0};
dcenter[3] = {0.0, 0.0, 0.0};
rspace = GD_DEFAULT_RSPACE;
};

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

The next two variables are GD internal objects which generally should not be modified by a user application.ocenter - old center, used to help calculate dcenter.dcenter - delta center, used to keep the object from moving in the view when the object's center is changed.


Example

Libraries.Graphics_Display.Objects.GroupObject

File

v/gdif.v

See also related modules

Not Applicable.

TOC PREV NEXT INDEX