Structs



TQ3Area

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

Fundamental area type.

Fields

NameDescription
minMinimum corner of area.
maxMaximum corner of area.

TQ3Bitmap

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

Fundamental Bitmap type.

Fields

NameDescription
imagePointer to (height*rowBytes) sized block of memory containing the image data. Note that each row of image data starts on a new byte.
widthWidth of the image.
heightHeight of the image.
rowBytesDistance in bytes from begining of one row of image data to the next.
bitOrderThe order in which bits in a byte are addressed within the image data.

TQ3BoundingBox

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

Fundamental bounding box type.

Fields

NameDescription
minMinimum corner of bounding box.
maxMaximum corner of bounding box.
isEmptyIs the bounding box empty. The box is only valid if isEmpty is kQ3False.

TQ3BoundingSphere

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

Fundamental bounding sphere type.

Fields

NameDescription
originOrigin of bounding sphere.
radiusRadius of bounding sphere.
isEmptyIs 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;

Fundamental ARGB point type.

Fields

NameDescription
aAlpha component, between 0.0 (transparent) and 1.0 (opaque).
rRed component, between 0.0 and 1.0.
gGreen component, between 0.0 and 1.0.
bBlue component, between 0.0 and 1.0.

TQ3ColorRGB

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

Fundamental RGB colour type.

Fields

NameDescription
rRed component, between 0.0 and 1.0.
gGreen component, between 0.0 and 1.0.
bBlue component, between 0.0 and 1.0.

TQ3ColorRGBA

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

Fundamental RGBA point type.

Fields

NameDescription
rRed component, between 0.0 and 1.0.
gGreen component, between 0.0 and 1.0.
bBlue component, between 0.0 and 1.0.
aAlpha 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;

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

Fields

NameDescription
compressedImageA storage object that contains the QuickTime compressed image data.
imageDescByteOrderEndianness of data in the imageDesc field.
imageDescQuickTime image description.
makeMipmapsIndicates if mipmapping is required.
widthWidth of the image.
heightHeight of the image.
pixelSizeSize in bits of each pixel (must be 16 or 32).
pixelTypeThe pixel format of the image data. The format must be appropriate for pixelSize.

TQ3Matrix3x3

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

Fundamental 3x3 matrix type.

Fields

NameDescription
value3x3 array of values that define the matrix.

TQ3Matrix4x4

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

Fundamental 4x4 matrix type.

Fields

NameDescription
value4x4 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;

Fundamental Mipmap image type.

Fields

NameDescription
imageA storage object that contains the image data.
useMipmappingFlag indicating if mipmapping should be used and all mipmaps have been supplied.
pixelTypeThe pixel format of the image data.
bitOrderThe order in which bits in a byte are addressed within the image data.
byteOrderThe order in which bytes in a word are addressed within the image data.
reservedReserved - must be set to 0.
mipmapsUp to 32 mip-map image specifications.

TQ3MipmapImage

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

Fundamental Mipmap image type.

Fields

NameDescription
widthWidth of the mipmap, which must be a power of 2.
heightHeight of the mipmap, which must be a power of 2.
rowBytesDistance in bytes from begining of one row of image data to the next.
offsetOffset in bytes from the begining of the image base to this mipmap.

TQ3Param2D

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

Fundamental 2D parametric point type.

Fields

NameDescription
uu component.
vv component.

TQ3Param3D

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

Fundamental 3D parametric point type.

Fields

NameDescription
uu component.
vv component.
ww component.

TQ3Pixmap

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

Fundamental Pixmap type.

Fields

NameDescription
imagePointer to (height*rowBytes) sized block of memory containing the image data.
widthWidth of the image.
heightHeight of the image.
rowBytesDistance in bytes from begining of one row of image data to the next.
pixelSizeSize in bits of each pixel.
pixelTypeThe pixel format of the image data. The format must be appropriate for pixelSize.
bitOrderThe order in which bits in a byte are addressed within the image data.
byteOrderThe order in which bytes in a word are addressed within the image data.

TQ3PlaneEquation

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

Fundamental plane equation type.

Fields

NameDescription
normalThe normal vector to the plane.
constantThe plane constant (the value d in the plane equation ax+by+cz+d=0).

TQ3Point2D

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

Fundamental 2D point type.

Fields

NameDescription
xx coordinate.
yy coordinate.

TQ3Point3D

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

Fundamental 3D point type.

Fields

NameDescription
xx coordinate.
yy coordinate.
zz coordinate.

TQ3PolarPoint

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

Fundamental polar point type.

Fields

NameDescription
rDistance along the radius vector from polar origin.
thetaAngle in radians between polar axis and the radius vector.

TQ3Quaternion

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

Fundamental Quaternion type.

Fields

NameDescription
ww component.
xx component.
yy component.
zz component.

TQ3RationalPoint3D

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

Fundamental 3D rational point type.

Fields

NameDescription
xx coordinate.
yy coordinate.
wPoint weight.

TQ3RationalPoint4D

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

Fundamental 4D rational point type.

Fields

NameDescription
xx coordinate.
yy coordinate.
zz coordinate.
wPoint weight.

TQ3Ray3D

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

Fundamental ray type.

Fields

NameDescription
originOrigin of ray.
directionDirection of ray.

TQ3Sphere

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

Fundamental sphere type.

Fields

NameDescription
originOrigin of sphere.
radiusRadius of sphere.

TQ3SphericalPoint

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

Fundamental spherical point type.

Fields

NameDescription
rhoDistance along the radius vector from polar origin.
thetaAngle in radians between x axis and the projection of the radius vector onto the xy plane.
phiAngle 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;

Fundamental storage Pixmap type.

Fields

NameDescription
imageA storage object that contains the image data.
widthWidth of the image.
heightHeight of the image.
rowBytesDistance in bytes from begining of one row of image data to the next.
pixelSizeSize in bits of each pixel.
pixelTypeThe pixel format of the image data. The format must be appropriate for pixelSize.
bitOrderThe order in which bits in a byte are addressed within the image data.
byteOrderThe order in which bytes in a word are addressed within the image data.

TQ3SubClassData

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

Object sub-class type.

Fields

NameDescription
numClassesThe number of types contained in classTypes.
classTypesThe types of the sub-classes.

TQ3Tangent2D

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

Fundamental 2D parametric surface tangent type.

Fields

NameDescription
uTangentTangent in the u direction.
vTangentTangent in the v direction.

TQ3Tangent3D

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

Fundamental 3D parametric surface tangent type.

Fields

NameDescription
uTangentTangent in the u direction.
vTangentTangent in the v direction.
wTangentTangent in the w direction.

TQ3Vector2D

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

Fundamental 2D vector type.

Fields

NameDescription
xx coordinate.
yy coordinate.

TQ3Vector3D

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

Fundamental 3D vector type.

Fields

NameDescription
xx coordinate.
yy coordinate.
zz coordinate.

TQ3Vertex3D

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

Fundamental vertex type.

Fields

NameDescription
pointLocation of the vertex.
attributeSetAttribute set for the vertex.

Copyright © 1999-2003 Quesa Developers — last updated on 8/10/2003