SLProject  4.3.020
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
metal_layer.mm File Reference
#include <AppKit/AppKit.h>
#include <QuartzCore/CAMetalLayer.h>
Include dependency graph for metal_layer.mm:

Go to the source code of this file.

Functions

id createMetalLayer (NSWindow *window)
 

Function Documentation

◆ createMetalLayer()

id createMetalLayer ( NSWindow *  window)

Definition at line 4 of file metal_layer.mm.

5 {
6  [window.contentView setWantsLayer:YES];
7  id metalLayer = [CAMetalLayer layer];
8  [window.contentView setLayer:metalLayer];
9 
10  return metalLayer;
11 }
static GLFWwindow * window
The global glfw window handle.
Definition: AppGLFW.cpp:35