bool SDL_GetBooleanProperty(SDL_PropertiesID props, const char *name, bool default_value);
SDL_PropertiesID | props | 問い合わせるプロパティグループ |
const char * | name | 問い合わせるプロパティの名前 |
float | default_value | プロパティのデフォルト値 |
(bool) プロパティの値を戻す.
値が設定されていない, またはブール型プロパティでない場合はdefault_value
を戻す.
SDL_GetPropertyType()でプロパティが存在し, かつブール型プロパティであるかを得られる.
この関数はどのスレッドからも安全に呼べる.
SDL 3.2.0以降