| | |
| | | */ |
| | | SDL_MetalView (*Metal_CreateView) (_THIS, SDL_Window * window); |
| | | void (*Metal_DestroyView) (_THIS, SDL_MetalView view); |
| | | void *(*Metal_GetLayer) (_THIS, SDL_MetalView view); |
| | | void (*Metal_GetDrawableSize) (_THIS, SDL_Window * window, int *w, int *h); |
| | | |
| | | /* * * */ |
| | | /* |
| | |
| | | SDL_TLSID current_glwin_tls; |
| | | SDL_TLSID current_glctx_tls; |
| | | |
| | | /* Flag that stores whether it's allowed to call SDL_GL_MakeCurrent() |
| | | * with a NULL window, but a non-NULL context. (Not allowed in most cases, |
| | | * except on EGL under some circumstances.) */ |
| | | SDL_bool gl_allow_no_surface; |
| | | |
| | | /* * * */ |
| | | /* Data used by the Vulkan drivers */ |
| | | struct |
| | |
| | | { |
| | | const char *name; |
| | | const char *desc; |
| | | int (*available) (void); |
| | | SDL_VideoDevice *(*create) (int devindex); |
| | | } VideoBootStrap; |
| | | |
| | |
| | | extern VideoBootStrap PSP_bootstrap; |
| | | extern VideoBootStrap RPI_bootstrap; |
| | | extern VideoBootStrap KMSDRM_bootstrap; |
| | | extern VideoBootStrap KMSDRM_LEGACY_bootstrap; |
| | | extern VideoBootStrap DUMMY_bootstrap; |
| | | extern VideoBootStrap Wayland_bootstrap; |
| | | extern VideoBootStrap NACL_bootstrap; |
| | |
| | | extern VideoBootStrap Emscripten_bootstrap; |
| | | extern VideoBootStrap QNX_bootstrap; |
| | | extern VideoBootStrap OFFSCREEN_bootstrap; |
| | | extern VideoBootStrap OS2DIVE_bootstrap; |
| | | extern VideoBootStrap OS2VMAN_bootstrap; |
| | | |
| | | extern SDL_VideoDevice *SDL_GetVideoDevice(void); |
| | | extern int SDL_AddBasicVideoDisplay(const SDL_DisplayMode * desktop_mode); |
| | | extern int SDL_AddVideoDisplay(const SDL_VideoDisplay * display); |
| | | extern int SDL_AddVideoDisplay(const SDL_VideoDisplay * display, SDL_bool send_event); |
| | | extern void SDL_DelVideoDisplay(int index); |
| | | extern SDL_bool SDL_AddDisplayMode(SDL_VideoDisplay *display, const SDL_DisplayMode * mode); |
| | | extern int SDL_GetIndexOfDisplay(SDL_VideoDisplay *display); |
| | | extern SDL_VideoDisplay *SDL_GetDisplay(int displayIndex); |