Created
April 14, 2023 09:20
-
-
Save jarrodnorwell/f0098eef6debde3dd07306f92bb407fe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MetalView : UIView { | |
override var layerClass: AnyClass { | |
return CAMetalLayer.class | |
} | |
} | |
let metalView = MetalView(frame: view.bounds) | |
view.addSubview(metalView) | |
let wrapper = Wrapper() | |
wrapper.loadRom(path: "") | |
wrapper.setLayer(view: metalView) | |
wrapper.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment