Structs



TQ3Area


typedef struct TQ3Area {
    TQ3Point2D                                  min;
    TQ3Point2D                                  max;
} TQ3Area;
Discussion

Fundamental area type.

Field Descriptions
min
Minimum corner of area.
max
Maximum corner of area.

TQ3Bitmap


typedef struct TQ3Bitmap {
    TQ3Uns8                                     *image;
    TQ3Uns32                                    width;
    TQ3Uns32                                    height;
    TQ3Uns32                                    rowBytes;
    TQ3Endian                                   bitOrder;
} TQ3Bitmap;
Discussion

Fundamental Bitmap type.

Field Descriptions
image
Pointer to (height*rowBytes) sized block of memory containing the image data. Each row of image data starts on a new byte.
width
Width of the image.
height
Height of the image.
rowBytes
Distance in bytes from begining of one row of image data to the next.
bitOrder
The order in which bits in a byte are addressed within the image data.

TQ3BoundingBox


typedef struct TQ3BoundingBox {
    TQ3Point3D                                  min;
    TQ3Point3D                                  max;
    TQ3Boolean                                  isEmpty;
} TQ3BoundingBox;
Discussion

Fundamental bounding box type.

Field Descriptions
min
Minimum corner of bounding box.
max
Maximum corner of bounding box.
isEmpty
Is the bounding box empty. The box is only valid if isEmpty is kQ3False.

TQ3BoundingSphere


typedef struct TQ3BoundingSphere {
    TQ3Point3D                                  origin;
    float                                       radius;
    TQ3Boolean                                  isEmpty;
} TQ3BoundingSphere;
Discussion

Fundamental bounding sphere type.

Field Descriptions
origin
Origin of bounding sphere.
radius
Radius of bounding sphere.
isEmpty
Is the bounding sphere empty? The sphere is only valid if isEmpty is kQ3False.

TQ3ColorARGB


typedef struct TQ3ColorARGB {
    float                                       a;
    float                                       r;
    float                                       g;
    float                                       b;
} TQ3ColorARGB;
Discussion

Fundamental ARGB point type.

Field Descriptions
a
Alpha component, between 0.0 (transparent) and 1.0 (opaque).
r
Red component, between 0.0 and 1.0.
g
Green component, between 0.0 and 1.0.
b
Blue component, between 0.0 and 1.0.

TQ3ColorRGB


typedef struct TQ3ColorRGB {
    float                                       r;
    float                                       g;
    float                                       b;
} TQ3ColorRGB;
Discussion

Fundamental RGB colour type.

Field Descriptions
r
Red component, between 0.0 and 1.0.
g
Green component, between 0.0 and 1.0.
b
Blue component, between 0.0 and 1.0.

TQ3ColorRGBA


typedef struct TQ3ColorRGBA {
    float                                       r;
    float                                       g;
    float                                       b;
    float                                       a;
} TQ3ColorRGBA;
Discussion

Fundamental RGBA point type.

Field Descriptions
r
Red component, between 0.0 and 1.0.
g
Green component, between 0.0 and 1.0.
b
Blue component, between 0.0 and 1.0.
a
Alpha component, between 0.0 (transparent) and 1.0 (opaque).

TQ3CompressedPixmap


typedef struct TQ3CompressedPixmap {
    TQ3StorageObject                            compressedImage;
    TQ3Endian                                   imageDescByteOrder;
    TQ3StorageObject                            imageDesc;
    TQ3Boolean                                  makeMipmaps;
    TQ3Uns32                                    width;
    TQ3Uns32                                    height;
    TQ3Uns32                                    pixelSize;
    TQ3PixelType                                pixelType;
} TQ3CompressedPixmap;
Discussion

QuickTime compressed Pixmap image type. Only available on platforms with QuickTime.

Field Descriptions
compressedImage
A storage object that contains the QuickTime compressed image data.
imageDescByteOrder
Endianness of data in the imageDesc field.
imageDesc
QuickTime image description.
makeMipmaps
Indicates if mipmapping is required.
width
Width of the image.
height
Height of the image.
pixelSize
Size in bits of each pixel (must be 16 or 32).
pixelType
The pixel format of the image data. The format must be appropriate for pixelSize.

TQ3Matrix3x3


typedef struct TQ3Matrix3x3 {
    float                                       value[3][3];
} TQ3Matrix3x3;
Discussion

Fundamental 3x3 matrix type.

Field Descriptions
value
3x3 array of values that define the matrix.

TQ3Matrix4x4


typedef struct TQ3Matrix4x4 {
    float                                       value[4][4];
} TQ3Matrix4x4;
Discussion

Fundamental 4x4 matrix type.

Field Descriptions
value
4x4 array of values that define the matrix.

