Q3Comment_Write |
( TQ3Status ) Q3Comment_Write ( char *comment, TQ3FileObject theFile );
Write a comment to a file.
- comment
- The comment to write to the file.
- theFile
- The file to write to.
Q3FileFormatClass_GetFormatNameString |
( TQ3Status ) Q3FileFormatClass_GetFormatNameString ( TQ3ObjectType formatClassType, TQ3ObjectClassNameString formatClassString );
Get the user-visible name of a file format.
The user visible name is suitable for display in a menu or window.
This function is not available in QD3D.
- formatClassType
- The class type of the file format to query.
- formatClassString
- Receives the name of the file format.
Q3FileFormat_GenericReadBinSwap_16 |
( TQ3Status ) Q3FileFormat_GenericReadBinSwap_16 ( TQ3FileFormatObject format, TQ3Int16 *data );
Read and endian swap a TQ3Int16 from a file format.
This function is not available in QD3D.
- format
- The file format to read with.
- data
- Receives the data read from the file format.
Q3FileFormat_GenericReadBinSwap_32 |
( TQ3Status ) Q3FileFormat_GenericReadBinSwap_32 ( TQ3FileFormatObject format, TQ3Int32 *data );
Read and endian swap a TQ3Int32 from a file format.
This function is not available in QD3D.
- format
- The file format to read with.
- data
- Receives the data read from the file format.
Q3FileFormat_GenericReadBinSwap_64 |
( TQ3Status ) Q3FileFormat_GenericReadBinSwap_64 ( TQ3FileFormatObject format, TQ3Int64 *data );
Read and endian swap a TQ3Int64 from a file format.
This function is not available in QD3D.
- format
- The file format to read with.
- data
- Receives the data read from the file format.
Q3FileFormat_GenericReadBinary_16 |
( TQ3Status ) Q3FileFormat_GenericReadBinary_16 ( TQ3FileFormatObject format, TQ3Int16 *data );
Read a TQ3Int16 from a file format.
This function is not available in QD3D.
- format
- The file format to read with.
- data
- Receives the data read from the file format.
Q3FileFormat_GenericReadBinary_32 |
( TQ3Status ) Q3FileFormat_GenericReadBinary_32 ( TQ3FileFormatObject format, TQ3Int32 *data );
Read a TQ3Int32 from a file format.
This function is not available in QD3D.
- format
- The file format to read with.
- data
- Receives the data read from the file format.
Q3FileFormat_GenericReadBinary_64 |
( TQ3Status ) Q3FileFormat_GenericReadBinary_64 ( TQ3FileFormatObject format, TQ3Int64 *data );
Read a TQ3Int64 from a file format.
This function is not available in QD3D.
- format
- The file format to read with.
- data
- Receives the data read from the file format.
Q3FileFormat_GenericReadBinary_8 |
( TQ3Status ) Q3FileFormat_GenericReadBinary_8 ( TQ3FileFormatObject format, TQ3Int8 *data );
Read a TQ3Int8 from a file format.
This function is not available in QD3D.
- format
- The file format to read with.
- data
- Receives the data read from the file format.
Q3FileFormat_GenericReadBinary_Raw |
( TQ3Status ) Q3FileFormat_GenericReadBinary_Raw ( TQ3FileFormatObject format, unsigned char *data, TQ3Uns32 length );
Read a block of data from a file format.
This function is not available in QD3D.
- format
- The file format to read with.
- data
- Receives the data read from the file format.
- length
- The number of bytes to read from the file format.
Q3FileFormat_GenericReadBinary_String |
( TQ3Status ) Q3FileFormat_GenericReadBinary_String ( TQ3FileFormatObject format, char *data, TQ3Uns32 *length );
Read a string from a file format.
This function is not available in QD3D.
- format
- The file format to read with.
- data
- Receives the data read from the file format.
- length
- Receives the number of bytes written to data.
Q3FileFormat_GenericReadText_ReadUntilChars |
( TQ3Status ) Q3FileFormat_GenericReadText_ReadUntilChars ( TQ3FileFormatObject format, char *buffer, char *chars, TQ3Uns32 numChars, TQ3Boolean blanks, TQ3Int32 *foundChar, TQ3Uns32 maxLen, TQ3Uns32 *charsRead );
Read until characters have been found from a file format.
This function is not available in QD3D.
- format
- The file format to read with.
- buffer
- The buffer to read to.
- chars
- The list of "stop" characters.
- numChars
- The number of characters in chars.
- blanks
- Should reading stop on any characters < 0x20.
- foundChar
- The character which caused reading to stop.
- maxLen
- The maximum number of characters to read.
- charsRead
- Receives the number of characters read.
Q3FileFormat_GenericReadText_SkipBlanks |
( TQ3Status ) Q3FileFormat_GenericReadText_SkipBlanks ( TQ3FileFormatObject format );
Read and discard whitespace from a file format.
This function is not available in QD3D.
- format
- The file format to read with.
Q3FileFormat_GenericWriteBinSwap_16 |
( TQ3Status ) Q3FileFormat_GenericWriteBinSwap_16 ( TQ3FileFormatObject format, const TQ3Int16 *data );
Endian swap and write a TQ3Int16 to a file format.
This function is not available in QD3D.
- format
- The file format to write with.
- data
- The data to write to the file format.
Q3FileFormat_GenericWriteBinSwap_32 |
( TQ3Status ) Q3FileFormat_GenericWriteBinSwap_32 ( TQ3FileFormatObject format, const TQ3Int32 *data );
Endian swap and write a TQ3Int32 to a file format.
This function is not available in QD3D.
- format
- The file format to write with.
- data
- The data to write to the file format.
Q3FileFormat_GenericWriteBinSwap_64 |
( TQ3Status ) Q3FileFormat_GenericWriteBinSwap_64 ( TQ3FileFormatObject format, const TQ3Int64 *data );
Endian swap and write a TQ3Int64 to a file format.
This function is not available in QD3D.
- format
- The file format to write with.
- data
- The data to write to the file format.
Q3FileFormat_GenericWriteBinary_16 |
( TQ3Status ) Q3FileFormat_GenericWriteBinary_16 ( TQ3FileFormatObject format, const TQ3Int16 *data );
Write a TQ3Int16 to a file format.
This function is not available in QD3D.
- format
- The file format to write with.
- data
- The data to write to the file format.
Q3FileFormat_GenericWriteBinary_32 |
( TQ3Status ) Q3FileFormat_GenericWriteBinary_32 ( TQ3FileFormatObject format, const TQ3Int32 *data );
Write a TQ3Int32 to a file format.
This function is not available in QD3D.
- format
- The file format to write with.
- data
- The data to write to the file format.
Q3FileFormat_GenericWriteBinary_64 |
( TQ3Status ) Q3FileFormat_GenericWriteBinary_64 ( TQ3FileFormatObject format, const TQ3Int64 *data );
Write a TQ3Int64 to a file format.
This function is not available in QD3D.
- format
- The file format to write with.
- data
- The data to write to the file format.
Q3FileFormat_GenericWriteBinary_8 |
( TQ3Status ) Q3FileFormat_GenericWriteBinary_8 ( TQ3FileFormatObject format, const TQ3Int8 *data );
Write a TQ3Int8 to a file format.
This function is not available in QD3D.
- format
- The file format to write with.
- data
- The data to write to the file format.
Q3FileFormat_GenericWriteBinary_Raw |
( TQ3Status ) Q3FileFormat_GenericWriteBinary_Raw ( TQ3FileFormatObject format, const unsigned char *data, TQ3Uns32 length );
Write a block of data to a file format.
This function is not available in QD3D.
- format
- The file format to write with.
- data
- The data to write to the file format.
- length
- The number of bytes to write.
Q3FileFormat_GenericWriteBinary_String |
( TQ3Status ) Q3FileFormat_GenericWriteBinary_String ( TQ3FileFormatObject format, const char *data, TQ3Uns32 *length );
Write a string to a file format.
This function is not available in QD3D.
- format
- The file format to write with.
- data
- The data to write to the file format.
- length
- The number of bytes to write.
Q3FileFormat_GetConfigurationData |
( TQ3Status ) Q3FileFormat_GetConfigurationData ( TQ3FileFormatObject format, unsigned char *dataBuffer, TQ3Uns32 bufferSize, TQ3Uns32 *actualDataSize );
Get the configuration data for a file format.
Configuration data should be saved by the application in a manner appropriate
for the current platform (e.g., the Registry on Windows or a .plist file on
the Mac), tagging it with the file format's type for later identification.
If dataBuffer is NULL, the size of data required to store the configuration
data will be returned in actualDataSize.
Otherwise bufferSize should be set to the number of bytes pointed to by
dataBuffer, and actualDataSize will receive the number of bytes written to
dataBuffer.
This function is not available in QD3D.
- format
- The file format to query.
- dataBuffer
- Receives the file format configuration data. May be NULL.
- bufferSize
- The number of bytes pointed to by dataBuffer. May be 0.
- actualDataSize
- Receives the number of bytes required for, or written to, dataBuffer.
Q3FileFormat_GetType |
( TQ3ObjectType ) Q3FileFormat_GetType ( TQ3FileFormatObject format );
Get the type of a file format.
This function is not available in QD3D.
- format
- The file format to query.
Q3FileFormat_HasModalConfigure |
( TQ3Boolean ) Q3FileFormat_HasModalConfigure ( TQ3FileFormatObject format );
Does a file format have a modal configure dialog?
This function is not available in QD3D.
- format
- The file format to query.
Q3FileFormat_ModalConfigure |
( TQ3Status ) Q3FileFormat_ModalConfigure ( TQ3FileFormatObject format, TQ3DialogAnchor dialogAnchor, TQ3Boolean *canceled );
Invoke a file format's modal configure dialog.
If the file format provides a user interface for adjusting its preferences,
a modal configure dialog can be displayed by this function.
The cancel/accept state of the dialog is returned through the cancelled
parameter.
After a configure dialog has been accepted, the current preferences
should be retrieved with Q3FileFormat_GetConfigurationData and stored by
the application for later recall.
This function is not available in QD3D.
- format
- The file format whose configure dialog is to be displayed.
- dialogAnchor
- Platform-specific dialog data.
- cancelled
- Receives the OK/Cancel state of the dialog.
Q3FileFormat_NewFromType |
( TQ3FileFormatObject ) Q3FileFormat_NewFromType ( TQ3ObjectType fformatObjectType );
Create a new file format object.
This function is not available in QD3D.
- fformatObjectType
- The type of the file format.
Q3FileFormat_SetConfigurationData |
( TQ3Status ) Q3FileFormat_SetConfigurationData ( TQ3RendererObject format, unsigned char *dataBuffer, TQ3Uns32 bufferSize );
Set the configuration data for a file format.
The configuration must have been obtained with a previous call to
Q3FileFormat_GetConfigurationData.
This function is not available in QD3D.
- format
- The file format to update.
- dataBuffer
- The configuration data for the file format.
- bufferSize
- The number of bytes pointed to by dataBuffer.
Q3File_Cancel |
( TQ3Status ) Q3File_Cancel ( TQ3FileObject theFile );
Cancel a read/write operation on a file.
- theFile
- The file to cancel the current read/write operation for.
Q3File_Close |
( TQ3Status ) Q3File_Close ( TQ3FileObject theFile );
Close a file object.
When a file object is deleted (i.e., its last reference is disposed),
it is automatically closed, therefore you may not need to call
Q3File_Close.
- theFile
- The file object.
Q3File_GetExternalReferences |
( TQ3GroupObject ) Q3File_GetExternalReferences ( TQ3FileObject theFile );
Get the external references of a file.
- theFile
- The file to query.
Q3File_GetFileFormat |
( TQ3FileFormatObject ) Q3File_GetFileFormat ( TQ3FileObject theFile );
Get the file format used to process a file.
This function is not available in QD3D.
- theFile
- The file to query.
Q3File_GetMode |
( TQ3Status ) Q3File_GetMode ( TQ3FileObject theFile, TQ3FileMode *mode );
Determine the mode of an open file object.
- theFile
- The file object.
- mode
- Receives the current mode mask.
Q3File_GetNextObjectType |
( TQ3ObjectType ) Q3File_GetNextObjectType ( TQ3FileObject theFile );
Get the type of the next object in a file.
- theFile
- The file to query.
Q3File_GetReadInGroup |
( TQ3Status ) Q3File_GetReadInGroup ( TQ3FileObject theFile, TQ3FileReadGroupState *readGroupState );
Get the group reading state for a file.
- theFile
- The file to query.
- readGroupState
- Receives the group reading state for the file.
Q3File_GetStorage |
( TQ3Status ) Q3File_GetStorage ( TQ3FileObject theFile, TQ3StorageObject *storage );
Get the storage object for a file.
- theFile
- The file to query.
- storage
- Receives the storage object for the file.
Q3File_GetVersion |
( TQ3Status ) Q3File_GetVersion ( TQ3FileObject theFile, TQ3FileVersion *version );
Get the file format version of an open file.
- theFile
- The file object.
- version
- Receives the file format version.
Q3File_IsEndOfContainer |
( TQ3Boolean ) Q3File_IsEndOfContainer ( TQ3FileObject theFile, TQ3Object rootObject );
Has the end of the current container in a file been reached?
- theFile
- The file to query.
- rootObject
- The root object in the container.
Q3File_IsEndOfData |
( TQ3Boolean ) Q3File_IsEndOfData ( TQ3FileObject theFile );
Has the end of the data within a file been reached?
- theFile
- The file to query.
Q3File_IsEndOfFile |
( TQ3Boolean ) Q3File_IsEndOfFile ( TQ3FileObject theFile );
Has the end of a file been reached?
- theFile
- The file to query.
Q3File_IsNextObjectOfType |
( TQ3Boolean ) Q3File_IsNextObjectOfType ( TQ3FileObject theFile, TQ3ObjectType ofType );
Test the type of the next object in a file.
- theFile
- The file to query.
- ofType
- The type to compare against.
Q3File_IsOpen |
( TQ3Status ) Q3File_IsOpen ( TQ3FileObject theFile, TQ3Boolean *isOpen );
Determines whether a file object is open.
- theFile
- The file object.
- isOpen
- Receives kQ3True if the file is open.
Q3File_MarkAsExternalReference |
( TQ3Status ) Q3File_MarkAsExternalReference ( TQ3FileObject theFile, TQ3SharedObject sharedObject );
Mark an object within a file as being an external reference.
- theFile
- The file to update.
- sharedObject
- The object to mark as external.
Q3File_New |
( TQ3FileObject ) Q3File_New (void);
Create a new file object.
Q3File_OpenRead |
( TQ3Status ) Q3File_OpenRead ( TQ3FileObject theFile, TQ3FileMode *mode );
Open a file object for reading.
Associate a FileFormat object with the File
The file object must already have a storage object associated
with it, and must not already be open.
- theFile
- The file object.
- mode
- Receives a combination of TQ3FileModeMasks values if the file is a 3DMF file, otherway it receives the choosed file format signature. Pass NULL if you don't need this information.
Q3File_OpenWrite |
( TQ3Status ) Q3File_OpenWrite ( TQ3FileObject theFile, TQ3FileMode mode );
Open a file object for writing.
The file object must have a storage object associated with it,
and must not already be open.
Currently, Quesa ignores the mode parameter and writes in binary stream mode.
- theFile
- The file object.
- mode
- A combination of TQ3FileModeMasks values, or the file format class signature.
Q3File_ReadObject |
( TQ3Object ) Q3File_ReadObject ( TQ3FileObject theFile );
Read an object from a 3DMF file.
The file must already be open for reading.
the typical usage of this function and any special requirements.
- theFile
- The file object.
Q3File_SetIdleMethod |
( TQ3Status ) Q3File_SetIdleMethod ( TQ3FileObject theFile, TQ3FileIdleMethod idle, const void *idleData );
Set the idle method for a file.
- theFile
- The file to update.
- idle
- The idle callback.
- idleData
- Application-specific data for the idle callback.
Q3File_SetReadInGroup |
( TQ3Status ) Q3File_SetReadInGroup ( TQ3FileObject theFile, TQ3FileReadGroupState readGroupState );
Set the group reading state for a file.
- theFile
- The file to update.
- readGroupState
- The new group reading state for the file.
Q3File_SetStorage |
( TQ3Status ) Q3File_SetStorage ( TQ3FileObject theFile, TQ3StorageObject storage );
Set the storage objectfor a file.
- theFile
- The file to query.
- storage
- The new storage object for the file.
Q3File_SkipObject |
( TQ3Status ) Q3File_SkipObject ( TQ3FileObject theFile );
Skip the next object in a file.
- theFile
- The file to process.
Q3Float32_Read |
( TQ3Status ) Q3Float32_Read ( TQ3Float32 *data, TQ3FileObject theFile );
Read a TQ3Float32 from a file.
- data
- Receives the data read from the file.
- theFile
- The file to read from.
Q3Float32_ReadArray |
( TQ3Status ) Q3Float32_ReadArray ( TQ3Uns32 numFloats, TQ3Float32* floatArray, TQ3FileObject theFile );
Read an array of 32-bit floating point numbers from a file object.
Calling this function has somewhat less overhead than calling
Q3Float32_Read repeatedly.
This function is not available in QD3D.
- numFloats
- Number of numbers to read.
- floatArray
- Address of array to receive the numbers.
- theFile
- A file object.
Q3Float32_Write |
( TQ3Status ) Q3Float32_Write ( TQ3Float32 data, TQ3FileObject theFile );
Write a TQ3Float32 to a file.
- data
- The data to write to the file.
- theFile
- The file to write to.
Q3Float64_Read |
( TQ3Status ) Q3Float64_Read ( TQ3Float64 *data, TQ3FileObject theFile );
Read a TQ3Float64 from a file.
- data
- Receives the data read from the file.
- theFile
- The file to read from.
Q3Float64_Write |
( TQ3Status ) Q3Float64_Write ( TQ3Float64 data, TQ3FileObject theFile );
Write a TQ3Float64 to a file.
- data
- The data to write to the file.
- theFile
- The file to write to.
Q3Int16_Read |
( TQ3Status ) Q3Int16_Read ( TQ3Int16 *data, TQ3FileObject theFile );
Read a TQ3Int16 from a file.
- data
- Receives the data read from the file.
- theFile
- The file to read from.
Q3Int16_Write |
( TQ3Status ) Q3Int16_Write ( TQ3Int16 data, TQ3FileObject theFile );
Write a TQ3Int16 to a file.
- data
- The data to write to the file.
- theFile
- The file to write to.
Q3Int32_Read |
( TQ3Status ) Q3Int32_Read ( TQ3Int32 *data, TQ3FileObject theFile );
Read a TQ3Int32 from a file.
- data
- Receives the data read from the file.
- theFile
- The file to read from.
Q3Int32_Write |
( TQ3Status ) Q3Int32_Write ( TQ3Int32 data, TQ3FileObject theFile );
Write a TQ3Int32 to a file.
- data
- The data to write to the file.
- theFile
- The file to write to.
Q3Int64_Read |
( TQ3Status ) Q3Int64_Read ( TQ3Int64 *data, TQ3FileObject theFile );
Read a TQ3Int64 from a file.
- data
- Receives the data read from the file.
- theFile
- The file to read from.
Q3Int64_Write |
( TQ3Status ) Q3Int64_Write ( TQ3Int64 data, TQ3FileObject theFile );
Write a TQ3Int64 to a file.
- data
- The data to write to the file.
- theFile
- The file to write to.
Q3Int8_Read |
( TQ3Status ) Q3Int8_Read ( TQ3Int8 *data, TQ3FileObject theFile );
Read a TQ3Int8 from a file.
- data
- Receives the data read from the file.
- theFile
- The file to read from.
Q3Int8_Write |
( TQ3Status ) Q3Int8_Write ( TQ3Int8 data, TQ3FileObject theFile );
Write a TQ3Int8 to a file.
- data
- The data to write to the file.
- theFile
- The file to write to.
Q3Matrix4x4_Read |
( TQ3Status ) Q3Matrix4x4_Read ( TQ3Matrix4x4 *matrix4x4, TQ3FileObject theFile );
Read a TQ3Matrix4x4 from a file.
- matrix4x4
- Receives the matrix read from the file.
- theFile
- The file to read from.
Q3Matrix4x4_Write |
( TQ3Status ) Q3Matrix4x4_Write ( const TQ3Matrix4x4 *matrix4x4, TQ3FileObject theFile );
Write a TQ3Matrix4x4 to a file.
- matrix4x4
- The matrix to write to the file.
- theFile
- The file to write to.
Q3NewLine_Write |
( TQ3Status ) Q3NewLine_Write ( TQ3FileObject theFile );
Write a newline to a file.
- theFile
- The file to write to.
Q3Point2D_Read |
( TQ3Status ) Q3Point2D_Read ( TQ3Point2D *point2D, TQ3FileObject theFile );
Read a TQ3Point2D from a file.
- point2D
- Receives the point read from the file.
- theFile
- The file to read from.
Q3Point2D_Write |
( TQ3Status ) Q3Point2D_Write ( const TQ3Point2D *point2D, TQ3FileObject theFile );
Write a TQ3Point2D to a file.
- point2D
- The point to write to the file.
- theFile
- The file to write to.
Q3Point3D_Read |
( TQ3Status ) Q3Point3D_Read ( TQ3Point3D *point3D, TQ3FileObject theFile );
Read a TQ3Point3D from a file.
- point3D
- Receives the point read from the file.
- theFile
- The file to read from.
Q3Point3D_Write |
( TQ3Status ) Q3Point3D_Write ( const TQ3Point3D *point3D, TQ3FileObject theFile );
Write a TQ3Point3D to a file.
- point3D
- The point to write to the file.
- theFile
- The file to write to.
Q3RationalPoint3D_Read |
( TQ3Status ) Q3RationalPoint3D_Read ( TQ3RationalPoint3D *point3D, TQ3FileObject theFile );
Read a TQ3RationalPoint3D from a file.
- point3D
- Receives the point read from the file.
- theFile
- The file to read from.
Q3RationalPoint3D_Write |
( TQ3Status ) Q3RationalPoint3D_Write ( const TQ3RationalPoint3D *point3D, TQ3FileObject theFile );
Write a TQ3RationalPoint3D to a file.
- point3D
- The point to write to the file.
- theFile
- The file to write to.
Q3RationalPoint4D_Read |
( TQ3Status ) Q3RationalPoint4D_Read ( TQ3RationalPoint4D *point4D, TQ3FileObject theFile );
Read a TQ3RationalPoint4D from a file.
- point4D
- Receives the point read from the file.
- theFile
- The file to read from.
Q3RationalPoint4D_Write |
( TQ3Status ) Q3RationalPoint4D_Write ( const TQ3RationalPoint4D *point4D, TQ3FileObject theFile );
Write a TQ3RationalPoint4D to a file.
- point4D
- The point to write to the file.
- theFile
- The file to write to.
Q3RawData_Read |
( TQ3Status ) Q3RawData_Read ( unsigned char *data, TQ3Uns32 size, TQ3FileObject theFile );
Read a block of data from a file.
- data
- Receives the data read from the file.
- size
- The number of bytes to read.
- theFile
- The file to read from.
Q3RawData_Write |
( TQ3Status ) Q3RawData_Write ( const unsigned char *data, TQ3Uns32 size, TQ3FileObject theFile );
Write a block of data to a file.
- data
- The data to write to the file.
- size
- The number of bytes to write.
- theFile
- The file to write to.
Q3Shared_ClearEditTracking |
( TQ3Status ) Q3Shared_ClearEditTracking ( TQ3SharedObject sharedObject );
Clear the edit tracking state of a shared object.
- sharedObject
- The shared object to update.
Q3Shared_GetEditTrackingState |
( TQ3Boolean ) Q3Shared_GetEditTrackingState ( TQ3SharedObject sharedObject );
Get the edit tracking state of a shared object.
- sharedObject
- The shared object to update.
Q3Size_Pad |
( TQ3Size ) Q3Size_Pad ( TQ3Size size );
Pad a number of bytes to be long-word aligned.
In other words, this rounds a number up to a multiple of 4.
- size
- An unsigned integer.
Q3String_Read |
( TQ3Status ) Q3String_Read ( char *data, TQ3Uns32 *length, TQ3FileObject theFile );
Read a C string from a file.
Note that the length parameter is an output-only parameter. That is,
this function does not know the size of your buffer, it simply
assumes that you have allocated kQ3StringMaximumLength bytes.
If you pass NULL for the buffer, Q3String_Read will still
find the length of the string, but will leave the file object's position
at the beginning of the string.
If it reads a string of length at least kQ3StringMaximumLength,
and you have passed a non-NULL buffer, then Quesa will post the warning
kQ3WarningStringExceedsMaximumLength.
- data
- Buffer to receive string data, of size
kQ3StringMaximumLength, or NULL.- length
- Receives length in bytes of string data that was read, not including the terminating NUL character.
- theFile
- A file object.
Q3String_ReadUnlimited |
( TQ3Status ) Q3String_ReadUnlimited ( char *data, TQ3Uns32 *ioLength, TQ3FileObject theFile );
Read a NUL-terminated string (C string) from a file.
Unlike the QD3D function Q3String_Read, this function is not
limited to reading at most kQ3StringMaximumLength bytes. Note that
the length parameter is an input-output parameter.
If you pass NULL for the buffer, Q3String_ReadUnlimited will still
find the length of the string, but will leave the file object's position
at the beginning of the string. Therefore, you can read a string of
unknown size as follows:
Q3String_Read( NULL, &stringSize, theFile ); stringSize += 1; // make room for terminal NUL byte buffer = Q3Memory_Allocate( stringSize ); Q3String_Read( buffer, &stringSize, theFile );
kQ3WarningStringExceedsMaximumLength.
- data
- Buffer to receive string data, or NULL.
- ioLength
- Pass the size of your buffer. Receives the number of bytes of string data found in the file, not including the terminal NUL byte, even if it did not all fit in the buffer.
- theFile
- A file object.
Q3String_Write |
( TQ3Status ) Q3String_Write ( const char *data, TQ3FileObject theFile );
Write a NUL-terminated string (C string) to a file.
This writes a NUL-terminated string to a file, and if necessary writes
up to 3 more pad bytes. If the string's length, including the terminal
NUL byte, exceeds kQ3StringMaximumLength, then the error
kQ3ErrorStringExceedsMaximumLength will be posted and
kQ3StringMaximumLength bytes will be written.
- data
- A NUL-terminated string.
- theFile
- A file object.
Q3String_WriteUnlimited |
( TQ3Status ) Q3String_WriteUnlimited ( const char *data, TQ3FileObject theFile );
Write a NUL-terminated string (C string) to a file. If necessary it writes
up to 3 more pad bytes to make the total number of bytes a multiple of 4.
This function is not available in QuickDraw 3D.
- data
- A NUL-terminated string.
- theFile
- A file object.
Q3Tangent2D_Read |
( TQ3Status ) Q3Tangent2D_Read ( TQ3Tangent2D *tangent2D, TQ3FileObject theFile );
Read a TQ3Tangent2D from a file.
- tangent2D
- Receives the tangent read from the file.
- theFile
- The file to read from.
Q3Tangent2D_Write |
( TQ3Status ) Q3Tangent2D_Write ( const TQ3Tangent2D *tangent2D, TQ3FileObject theFile );
Write a TQ3Tangent2D to a file.
- tangent2D
- The tangent to write to the file.
- theFile
- The file to write to.
Q3Tangent3D_Read |
( TQ3Status ) Q3Tangent3D_Read ( TQ3Tangent3D *tangent3D, TQ3FileObject theFile );
Read a TQ3Tangent3D from a file.
- tangent3D
- Receives the tangent read from the file.
- theFile
- The file to read from.
Q3Tangent3D_Write |
( TQ3Status ) Q3Tangent3D_Write ( const TQ3Tangent3D *tangent3D, TQ3FileObject theFile );
Write a TQ3Tangent3D to a file.
- tangent3D
- The tangent to write to the file.
- theFile
- The file to write to.
Q3UnknownBinary_EmptyData |
( TQ3Status ) Q3UnknownBinary_EmptyData ( TQ3UnknownBinaryData *unknownBinaryData );
Release the data of an unknown binary object.
- unknownBinaryData
- The binary data to release.
Q3UnknownBinary_EmptyTypeString |
( TQ3Status ) Q3UnknownBinary_EmptyTypeString ( char **typeString );
Release the type string of an unknown binary object.
- typeString
- The type string to release.
Q3UnknownBinary_GetData |
( TQ3Status ) Q3UnknownBinary_GetData ( TQ3UnknownObject unknownObject, TQ3UnknownBinaryData *unknownBinaryData );
Get the data from an unknown binary object.
- unknownObject
- The object to query.
- unknownBinaryData
- Receives the binary data from the object.
Q3UnknownBinary_GetTypeString |
( TQ3Status ) Q3UnknownBinary_GetTypeString ( TQ3UnknownObject unknownObject, char **typeString );
Get the type string of an unknown binary object.
- unknownObject
- The object to query.
- typeString
- Receives the type string from the object.
Q3UnknownText_EmptyData |
( TQ3Status ) Q3UnknownText_EmptyData ( TQ3UnknownTextData *unknownTextData );
Release the data of an unknown text object.
- unknownTextData
- The text data to release.
Q3UnknownText_GetData |
( TQ3Status ) Q3UnknownText_GetData ( TQ3UnknownObject unknownObject, TQ3UnknownTextData *unknownTextData );
Get the data from an unknown text object.
- unknownObject
- The object to query.
- unknownTextData
- Receives the text data from the object.
Q3Unknown_GetDirtyState |
( TQ3Status ) Q3Unknown_GetDirtyState ( TQ3UnknownObject unknownObject, TQ3Boolean *isDirty );
Get the dirty state of an unknown object.
- unknownObject
- The object to query.
- isDirty
- Receives the dirty state of the object.
Q3Unknown_GetType |
( TQ3ObjectType ) Q3Unknown_GetType ( TQ3UnknownObject unknownObject );
Get the type of an unknown object.
- unknownObject
- The object to query.
Q3Unknown_SetDirtyState |
( TQ3Status ) Q3Unknown_SetDirtyState ( TQ3UnknownObject unknownObject, TQ3Boolean isDirty );
Set the dirty state for an unknown object.
- unknownObject
- The object to update.
- isDirty
- The new dirty state of the object.
Q3Uns16_Read |
( TQ3Status ) Q3Uns16_Read ( TQ3Uns16 *data, TQ3FileObject theFile );
Read a TQ3Uns16 from a file.
- data
- Receives the data read from the file.
- theFile
- The file to read from.
Q3Uns16_ReadArray |
( TQ3Status ) Q3Uns16_ReadArray ( TQ3Uns32 numNums, TQ3Uns16* intArray, TQ3FileObject theFile );
Read an array of 16-bit unsigned integers from a file object.
Calling this function has somewhat less overhead than calling
Q3Uns16_Read repeatedly.
This function is not available in QD3D.
- numNums
- Number of numbers to read.
- intArray
- Address of array to receive the numbers.
- theFile
- A file object.
Q3Uns16_Write |
( TQ3Status ) Q3Uns16_Write ( TQ3Uns16 data, TQ3FileObject theFile );
Write a TQ3Uns16 to a file.
- data
- The data to write to the file.
- theFile
- The file to write to.
Q3Uns32_Read |
( TQ3Status ) Q3Uns32_Read ( TQ3Uns32 *data, TQ3FileObject theFile );
Read a TQ3Uns32 from a file.
- data
- Receives the data read from the file.
- theFile
- The file to read from.
Q3Uns32_ReadArray |
( TQ3Status ) Q3Uns32_ReadArray ( TQ3Uns32 numNums, TQ3Uns32* intArray, TQ3FileObject theFile );
Read an array of 32-bit unsigned integers from a file object.
Calling this function has somewhat less overhead than calling
Q3Uns32_Read repeatedly.
This function is not available in QD3D.
- numNums
- Number of numbers to read.
- intArray
- Address of array to receive the numbers.
- theFile
- A file object.
Q3Uns32_Write |
( TQ3Status ) Q3Uns32_Write ( TQ3Uns32 data, TQ3FileObject theFile );
Write a TQ3Uns32 to a file.
- data
- The data to write to the file.
- theFile
- The file to write to.
Q3Uns64_Read |
( TQ3Status ) Q3Uns64_Read ( TQ3Uns64 *data, TQ3FileObject theFile );
Read a TQ3Uns64 from a file.
- data
- Receives the data read from the file.
- theFile
- The file to read from.
Q3Uns64_Write |
( TQ3Status ) Q3Uns64_Write ( TQ3Uns64 data, TQ3FileObject theFile );
Write a TQ3Uns64 to a file.
- data
- The data to write to the file.
- theFile
- The file to write to.
Q3Uns8_Read |
( TQ3Status ) Q3Uns8_Read ( TQ3Uns8 *data, TQ3FileObject theFile );
Read a TQ3Uns8 from a file.
- data
- Receives the data read from the file.
- theFile
- The file to read from.
Q3Uns8_ReadArray |
( TQ3Status ) Q3Uns8_ReadArray ( TQ3Uns32 numNums, TQ3Uns8* intArray, TQ3FileObject theFile );
Read an array of 8-bit unsigned integers from a file object.
Calling this function has somewhat less overhead than calling
Q3Uns8_Read repeatedly.
This function is not available in QD3D.
- numNums
- Number of numbers to read.
- intArray
- Address of array to receive the numbers.
- theFile
- A file object.
Q3Uns8_Write |
( TQ3Status ) Q3Uns8_Write ( TQ3Uns8 data, TQ3FileObject theFile );
Write a TQ3Uns8 to a file.
- data
- The data to write to the file.
- theFile
- The file to write to.
Q3Vector2D_Read |
( TQ3Status ) Q3Vector2D_Read ( TQ3Vector2D *vector2D, TQ3FileObject theFile );
Read a TQ3Vector2D from a file.
- vector2D
- Receives the vector read from the file.
- theFile
- The file to read from.
Q3Vector2D_Write |
( TQ3Status ) Q3Vector2D_Write ( const TQ3Vector2D *vector2D, TQ3FileObject theFile );
Write a TQ3Vector2D to a file.
- vector2D
- The vector to write to the file.
- theFile
- The file to write to.
Q3Vector3D_Read |
( TQ3Status ) Q3Vector3D_Read ( TQ3Vector3D *vector3D, TQ3FileObject theFile );
Read a TQ3Vector3D from a file.
- vector3D
- Receives the vector read from the file.
- theFile
- The file to read from.
Q3Vector3D_Write |
( TQ3Status ) Q3Vector3D_Write ( const TQ3Vector3D *vector3D, TQ3FileObject theFile );
Write a TQ3Vector3D to a file.
- vector3D
- The vector to write to the file.
- theFile
- The file to write to.
Q3ViewHints_GetAttributeSet |
( TQ3Status ) Q3ViewHints_GetAttributeSet ( TQ3ViewHintsObject viewHints, TQ3AttributeSet *attributeSet );
Get the attribute set from a view hints object.
- viewHints
- The view hints to query.
- attributeSet
- Receives the attribute set from the view hints.
Q3ViewHints_GetCamera |
( TQ3Status ) Q3ViewHints_GetCamera ( TQ3ViewHintsObject viewHints, TQ3CameraObject *camera );
Get the camera from a view hints object.
- viewHints
- The view hints to query.
- camera
- Receives the camera from the view hints.
Q3ViewHints_GetClearImageColor |
( TQ3Status ) Q3ViewHints_GetClearImageColor ( TQ3ViewHintsObject viewHints, TQ3ColorARGB *color );
Get the clear image color from a view hints object.
- viewHints
- The view hints to query.
- color
- Receives the clear image color from the view hints.
Q3ViewHints_GetClearImageMethod |
( TQ3Status ) Q3ViewHints_GetClearImageMethod ( TQ3ViewHintsObject viewHints, TQ3DrawContextClearImageMethod *clearMethod );
Get the clear image method from a view hints object.
- viewHints
- The view hints to query.
- clearMethod
- Receives the clear image method from the view hints.
Q3ViewHints_GetDimensions |
( TQ3Status ) Q3ViewHints_GetDimensions ( TQ3ViewHintsObject viewHints, TQ3Uns32 *width, TQ3Uns32 *height );
Get the dimensions of a view hints object.
- viewHints
- The view hints to query.
- width
- Receives the width from the view hints.
- height
- Receives the height from the view hints.
Q3ViewHints_GetDimensionsState |
( TQ3Status ) Q3ViewHints_GetDimensionsState ( TQ3ViewHintsObject viewHints, TQ3Boolean *isValid );
Get the dimension state of a view hints object.
- viewHints
- The view hints to query.
- isValid
- Receives the dimension state from the view hints.
Q3ViewHints_GetLightGroup |
( TQ3Status ) Q3ViewHints_GetLightGroup ( TQ3ViewHintsObject viewHints, TQ3GroupObject *lightGroup );
Get the light group from a view hints object.
- viewHints
- The view hints to query.
- lightGroup
- Receives the light group from the view hints.
Q3ViewHints_GetMask |
( TQ3Status ) Q3ViewHints_GetMask ( TQ3ViewHintsObject viewHints, TQ3Bitmap *mask );
Get the mask from a view hints object.
- viewHints
- The view hints to query.
- mask
- Receives the mask from the view hints.
Q3ViewHints_GetMaskState |
( TQ3Status ) Q3ViewHints_GetMaskState ( TQ3ViewHintsObject viewHints, TQ3Boolean *isValid );
Get the mask state from a view hints object.
- viewHints
- The view hints to query.
- isValid
- Receives the mask state from the view hints.
Q3ViewHints_GetRenderer |
( TQ3Status ) Q3ViewHints_GetRenderer ( TQ3ViewHintsObject viewHints, TQ3RendererObject *renderer );
Get the renderer from a view hints object.
- viewHints
- The view hints to query.
- renderer
- Receives the renderer from the view hints.
Q3ViewHints_New |
( TQ3ViewHintsObject ) Q3ViewHints_New ( TQ3ViewObject view );
Create a new view hints object.
- view
- The view the view hints should be based on.
Q3ViewHints_SetAttributeSet |
( TQ3Status ) Q3ViewHints_SetAttributeSet ( TQ3ViewHintsObject viewHints, TQ3AttributeSet attributeSet );
Set the attribute set for a view hints object.
- viewHints
- The view hints to update.
- attributeSet
- The new attribute set for the view hints.
Q3ViewHints_SetCamera |
( TQ3Status ) Q3ViewHints_SetCamera ( TQ3ViewHintsObject viewHints, TQ3CameraObject camera );
Set the camera for a view hints object.
- viewHints
- The view hints to update.
- camera
- The new camera for the view hints.
Q3ViewHints_SetClearImageColor |
( TQ3Status ) Q3ViewHints_SetClearImageColor ( TQ3ViewHintsObject viewHints, const TQ3ColorARGB *color );
Set the clear image color of a view hints object.
- viewHints
- The view hints to update.
- color
- The new clear image color for the view hints.
Q3ViewHints_SetClearImageMethod |
( TQ3Status ) Q3ViewHints_SetClearImageMethod ( TQ3ViewHintsObject viewHints, TQ3DrawContextClearImageMethod clearMethod );
Set the clear image method of a view hints object.
- viewHints
- The view hints to update.
- clearMethod
- The new clear image method for the view hints.
Q3ViewHints_SetDimensions |
( TQ3Status ) Q3ViewHints_SetDimensions ( TQ3ViewHintsObject viewHints, TQ3Uns32 width, TQ3Uns32 height );
Set the dimensions of a view hints object.
- viewHints
- The view hints to update.
- width
- The new width for the view hints.
- height
- The new height for the view hints.
Q3ViewHints_SetDimensionsState |
( TQ3Status ) Q3ViewHints_SetDimensionsState ( TQ3ViewHintsObject viewHints, TQ3Boolean isValid );
Set the dimension state of a view hints object.
- viewHints
- The view hints to update.
- isValid
- The new dimension state for the view hints.
Q3ViewHints_SetLightGroup |
( TQ3Status ) Q3ViewHints_SetLightGroup ( TQ3ViewHintsObject viewHints, TQ3GroupObject lightGroup );
Set the light group for a view hints object.
- viewHints
- The view hints to update.
- lightGroup
- The new light group for the view hints.
Q3ViewHints_SetMask |
( TQ3Status ) Q3ViewHints_SetMask ( TQ3ViewHintsObject viewHints, const TQ3Bitmap *mask );
Set the mask of a view hints object.
- viewHints
- The view hints to update.
- mask
- The new mask for the view hints.
Q3ViewHints_SetMaskState |
( TQ3Status ) Q3ViewHints_SetMaskState ( TQ3ViewHintsObject viewHints, TQ3Boolean isValid );
Set the mask state of a view hints object.
- viewHints
- The view hints to update.
- isValid
- The new mask state for the view hints.
Q3ViewHints_SetRenderer |
( TQ3Status ) Q3ViewHints_SetRenderer ( TQ3ViewHintsObject viewHints, TQ3RendererObject renderer );
Set the renderer for a view hints object.
- viewHints
- The view hints to update.
- renderer
- The new renderer for the view hints.
Q3View_EndWriting |
( TQ3ViewStatus ) Q3View_EndWriting ( TQ3ViewObject view );
End a writing loop.
- view
- The view to end writing to.
Q3View_StartWriting |
( TQ3Status ) Q3View_StartWriting ( TQ3ViewObject view, TQ3FileObject theFile );
Start a writing loop.
- view
- The view to start writing to.
- theFile
- The file to start writing to.
Q3XView_SubmitSubObjectData |
( TQ3Status ) Q3XView_SubmitSubObjectData ( TQ3ViewObject view, TQ3XObjectClass objectClass, TQ3Uns32 size, void *data, TQ3XDataDeleteMethod deleteData );
Submit a sub-object to a view for writing.
- view
- The view being submitted to.
- objectClass
- The class of the object being submitted.
- size
- The number of bytes pointed to by data.
- data
- The data for the object.
- deleteData
- Delete callback to dispose of the data.
Q3XView_SubmitWriteData |
( TQ3Status ) Q3XView_SubmitWriteData ( TQ3ViewObject view, TQ3Size size, void *data, TQ3XDataDeleteMethod deleteData );
Submit data to a view for writing.
- view
- The view being submitted to.
- size
- The number of bytes pointed to by data.
- data
- The data to submit for writing.
- deleteData
- Delete callback to dispose of the data.
© 1999-2008 Quesa Developers (Last Updated 5/10/2008)