29 #ifndef SDL_cocoametalview_h_
30 #define SDL_cocoametalview_h_
32 #import "../SDL_sysvideo.h"
35 #if SDL_VIDEO_VULKAN && SDL_VIDEO_DRIVER_COCOA
37 #include <Cocoa/Cocoa.h>
38 #include <Metal/Metal.h>
39 #include <QuartzCore/CAMetalLayer.h>
41 #define METALVIEW_TAG 255
43 @interface SDL_cocoametalview : NSView {
48 - (instancetype)initWithFrame:(NSRect)frame
49 useHighDPI:(
bool)useHighDPI;
52 @property (assign, readonly) NSInteger tag;
GLfloat GLfloat GLfloat GLfloat h
GLubyte GLubyte GLubyte GLubyte w
EGLSurface EGLNativeWindowType * window
The type used to identify a window.