目次 - SDL 3.0 API(機能別) - ログ - SDL_LogOutputFunction

SDL_LogOutputFunction

ログ出力関数のプロトタイプ型

ヘッダ

SDL3/SDL_log.h

構文

typedef void (SDLCALL *SDL_LogOutputFunction)(void *userdata, int category, SDL_LogPriority priority, const char *message);

引数

void *userdataSDL_SetLogOutputFunction()userdataに渡した値
intcategoryメッセージの分類
SDL_LogPrioritypriorityメッセージの重要度
const char *message出力するメッセージ

詳細

この関数はログ出力された新しいテキストがあればSDLから呼ばれる. この関数は排他処理されているので, 一度に2つ以上のスレッドから呼ばれることはない.

バージョン

SDL 3.2.0以降

SDL Wikiへのリンク

SDL_LogOutputFunction - SDL Wiki