Assimp  v2.0 (November 2010)
Public Attributes
aiFile Struct Reference

C-API: File callbacks. More...

List of all members.

Public Attributes

aiFileTellProc FileSizeProc
 Callback to retrieve the size of the file, in bytes.
aiFileFlushProc FlushProc
 Callback to flush the file contents.
aiFileReadProc ReadProc
 Callback to read from a file.
aiFileSeek SeekProc
 Callback to set the current position of the file cursor (fseek())
aiFileTellProc TellProc
 Callback to retrieve the current position of the file cursor (ftell())
aiUserData UserData
 User-defined, opaque data.
aiFileWriteProc WriteProc
 Callback to write to a file.

Detailed Description

C-API: File callbacks.

Actually, it's a data structure to wrap a set of fXXXX (e.g fopen) replacement functions.

The default implementation of the functions utilizes the fXXX functions from the CRT. However, you can supply a custom implementation to Assimp by delivering a custom aiFileIO. Use this to enable reading from other sources, such as ZIP archives or memory locations.


Member Data Documentation

Callback to retrieve the size of the file, in bytes.

Callback to flush the file contents.

Callback to read from a file.

Callback to set the current position of the file cursor (fseek())

Callback to retrieve the current position of the file cursor (ftell())

User-defined, opaque data.

Callback to write to a file.


The documentation for this struct was generated from the following file: