Updating code sample for aiGetPredefinedLogStream.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@450 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
aramis_acg 2009-07-23 20:16:05 +00:00
parent 8b3b63a5b3
commit 6674f1587d
1 changed files with 7 additions and 5 deletions

View File

@ -181,12 +181,14 @@ ASSIMP_API const C_STRUCT aiScene* aiApplyPostProcessing(
* access Assimp's log system. Attaching a log stream can slightly reduce Assimp's * access Assimp's log system. Attaching a log stream can slightly reduce Assimp's
* overall import performance. * overall import performance.
* *
* Usage is rather simple: * Usage is rather simple (this will stream the log to a file, named log.txt, and
* the stdout stream of the process:
* @code * @code
* aiLogStreamCallback c = aiGetPredefinedLogStream(aiDefaultLogStream_FILE,"log.txt",NULL); * struct aiLogStream c;
* if (NULL != c) { * c = aiGetPredefinedLogStream(aiDefaultLogStream_FILE,"log.txt");
* aiAttachLogStream(c); * aiAttachLogStream(&c);
* } * c = aiGetPredefinedLogStream(aiDefaultLogStream_STDOUT,NULL);
* aiAttachLogStream(&c);
* @endcode * @endcode
* *
* @param One of the #aiDefaultLogStream enumerated values. * @param One of the #aiDefaultLogStream enumerated values.