27 #include "../../SDL_internal.h"
29 #ifndef SDL_cocoametalview_h_
30 #define SDL_cocoametalview_h_
32 #if SDL_VIDEO_DRIVER_COCOA && (SDL_VIDEO_VULKAN || SDL_VIDEO_METAL)
34 #import "../SDL_sysvideo.h"
38 #import <Cocoa/Cocoa.h>
39 #import <Metal/Metal.h>
40 #import <QuartzCore/CAMetalLayer.h>
42 #define METALVIEW_TAG 255
44 @interface SDL_cocoametalview : NSView
46 - (instancetype)initWithFrame:(NSRect)frame
50 - (
void)updateDrawableSize;
51 - (NSView *)
hitTest:(NSPoint)point;
54 @property (assign, readonly) NSInteger tag;
56 @property (nonatomic) BOOL highDPI;
57 @property (nonatomic)
Uint32 sdlWindowID;
SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 void
GLfloat GLfloat GLfloat GLfloat h
GLubyte GLubyte GLubyte GLubyte w
EGLSurface EGLNativeWindowType * window
The type used to identify a window.
static SDL_HitTestResult hitTest(SDL_Window *window, const SDL_Point *pt, void *data)