From 6674f1587d5a736966bda84e19c04220047e64cd Mon Sep 17 00:00:00 2001 From: aramis_acg Date: Thu, 23 Jul 2009 20:16:05 +0000 Subject: [PATCH] Updating code sample for aiGetPredefinedLogStream. git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@450 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- include/assimp.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/include/assimp.h b/include/assimp.h index e9b3f6df1..01a3932f9 100644 --- a/include/assimp.h +++ b/include/assimp.h @@ -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 * 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 - * aiLogStreamCallback c = aiGetPredefinedLogStream(aiDefaultLogStream_FILE,"log.txt",NULL); - * if (NULL != c) { - * aiAttachLogStream(c); - * } + * struct aiLogStream c; + * c = aiGetPredefinedLogStream(aiDefaultLogStream_FILE,"log.txt"); + * aiAttachLogStream(&c); + * c = aiGetPredefinedLogStream(aiDefaultLogStream_STDOUT,NULL); + * aiAttachLogStream(&c); * @endcode * * @param One of the #aiDefaultLogStream enumerated values.