src/video/uikit/SDL_uikitvideo.m
changeset 11365 a9bd2625fa01
parent 11327 770196e01af1
child 11381 2610f8f0a9c6
equal deleted inserted replaced
11364:ec27c4fd6880 11365:a9bd2625fa01
    35 #include "SDL_uikitevents.h"
    35 #include "SDL_uikitevents.h"
    36 #include "SDL_uikitmodes.h"
    36 #include "SDL_uikitmodes.h"
    37 #include "SDL_uikitwindow.h"
    37 #include "SDL_uikitwindow.h"
    38 #include "SDL_uikitopengles.h"
    38 #include "SDL_uikitopengles.h"
    39 #include "SDL_uikitclipboard.h"
    39 #include "SDL_uikitclipboard.h"
       
    40 #include "SDL_uikitvulkan.h"
    40 
    41 
    41 #define UIKITVID_DRIVER_NAME "uikit"
    42 #define UIKITVID_DRIVER_NAME "uikit"
    42 
    43 
    43 @implementation SDL_VideoData
    44 @implementation SDL_VideoData
    44 
    45 
   121         device->GL_DeleteContext    = UIKit_GL_DeleteContext;
   122         device->GL_DeleteContext    = UIKit_GL_DeleteContext;
   122         device->GL_GetProcAddress   = UIKit_GL_GetProcAddress;
   123         device->GL_GetProcAddress   = UIKit_GL_GetProcAddress;
   123         device->GL_LoadLibrary      = UIKit_GL_LoadLibrary;
   124         device->GL_LoadLibrary      = UIKit_GL_LoadLibrary;
   124         device->free = UIKit_DeleteDevice;
   125         device->free = UIKit_DeleteDevice;
   125 
   126 
       
   127     #if SDL_VIDEO_VULKAN_SURFACE
       
   128         device->Vulkan_LoadLibrary = UIKit_Vulkan_LoadLibrary;
       
   129         device->Vulkan_UnloadLibrary = UIKit_Vulkan_UnloadLibrary;
       
   130         device->Vulkan_GetInstanceExtensions
       
   131                                      = UIKit_Vulkan_GetInstanceExtensions;
       
   132         device->Vulkan_CreateSurface = UIKit_Vulkan_CreateSurface;
       
   133         device->Vulkan_GetDrawableSize = UIKit_Vulkan_GetDrawableSize;
       
   134     #endif
       
   135 
   126         device->gl_config.accelerated = 1;
   136         device->gl_config.accelerated = 1;
   127 
   137 
   128         return device;
   138         return device;
   129     }
   139     }
   130 }
   140 }