src/video/winrt/SDL_winrtvideo_cpp.h
changeset 8578 6517b6aca713
parent 8545 7cf4f8916997
child 8582 c3e9a2b93517
equal deleted inserted replaced
8577:462760a8b82e 8578:6517b6aca713
    42 extern SDL_Window * WINRT_GlobalSDLWindow;
    42 extern SDL_Window * WINRT_GlobalSDLWindow;
    43 
    43 
    44 /* The global, WinRT, video device. */
    44 /* The global, WinRT, video device. */
    45 extern SDL_VideoDevice * WINRT_GlobalSDLVideoDevice;
    45 extern SDL_VideoDevice * WINRT_GlobalSDLVideoDevice;
    46 
    46 
    47 /* Computes the current display mode for Plain Direct3D (non-XAML) apps */
    47 /* Creates a display mode for Plain Direct3D (non-XAML) apps, using the lone, native window's settings.
    48 extern SDL_DisplayMode WINRT_CalcDisplayModeUsingNativeWindow();
       
    49 
    48 
       
    49    Pass in an allocated SDL_DisplayMode field to store the data in.
       
    50 
       
    51    This function will return 0 on success, -1 on failure.
       
    52 
       
    53    If this function succeeds, be sure to call SDL_free on the
       
    54    SDL_DisplayMode's driverdata field.
       
    55 */
       
    56 extern int WINRT_CalcDisplayModeUsingNativeWindow(SDL_DisplayMode * mode);
       
    57 
       
    58 /* Duplicates a display mode, copying over driverdata as necessary */
       
    59 extern int WINRT_DuplicateDisplayMode(SDL_DisplayMode * dest, const SDL_DisplayMode * src);
       
    60 
       
    61 /* Display mode internals */
       
    62 typedef struct
       
    63 {
       
    64     Windows::Graphics::Display::DisplayOrientations currentOrientation;
       
    65 } SDL_DisplayModeData;
    50 
    66 
    51 #ifdef __cplusplus_winrt
    67 #ifdef __cplusplus_winrt
    52 
    68 
    53 /* Internal window data */
    69 /* Internal window data */
    54 struct SDL_WindowData
    70 struct SDL_WindowData