Q3CameraTransform_Get |
( TQ3Status ) Q3CameraTransform_Get ( TQ3TransformObject theTransform, TQ3CameraTransformData *theData );
Get the data of a camera transform object.
This function is not available in QD3D.
- theTransform
- The camera transform object to query.
- theData
- Receives thedata for the transform object.
Q3CameraTransform_New |
( TQ3TransformObject ) Q3CameraTransform_New ( const TQ3CameraTransformData *theData );
Create a new camera transform object.
This function is not available in QD3D.
- theData
- The data for the camera transform object.
Q3CameraTransform_Set |
( TQ3Status ) Q3CameraTransform_Set ( TQ3TransformObject theTransform, const TQ3CameraTransformData *theData );
Set the data of a camera transform object.
This function is not available in QD3D.
- theTransform
- The camera transform object to update.
- theData
- The new data for the transform object.
Q3CameraTransform_Submit |
( TQ3Status ) Q3CameraTransform_Submit ( const TQ3CameraTransformData *theData, TQ3ViewObject theView );
Submit a camera transform in immediate mode. Should only be called
within a submitting loop.
This function is not available in QD3D.
- theData
- The data for the camera transform.
- theView
- The view currently being submitted to.
Q3MatrixTransform_Get |
( TQ3Status ) Q3MatrixTransform_Get ( TQ3TransformObject transform, TQ3Matrix4x4 *matrix );
Get the matrix of a matrix transform.
- transform
- The matrix transform object.
- matrix
- Receives the matrix of the transform.
Q3MatrixTransform_New |
( TQ3TransformObject ) Q3MatrixTransform_New ( const TQ3Matrix4x4 *matrix );
Create a new matrix transform.
- matrix
- Initial matrix of the transform.
Q3MatrixTransform_Set |
( TQ3Status ) Q3MatrixTransform_Set ( TQ3TransformObject transform, const TQ3Matrix4x4 *matrix );
Change the matrix of a matrix transform.
- transform
- The matrix transform object.
- matrix
- The new matrix.
Q3MatrixTransform_Submit |
( TQ3Status ) Q3MatrixTransform_Submit ( const TQ3Matrix4x4 *matrix, TQ3ViewObject view );
Submit a matrix transform in immediate mode.
Should only be used within a submitting loop.
- matrix
- Matrix of the desired transform.
- view
- A view object.
Q3QuaternionTransform_Get |
( TQ3Status ) Q3QuaternionTransform_Get ( TQ3TransformObject transform, TQ3Quaternion *quaternion );
Get the quaternion data of a quaternion transform object.
- transform
- A quaternion transform object.
- quaternion
- Receives the quaternion data specifying the transform.
Q3QuaternionTransform_New |
( TQ3TransformObject ) Q3QuaternionTransform_New ( const TQ3Quaternion *quaternion );
Create a new quaternion transform object.
- quaternion
- Quaternion data specifying the transform.
Q3QuaternionTransform_Set |
( TQ3Status ) Q3QuaternionTransform_Set ( TQ3TransformObject transform, const TQ3Quaternion *quaternion );
Change the quaternion data of a quaternion transform object.
- transform
- A quaternion transform object.
- quaternion
- Quaternion data specifying the transform.
Q3QuaternionTransform_Submit |
( TQ3Status ) Q3QuaternionTransform_Submit ( const TQ3Quaternion *quaternion, TQ3ViewObject view );
Submit a quaternion transform in immediate mode. Should only be called
within a submitting loop.
- quaternion
- Quaternion data specifying the transform.
- view
- A view object.
Q3RasterizeCameraTransform_New |
( TQ3TransformObject ) Q3RasterizeCameraTransform_New (void);
Create a new rasterize camera transform object.
A rasterize camera object is a camera transform object which
adjusts the camera to allow rasterizing to a draw context.
When this type of transform is active, x and y vertex coordinates
reflect pixel (or sub-pixel) coordinates. The z coordinate ranges
from 0.0 to 1.0 (where 0.0 is the front of the scene, and 1.0 is
the back).
The x/y coordinate system matches that of the draw context being
rendered to when the transform is submitted. The origin is placed
at the top left of the draw context, while the dimensions of the
draw context provide the coordinates of the bottom right "pixel".
Any geometry type or rendering state may be submitted while this
transform is active, however some renderers may require transparent
objects to be sorted manually to their correct position within
the scene.
This function is not available in QD3D.
Q3RasterizeCameraTransform_Submit |
( TQ3Status ) Q3RasterizeCameraTransform_Submit ( TQ3ViewObject theView );
Submit a rasterize camera transform in immediate mode. Should only
be called within a submitting loop.
This function is not available in QD3D.
- theView
- The view currently being submitted to.
Q3ResetTransform_New |
( TQ3TransformObject ) Q3ResetTransform_New (void);
Create a new reset transform.
When transforms are submitted, they normally concatenate together, as
modified by groups or push and pop operations. Submitting a reset
transform is a shortcut which sets the current transform to the identity.
Q3ResetTransform_Submit |
( TQ3Status ) Q3ResetTransform_Submit ( TQ3ViewObject view );
Submit a reset transform in immediate mode. This should only be called
within a submitting loop.
- view
- A view object.
Q3RotateAboutAxisTransform_GetAngle |
( TQ3Status ) Q3RotateAboutAxisTransform_GetAngle ( TQ3TransformObject transform, float *radians );
Get the angle of rotation of a rotate-about-axis transform object.
- transform
- A rotate-about-axis transform object.
- radians
- Receives the angle of rotation, in radians.
Q3RotateAboutAxisTransform_GetData |
( TQ3Status ) Q3RotateAboutAxisTransform_GetData ( TQ3TransformObject transform, TQ3RotateAboutAxisTransformData *data );
Get the state of a rotate-about-axis transform object.
- transform
- A rotate-about-axis transform object.
- data
- Receives the state of the transform.
Q3RotateAboutAxisTransform_GetOrientation |
( TQ3Status ) Q3RotateAboutAxisTransform_GetOrientation ( TQ3TransformObject transform, TQ3Vector3D *axis );
Get the axis direction of a rotate-about-axis transform object.
- transform
- A rotate-about-axis transform object.
- axis
- Receives the axis direction vector.
Q3RotateAboutAxisTransform_GetOrigin |
( TQ3Status ) Q3RotateAboutAxisTransform_GetOrigin ( TQ3TransformObject transform, TQ3Point3D *origin );
Get a point lying on the axis of a rotate-about-axis transform object.
- transform
- A rotate-about-axis transform object.
- origin
- Receives a point on the desired axis of rotation.
Q3RotateAboutAxisTransform_New |
( TQ3TransformObject ) Q3RotateAboutAxisTransform_New ( const TQ3RotateAboutAxisTransformData *data );
Create a new transform object for rotation about an arbitrary axis.
Note that the orientation vector must be normalized.
- data
- Structure specifying the initial state of the transform.
Q3RotateAboutAxisTransform_SetAngle |
( TQ3Status ) Q3RotateAboutAxisTransform_SetAngle ( TQ3TransformObject transform, float radians );
Change the angle of rotation of a rotate-about-axis transform object.
- transform
- A rotate-about-axis transform object.
- radians
- New angle of rotation, in radians.
Q3RotateAboutAxisTransform_SetData |
( TQ3Status ) Q3RotateAboutAxisTransform_SetData ( TQ3TransformObject transform, const TQ3RotateAboutAxisTransformData *data );
Set the state of a rotate-about-axis transform object.
- transform
- A rotate-about-axis transform object.
- data
- Structure specifying the new state of the transform.
Q3RotateAboutAxisTransform_SetOrientation |
( TQ3Status ) Q3RotateAboutAxisTransform_SetOrientation ( TQ3TransformObject transform, const TQ3Vector3D *axis );
Set the axis direction of a rotate-about-axis transform object.
You must provide a normalized vector.
- transform
- A rotate-about-axis transform object.
- axis
- New axis direction vector (normalized).
Q3RotateAboutAxisTransform_SetOrigin |
( TQ3Status ) Q3RotateAboutAxisTransform_SetOrigin ( TQ3TransformObject transform, const TQ3Point3D *origin );
Specify a new point lying on the axis of a rotate-about-axis transform object.
- transform
- A rotate-about-axis transform object.
- origin
- A point on the desired axis of rotation.
Q3RotateAboutAxisTransform_Submit |
( TQ3Status ) Q3RotateAboutAxisTransform_Submit ( const TQ3RotateAboutAxisTransformData *data, TQ3ViewObject view );
Submit a rotate-about-axis transform in immediate mode.
Should only be called within a submitting loop.
- data
- Structure specifying the state of the transform.
- view
- A view object.
Q3RotateAboutPointTransform_GetAboutPoint |
( TQ3Status ) Q3RotateAboutPointTransform_GetAboutPoint ( TQ3TransformObject transform, TQ3Point3D *about );
Get a point on the axis of rotation of a rotate-about-point transform.
- transform
- A rotate-about-point transform object.
- about
- Receives a point on the axis of rotation.
Q3RotateAboutPointTransform_GetAngle |
( TQ3Status ) Q3RotateAboutPointTransform_GetAngle ( TQ3TransformObject transform, float *radians );
Get the angle of a rotate-about-point transform.
- transform
- A rotate-about-point transform object.
- radians
- Receives the angle in radians.
Q3RotateAboutPointTransform_GetAxis |
( TQ3Status ) Q3RotateAboutPointTransform_GetAxis ( TQ3TransformObject transform, TQ3Axis *axis );
Get the axis of a rotate-about-point transform.
- transform
- A rotate-about-point transform object.
- axis
- Receives the enumerated value specifying the axis.
Q3RotateAboutPointTransform_GetData |
( TQ3Status ) Q3RotateAboutPointTransform_GetData ( TQ3TransformObject transform, TQ3RotateAboutPointTransformData *data );
Get the state of a rotate-about-point transform.
- transform
- A rotate-about-point transform object.
- data
- Receives the state of the transform.
Q3RotateAboutPointTransform_New |
( TQ3TransformObject ) Q3RotateAboutPointTransform_New ( const TQ3RotateAboutPointTransformData *data );
Create a new transform for rotation about an axis that is parallel to
the x, y, or z axis.
- data
- Structure containing the initial state of the transform.
Q3RotateAboutPointTransform_SetAboutPoint |
( TQ3Status ) Q3RotateAboutPointTransform_SetAboutPoint ( TQ3TransformObject transform, const TQ3Point3D *about );
Change the point on the axis of rotation of a rotate-about-point transform.
- transform
- A rotate-about-point transform object.
- about
- A point on the desired axis.
Q3RotateAboutPointTransform_SetAngle |
( TQ3Status ) Q3RotateAboutPointTransform_SetAngle ( TQ3TransformObject transform, float radians );
Change the angle of a rotate-about-point transform.
- transform
- A rotate-about-point transform object.
- radians
- The new angle in radians.
Q3RotateAboutPointTransform_SetAxis |
( TQ3Status ) Q3RotateAboutPointTransform_SetAxis ( TQ3TransformObject transform, TQ3Axis axis );
Change the axis of a rotate-about-point transform.
- transform
- A rotate-about-point transform object.
- axis
- The new axis.
Q3RotateAboutPointTransform_SetData |
( TQ3Status ) Q3RotateAboutPointTransform_SetData ( TQ3TransformObject transform, const TQ3RotateAboutPointTransformData *data );
Change the state of a rotate-about-point transform.
- transform
- A rotate-about-point transform object.
- data
- Structure containing the new state of the transform.
Q3RotateAboutPointTransform_Submit |
( TQ3Status ) Q3RotateAboutPointTransform_Submit ( const TQ3RotateAboutPointTransformData *data, TQ3ViewObject view );
Submit a rotate-about-point transform in immediate mode.
Should only be used within a submitting loop.
- data
- Structure containing the state of the transform.
- view
- A view object.
Q3RotateTransform_GetAngle |
( TQ3Status ) Q3RotateTransform_GetAngle ( TQ3TransformObject transform, float *radians );
Get the angle of rotation of a rotate transform.
- transform
- The rotate transform object.
- radians
- Receives the angle in radians.
Q3RotateTransform_GetAxis |
( TQ3Status ) Q3RotateTransform_GetAxis ( TQ3TransformObject renderable, TQ3Axis *axis );
Get the axis of a rotate transform.
- renderable
- The rotate transform object.
- axis
- Receives the enumerated value specifying the axis.
Q3RotateTransform_GetData |
( TQ3Status ) Q3RotateTransform_GetData ( TQ3TransformObject transform, TQ3RotateTransformData *data );
Get the state of a rotate transform object.
- transform
- The rotate transform object.
- data
- Receives the data specifying the state of the transform.
Q3RotateTransform_New |
( TQ3TransformObject ) Q3RotateTransform_New ( const TQ3RotateTransformData *data );
Create a transform object for rotation about the x, y, or z axis.
- data
- Data specifying the initial state of the transform.
Q3RotateTransform_SetAngle |
( TQ3Status ) Q3RotateTransform_SetAngle ( TQ3TransformObject transform, float radians );
Change the angle of a rotate transform.
- transform
- The rotate transform object.
- radians
- New angle of rotation in radians.
Q3RotateTransform_SetAxis |
( TQ3Status ) Q3RotateTransform_SetAxis ( TQ3TransformObject transform, TQ3Axis axis );
Change the axis of a rotate transform.
- transform
- The rotate transform object.
- axis
- New axis of rotation.
Q3RotateTransform_SetData |
( TQ3Status ) Q3RotateTransform_SetData ( TQ3TransformObject transform, const TQ3RotateTransformData *data );
Change the data of a rotate transform.
- transform
- The rotate transform object.
- data
- Data specifying the new state of the transform.
Q3RotateTransform_Submit |
( TQ3Status ) Q3RotateTransform_Submit ( const TQ3RotateTransformData *data, TQ3ViewObject view );
Submit a rotate transform in immediate mode.
Should only be used within a submitting loop.
- data
- Data specifying the transform.
- view
- A view object.
Q3ScaleTransform_Get |
( TQ3Status ) Q3ScaleTransform_Get ( TQ3TransformObject transform, TQ3Vector3D *scale );
Get the scale factors of a scale transform.
- transform
- A scale transform object.
- scale
- Receives the vector containing the 3 scale factors.
Q3ScaleTransform_New |
( TQ3TransformObject ) Q3ScaleTransform_New ( const TQ3Vector3D *scale );
Create a new scale transform. It multiplies the x, y, and z coordinates by
the components of a given vector. Most commonly, the 3 scale factors are
identical positive numbers.
- scale
- Vector specifying scale factors for each coordinate.
Q3ScaleTransform_Set |
( TQ3Status ) Q3ScaleTransform_Set ( TQ3TransformObject transform, const TQ3Vector3D *scale );
Change the scale factors of a scale transform.
- transform
- A scale transform object.
- scale
- Vector containing the 3 scale factors.
Q3ScaleTransform_Submit |
( TQ3Status ) Q3ScaleTransform_Submit ( const TQ3Vector3D *scale, TQ3ViewObject view );
Submit a scale transform in immediate mode. This should only be called
within a submitting loop.
- scale
- Vector containing the 3 scale factors.
- view
- A view object.
Q3Transform_GetMatrix |
( TQ3Matrix4x4 * ) Q3Transform_GetMatrix ( TQ3TransformObject transform, TQ3Matrix4x4 *matrix );
Get the 4×4 matrix of a transform object.
Non-geometrical transform objects (e.g., camera transforms) can not be
expressed as a single 4×4 matrix. These transforms will return the
identity matrix.
- transform
- A transform object.
- matrix
- Receives the matrix of the transform.
Q3Transform_GetType |
( TQ3ObjectType ) Q3Transform_GetType ( TQ3TransformObject transform );
Get the subtype of a transform object. Returns kQ3TransformTypeMatrix,
kQ3TransformTypeScale, kQ3TransformTypeTranslate,
kQ3TransformTypeRotate, kQ3TransformTypeRotateAboutPoint,
kQ3TransformTypeRotateAboutAxis, kQ3TransformTypeQuaternion,
kQ3TransformTypeReset, or kQ3ObjectTypeInvalid.
- transform
- A transform object.
kQ3ObjectTypeInvalid.
Q3Transform_Submit |
( TQ3Status ) Q3Transform_Submit ( TQ3TransformObject transform, TQ3ViewObject view );
Submit a transform object. Should only be used within a submitting loop.
- transform
- A transform object.
- view
- A view object.
Q3TranslateTransform_Get |
( TQ3Status ) Q3TranslateTransform_Get ( TQ3TransformObject transform, TQ3Vector3D *translate );
Get the translation vector of a translate transform.
- transform
- A translate transform object.
- translate
- Receives the vector by which the transform translates.
Q3TranslateTransform_New |
( TQ3TransformObject ) Q3TranslateTransform_New ( const TQ3Vector3D *translate );
Create a new translation transform.
- translate
- Vector by which to translate.
Q3TranslateTransform_Set |
( TQ3Status ) Q3TranslateTransform_Set ( TQ3TransformObject transform, const TQ3Vector3D *translate );
Change the translation vector of a translate transform.
- transform
- A translate transform object.
- translate
- New vector by which to translate.
Q3TranslateTransform_Submit |
( TQ3Status ) Q3TranslateTransform_Submit ( const TQ3Vector3D *translate, TQ3ViewObject view );
Submit a translate transform in immediate mode. Should only be
called within a submitting loop.
- translate
- Vector by which to translate.
- view
- A view object.
TQ3CameraTransformData |
typedef struct TQ3CameraTransformData {
TQ3Matrix4x4 localToWorld;
TQ3Matrix4x4 worldToCamera;
TQ3Matrix4x4 cameraToFrustum;
} TQ3CameraTransformData;
State data for a transform object that manipulates the camera matrix state.
Vertices are passed through three transforms to convert them from local
coordinates to the canonical viewing frustum.
The localToWorld transform converts local coordinates to the world coordinate
system.
The worldToCamera transform converts world coordinates to the camera's
coordinate system, which places the camera at the origin and establishes
the camera's view of the world.
The cameraToFrustum converts the camera's coordinate system to the canonical
viewing frustum. This frustum is a box centered on the origin, ranging from
-1 to +1 in x and y. In z the frustum ranges from 0 at the near clipping plane
to -1 at the far clipping plane.
Once vertices have been transformed to the canonical frustum, a portion of
the frustum is then selected using the current camera's viewPort and that
portion mapped to the draw context's pane. These two steps are controlled by
the current camera and draw context, and are not affected by a camera transform
object.
- localToWorld
- The local-to-world matrix.
- worldToCamera
- The world-to-camera matrix.
- cameraToFrustum
- The camera-to-frustum matrix.
TQ3RotateAboutAxisTransformData |
typedef struct TQ3RotateAboutAxisTransformData {
TQ3Point3D origin;
TQ3Vector3D orientation;
TQ3Float32 radians;
} TQ3RotateAboutAxisTransformData;
State data for a transform object that rotates about an arbitrary axis.
Note that the orientation vector must be normalized.
- origin
- A point on the axis of rotation.
- orientation
- A normal vector determining the direction of the axis.
- radians
- Number of radians to rotate about the axis.
TQ3RotateAboutPointTransformData |
typedef struct TQ3RotateAboutPointTransformData {
TQ3Axis axis;
TQ3Float32 radians;
TQ3Point3D about;
} TQ3RotateAboutPointTransformData;
State data for a rotate-about-point transform.
- axis
- Enumerated value specifying the x, y, or z axis.
- radians
- Number of radians to rotate about the axis.
- about
- A point on the desired axis of rotation.
TQ3RotateTransformData |
typedef struct TQ3RotateTransformData {
TQ3Axis axis;
TQ3Float32 radians;
} TQ3RotateTransformData;
State data for a rotate transform.
- axis
- Enumerated value specifying the x, y, or z axis.
- radians
- Number of radians to rotate about the axis.
© 1999-2008 Quesa Developers (Last Updated 5/10/2008)