mirror of
https://github.com/libretro/RetroArch
synced 2025-02-03 17:54:04 +00:00
411bcf8bdd
* includes rgui * shader support This is a work-in-progress and there are some bugs and visual artifacts still to be fixed.
24 lines
571 B
Objective-C
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
|