目次 - SDL 3.0 API(機能別) - プロパティ - SDL_SetPointerProperty

SDL_SetPointerProperty

プロパティグループのポインタ型プロパティを設定する

ヘッダ

SDL3/SDL_properties.h

構文

bool SDL_SetPointerProperty(SDL_PropertiesID props, const char *name, void *value);

引数

SDL_PropertiesIDprops設定するプロパティグループ
const char *name設定するプロパティの名前
void *valueプロパティの新しい値. NULLのときプロパティを削除する

戻り値

(bool) 成功のとき真, 失敗のとき偽を戻す. SDL_GetError()を呼んで詳細を知ることができる.

スレッドセーフ

この関数はどのスレッドからも安全に呼べる.

バージョン

SDL 3.2.0以降

関連項目

SDL Wikiへのリンク

SDL_SetPointerProperty - SDL Wiki