TQ3Mipmap


typedef struct TQ3Mipmap {
    TQ3StorageObject                            image;
    TQ3Boolean                                  useMipmapping;
    TQ3PixelType                                pixelType;
    TQ3Endian                                   bitOrder;
    TQ3Endian                                   byteOrder;
    TQ3Uns32                                    reserved;
    TQ3MipmapImage                              mipmaps[32];
} TQ3Mipmap;
Discussion

This is the data structure for a mipmap texture. If the useMipmapping field is kQ3False, then only the first record of the mipmaps array needs to be filled in. If useMipmapping is kQ3True, then the number of mipmaps should be the base 2 logarithm of the larger dimension of the first mipmap, plus 1. For example, if the first mipmap is of size 4 × 16, then you must also include mipmaps of sizes 2 × 8, 1 × 4, 1 × 2, and 1 × 1, making 5 mipmaps in all.

Field Descriptions
image
A storage object that contains the image data.
useMipmapping
Flag indicating if mipmapping should be used and all mipmaps have been supplied.
pixelType
The pixel format of the image data.
bitOrder
The order in which bits in a byte are addressed within the image data.
byteOrder
The order in which bytes in a word are addressed within the image data.
reserved
Reserved - must be set to 0.
mipmaps
Up to 32 mip-map image specifications.

TQ3MipmapImage


typedef struct TQ3MipmapImage {
    TQ3Uns32                                    width;
    TQ3Uns32                                    height;
    TQ3Uns32                                    rowBytes;
    TQ3Uns32                                    offset;
} TQ3MipmapImage;
Discussion

Fundamental Mipmap image type.

Field Descriptions
width
Width of the mipmap, which must be a power of 2.
height
Height of the mipmap, which must be a power of 2.
rowBytes
Distance in bytes from begining of one row of image data to the next.
offset
Offset in bytes from the begining of the image base to this mipmap.

TQ3Param2D


typedef struct TQ3Param2D {
    float                                       u;
    float                                       v;
} TQ3Param2D;
Discussion

Fundamental 2D parametric point type.

Field Descriptions
u
u component.
v
v component.

TQ3Param3D


typedef struct TQ3Param3D {
    float                                       u;
    float                                       v;
    float                                       w;
} TQ3Param3D;
Discussion

Fundamental 3D parametric point type.

Field Descriptions
u
u component.
v
v component.
w
w component.

TQ3Pixmap


typedef struct TQ3Pixmap {
    void                                        *image;
    TQ3Uns32                                    width;
    TQ3Uns32                                    height;
    TQ3Uns32                                    rowBytes;
    TQ3Uns32                                    pixelSize;
    TQ3PixelType                                pixelType;
    TQ3Endian                                   bitOrder;
    TQ3Endian                                   byteOrder;
} TQ3Pixmap;
Discussion

Fundamental Pixmap type.

Field Descriptions
image
Pointer to (height*rowBytes) sized block of memory containing the image data.
width
Width of the image.
height
Height of the image.
rowBytes
Distance in bytes from begining of one row of image data to the next.
pixelSize
Size in bits of each pixel.
pixelType
The pixel format of the image data. The format must be appropriate for pixelSize.
bitOrder
The order in which bits in a byte are addressed within the image data.
byteOrder
The order in which bytes in a word are addressed within the image data.

TQ3PlaneEquation


typedef struct TQ3PlaneEquation {
    TQ3Vector3D                                 normal;
    float                                       constant;
} TQ3PlaneEquation;
Discussion

Fundamental plane equation type.

Field Descriptions
normal
The normal vector to the plane.
constant
The plane constant (the value d in the plane equation ax+by+cz+d=0).

TQ3Point2D


typedef struct TQ3Point2D {
    float                                       x;
    float                                       y;
} TQ3Point2D;
Discussion

Fundamental 2D point type.

Field Descriptions
x
x coordinate.
y
y coordinate.

TQ3Point3D


typedef struct TQ3Point3D {
    float                                       x;
    float                                       y;
    float                                       z;
} TQ3Point3D;
Discussion

Fundamental 3D point type.

Field Descriptions
x
x coordinate.
y
y coordinate.
z
z coordinate.

TQ3PolarPoint


typedef struct TQ3PolarPoint {
    float                                       r;
    float                                       theta;
} TQ3PolarPoint;
Discussion

Fundamental polar point type.

Field Descriptions
r
Distance along the radius vector from polar origin.
theta
Angle in radians between polar axis and the radius vector.

TQ3Quaternion


typedef struct TQ3Quaternion {
    float                                       w;
    float                                       x;
    float                                       y;
    float                                       z;
} TQ3Quaternion;
Discussion

Fundamental Quaternion type.

