RetroArch/gfx/common/metal/TexturedView.h
Stuart Carnie 411bcf8bdd feat(apple): Metal support for macOS
* includes rgui
* shader support

This is a work-in-progress and there are some bugs and visual artifacts
still to be fixed.
2018-06-20 21:33:45 -07:00

24 lines
571 B
Objective-C

//
// Created by Stuart Carnie on 6/16/18.
//
#import "View.h"
@class Renderer;
@interface TexturedView : NSObject<View>
@property (readonly) RPixelFormat format;
@property (readonly) RTextureFilter filter;
@property (readwrite) BOOL visible;
@property (readwrite) CGRect frame;
@property (readwrite) CGSize size;
- (instancetype)initWithDescriptor:(ViewDescriptor *)td renderer:(Renderer *)renderer;
- (void)prepareFrame:(Context *)ctx;
- (void)updateFrame:(void const *)src pitch:(NSUInteger)pitch;
- (void)drawWithEncoder:(id<MTLRenderCommandEncoder>)rce;
@end