minifb-zig-port/src/ios/iOSViewDelegate.h

24 lines
571 B
C
Raw Normal View History

2020-04-25 21:17:54 +00:00
//
// Renderer.h
// MiniFB
//
// Created by Carlos Aragones on 22/04/2020.
// Copyright © 2020 Carlos Aragones. All rights reserved.
//
#import <MetalKit/MetalKit.h>
#include "WindowData.h"
// Our platform independent renderer class.
// Implements the MTKViewDelegate protocol which allows it to accept per-frame
// update and drawable resize callbacks.
@interface iOSViewDelegate : NSObject <MTKViewDelegate>
{
}
2020-04-26 11:16:25 +00:00
-(nonnull instancetype) initWithMetalKitView:(nonnull MTKView *) view windowData:(nonnull SWindowData *) windowData;
2020-09-15 19:05:49 +00:00
- (void) resizeTextures;
2020-04-25 21:17:54 +00:00
@end