Function setHint

Wraps SDL_SetHintWithPriority which provides giving a hint to SDL2 in runtime

bool setHint (
  string name,
  string value,
  HintPriority priority = HintPriority.normal
) @trusted;

Parameters

NameDescription
name name of the hint
value value to set the hint as
priority priority of the hint configuration (by default, dsdl2.HintPriority.normal)

Returns

true if the hint was set, false otherwise