mirror of
https://github.com/libretro/RetroArch
synced 2025-02-01 20:54:10 +00:00
a49b02c44b
* (QB) Add rule for Metal - define HAVE_COCOA_METAL for now when building for Metal, and HAVE_COCOA for non-Metal build * Make necessary changes to Makefile.common and qb/config.libs.sh: - Disable OpenGL for now for Metal build - Take Metal conditional out of OpenGL block in Makefile.common * (Metal) Header fixes for compiling without Xcode/Griffin * (Mac) Some buildfixes for non-Xcode building * (cocoa_common.h) Restructure to no longer use -DOSX * (Apple) More buildfixes * (Apple) Cleanups
24 lines
673 B
Objective-C
24 lines
673 B
Objective-C
//
|
|
// Created by Stuart Carnie on 6/16/18.
|
|
//
|
|
|
|
#import "Context.h"
|
|
#import "View.h"
|
|
|
|
@interface TexturedView : NSObject
|
|
|
|
@property (nonatomic, readonly) RPixelFormat format;
|
|
@property (nonatomic, readonly) RTextureFilter filter;
|
|
@property (nonatomic, readwrite) BOOL visible;
|
|
@property (nonatomic, readwrite) CGRect frame;
|
|
@property (nonatomic, readwrite) CGSize size;
|
|
@property (nonatomic, readonly) ViewDrawState drawState;
|
|
|
|
- (instancetype)initWithDescriptor:(ViewDescriptor *)td context:(Context *)c;
|
|
|
|
- (void)drawWithContext:(Context *)ctx;
|
|
- (void)drawWithEncoder:(id<MTLRenderCommandEncoder>)rce;
|
|
- (void)updateFrame:(void const *)src pitch:(NSUInteger)pitch;
|
|
|
|
@end
|