| | |
| | | #include "SDL_cocoashape.h" |
| | | #include "SDL_cocoavulkan.h" |
| | | #include "SDL_cocoametalview.h" |
| | | #include "SDL_assert.h" |
| | | |
| | | /* Initialization/Query functions */ |
| | | static int Cocoa_VideoInit(_THIS); |
| | | static void Cocoa_VideoQuit(_THIS); |
| | | |
| | | /* Cocoa driver bootstrap functions */ |
| | | |
| | | static int |
| | | Cocoa_Available(void) |
| | | { |
| | | return (1); |
| | | } |
| | | |
| | | static void |
| | | Cocoa_DeleteDevice(SDL_VideoDevice * device) |
| | |
| | | #if SDL_VIDEO_METAL |
| | | device->Metal_CreateView = Cocoa_Metal_CreateView; |
| | | device->Metal_DestroyView = Cocoa_Metal_DestroyView; |
| | | device->Metal_GetLayer = Cocoa_Metal_GetLayer; |
| | | device->Metal_GetDrawableSize = Cocoa_Metal_GetDrawableSize; |
| | | #endif |
| | | |
| | | device->StartTextInput = Cocoa_StartTextInput; |
| | |
| | | |
| | | VideoBootStrap COCOA_bootstrap = { |
| | | "cocoa", "SDL Cocoa video driver", |
| | | Cocoa_Available, Cocoa_CreateDevice |
| | | Cocoa_CreateDevice |
| | | }; |
| | | |
| | | |