|
⇤ ← Revision 1 as of 2011-09-16 23:46:03
Size: 1749
Comment: create page - 9/16 2abc5a4210d5
|
Size: 1746
Comment: update content - correct category name
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 53: | Line 53: |
| [[CategoryAPI]], [[CategoryBasics]] | [[CategoryAPI]], [[CategoryLog]] |
DRAFT |
SDL_LogSetOutputFunction
Use this function to replace the default log output function with one of your own.
Contents
Syntax
void SDL_LogSetOutputFunction(SDL_LogOutputFunction callback,
void* userdata)
Function Parameters
callback |
the callback function to set; see Remarks for details |
userdata |
a pointer that is passed to callback |
Code Examples
You can add your code example here
Remarks
green
The default function prototype for callback is:
void* SDL_LogOutputFunction(void* userdata, int category, SDL_LogPriority priority, const char* message)whereanduserdata
is passed as userdata from SDL_LogSetOutputFunction()
category
the category to query
priority
the SDL_LogPriority to query; see below for details
message
the log output message ???
priority may be one of the following or NULL ???:
SDL_LOG_PRIORITY_VERBOSE
SDL_LOG_PRIORITY_DEBUG
SDL_LOG_PRIORITY_INFO
SDL_LOG_PRIORITY_WARN
SDL_LOG_PRIORITY_ERROR
SDL_LOG_PRIORITY_CRITICAL
SDL_NUM_LOG_PRIORITIES
(internal use)
green
You can add useful comments here
