include/SDL_hints.h
changeset 8535 e8ee0708ef5c
parent 8533 89cf2a2635d1
parent 7764 0f48b5f28668
child 8537 ea81cf5b6252
equal deleted inserted replaced
8534:50177f518fdb 8535:e8ee0708ef5c
    93  *  By default shaders are used if OpenGL supports them.
    93  *  By default shaders are used if OpenGL supports them.
    94  */
    94  */
    95 #define SDL_HINT_RENDER_OPENGL_SHADERS      "SDL_RENDER_OPENGL_SHADERS"
    95 #define SDL_HINT_RENDER_OPENGL_SHADERS      "SDL_RENDER_OPENGL_SHADERS"
    96 
    96 
    97 /**
    97 /**
       
    98  *  \brief  A variable controlling whether the Direct3D device is initialized for thread-safe operations.
       
    99  *
       
   100  *  This variable can be set to the following values:
       
   101  *    "0"       - Thread-safety is not enabled (faster)
       
   102  *    "1"       - Thread-safety is enabled
       
   103  *
       
   104  *  By default the Direct3D device is created with thread-safety disabled.
       
   105  */
       
   106 #define SDL_HINT_RENDER_DIRECT3D_THREADSAFE "SDL_RENDER_DIRECT3D_THREADSAFE"
       
   107 
       
   108 /**
    98  *  \brief  A variable controlling the scaling quality
   109  *  \brief  A variable controlling the scaling quality
    99  *
   110  *
   100  *  This variable can be set to the following values:
   111  *  This variable can be set to the following values:
   101  *    "0" or "nearest" - Nearest pixel sampling
   112  *    "0" or "nearest" - Nearest pixel sampling
   102  *    "1" or "linear"  - Linear filtering (supported by OpenGL and Direct3D)
   113  *    "1" or "linear"  - Linear filtering (supported by OpenGL and Direct3D)
   268  *
   279  *
   269  *  The default value is "1". This hint may be set at any time.
   280  *  The default value is "1". This hint may be set at any time.
   270  */
   281  */
   271 #define SDL_HINT_TIMER_RESOLUTION "SDL_TIMER_RESOLUTION"
   282 #define SDL_HINT_TIMER_RESOLUTION "SDL_TIMER_RESOLUTION"
   272 
   283 
       
   284 
       
   285 /**
       
   286  *  \brief If set to 1, then do not allow high-DPI windows. ("Retina" on Mac)
       
   287  */
       
   288 #define SDL_HINT_VIDEO_HIGHDPI_DISABLED "SDL_VIDEO_HIGHDPI_DISABLED"
   273 
   289 
   274 
   290 
   275 /**
   291 /**
   276  *  \brief  An enumeration of hint priorities
   292  *  \brief  An enumeration of hint priorities
   277  */
   293  */