Field Descriptions
w
w component.
x
x component.
y
y component.
z
z component.

TQ3RationalPoint3D


typedef struct TQ3RationalPoint3D {
    float                                       x;
    float                                       y;
    float                                       w;
} TQ3RationalPoint3D;
Discussion

Fundamental 3D rational point type.

Field Descriptions
x
x coordinate.
y
y coordinate.
w
Point weight.

TQ3RationalPoint4D


typedef struct TQ3RationalPoint4D {
    float                                       x;
    float                                       y;
    float                                       z;
    float                                       w;
} TQ3RationalPoint4D;
Discussion

Fundamental 4D rational point type.

Field Descriptions
x
x coordinate.
y
y coordinate.
z
z coordinate.
w
Point weight.

TQ3Ray3D


typedef struct TQ3Ray3D {
    TQ3Point3D                                  origin;
    TQ3Vector3D                                 direction;
} TQ3Ray3D;
Discussion

Fundamental ray type.

Field Descriptions
origin
Origin of ray.
direction
Direction of ray.

TQ3Sphere


typedef struct TQ3Sphere {
    TQ3Point3D                                  origin;
    float                                       radius;
} TQ3Sphere;
Discussion

Fundamental sphere type.

Field Descriptions
origin
Origin of sphere.
radius
Radius of sphere.

TQ3SphericalPoint


typedef struct TQ3SphericalPoint {
    float                                       rho;
    float                                       theta;
    float                                       phi;
} TQ3SphericalPoint;
Discussion

Fundamental spherical point type.

Field Descriptions
rho
Distance along the radius vector from polar origin.
theta
Angle in radians between x axis and the projection of the radius vector onto the xy plane.
phi
Angle in radians between z axis and the radius vector.

TQ3StoragePixmap


typedef struct TQ3StoragePixmap {
    TQ3StorageObject                            image;
    TQ3Uns32                                    width;
    TQ3Uns32                                    height;
    TQ3Uns32                                    rowBytes;
    TQ3Uns32                                    pixelSize;
    TQ3PixelType                                pixelType;
    TQ3Endian                                   bitOrder;
    TQ3Endian                                   byteOrder;
} TQ3StoragePixmap;
Discussion

Fundamental storage Pixmap type.

Field Descriptions
image
A storage object that contains the image data.
width
Width of the image.
height
Height of the image.
rowBytes
Distance in bytes from begining of one row of image data to the next.
pixelSize
Size in bits of each pixel.
pixelType
The pixel format of the image data. The format must be appropriate for pixelSize.
bitOrder
The order in which bits in a byte are addressed within the image data.
byteOrder
The order in which bytes in a word are addressed within the image data.

TQ3SubClassData


typedef struct TQ3SubClassData {
    TQ3Uns32                                    numClasses;
    TQ3ObjectType                               *classTypes;
} TQ3SubClassData;
Discussion

Object sub-class type.

Field Descriptions
numClasses
The number of types contained in classTypes.
classTypes
The types of the sub-classes.

TQ3Tangent2D


typedef struct TQ3Tangent2D {
    TQ3Vector3D                                 uTangent;
    TQ3Vector3D                                 vTangent;
} TQ3Tangent2D;
Discussion

Fundamental 2D parametric surface tangent type.

Field Descriptions
uTangent
Tangent in the u direction.
vTangent
Tangent in the v direction.

TQ3Tangent3D


typedef struct TQ3Tangent3D {
    TQ3Vector3D                                 uTangent;
    TQ3Vector3D                                 vTangent;
    TQ3Vector3D                                 wTangent;
} TQ3Tangent3D;
Discussion

Fundamental 3D parametric surface tangent type.

Field Descriptions
uTangent
Tangent in the u direction.
vTangent
Tangent in the v direction.
wTangent
Tangent in the w direction.

TQ3Vector2D


typedef struct TQ3Vector2D {
    float                                       x;
    float                                       y;
} TQ3Vector2D;
Discussion

Fundamental 2D vector type.

Field Descriptions
x
x coordinate.
y
y coordinate.

TQ3Vector3D


typedef struct TQ3Vector3D {
    float                                       x;
    float                                       y;
    float                                       z;
} TQ3Vector3D;
Discussion

Fundamental 3D vector type.

Field Descriptions
x
x coordinate.
y
y coordinate.
z
z coordinate.

TQ3Vertex3D


typedef struct TQ3Vertex3D {
    TQ3Point3D                                  point;
    TQ3AttributeSet                             attributeSet;
} TQ3Vertex3D;
Discussion

Fundamental vertex type.

Field Descriptions
point
Location of the vertex.
attributeSet
Attribute set for the vertex.

© 1999-2008 Quesa Developers (Last Updated 5/10/2008)