Atlas - testnative.h
Home / ext / SDL / test Lines: 1 | Size: 1247 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)][FILE BEGIN]1/* 2 Copyright (C) 1997-2025 Sam Lantinga <[email protected]> 3 4 This software is provided 'as-is', without any express or implied 5 warranty. In no event will the authors be held liable for any damages 6 arising from the use of this software. 7 8 Permission is granted to anyone to use this software for any purpose, 9 including commercial applications, and to alter it and redistribute it 10 freely. 11*/ 12 13/* Definitions for platform dependent windowing functions to test SDL 14 integration with native windows 15*/ 16 17#ifndef testnative_h_ 18#define testnative_h_ 19 20#include <SDL3/SDL.h> 21 22#include "SDL_build_config.h" 23 24typedef struct 25{ 26 const char *tag; 27 void *(*CreateNativeWindow)(int w, int h); 28 void (*DestroyNativeWindow)(void *window); 29} NativeWindowFactory; 30 31#ifdef SDL_VIDEO_DRIVER_WINDOWS 32#define TEST_NATIVE_WINDOWS 33extern NativeWindowFactory WindowsWindowFactory; 34#endif 35 36#ifdef SDL_VIDEO_DRIVER_WAYLAND 37#define TEST_NATIVE_WAYLAND 38extern NativeWindowFactory WaylandWindowFactory; 39#endif 40 41#ifdef SDL_VIDEO_DRIVER_X11 42#define TEST_NATIVE_X11 43extern NativeWindowFactory X11WindowFactory; 44#endif 45 46#ifdef SDL_VIDEO_DRIVER_COCOA 47#define TEST_NATIVE_COCOA 48extern NativeWindowFactory CocoaWindowFactory; 49#endif 50 51#endif /* testnative_h_ */ 52[FILE END](C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.