mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +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
29 lines
631 B
Objective-C
29 lines
631 B
Objective-C
/*
|
|
* Created by Stuart Carnie on 6/24/18.
|
|
*/
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#include "../../gfx_display.h"
|
|
|
|
@class Context;
|
|
|
|
@interface MenuDisplay : NSObject
|
|
|
|
@property (nonatomic, readwrite) BOOL blend;
|
|
@property (nonatomic, readwrite) MTLClearColor clearColor;
|
|
|
|
- (instancetype)initWithContext:(Context *)context;
|
|
- (void)drawPipeline:(gfx_display_ctx_draw_t *)draw;
|
|
- (void)draw:(gfx_display_ctx_draw_t *)draw;
|
|
- (void)setScissorRect:(MTLScissorRect)rect;
|
|
- (void)clearScissorRect;
|
|
|
|
#pragma mark - static methods
|
|
|
|
+ (const float *)defaultVertices;
|
|
+ (const float *)defaultTexCoords;
|
|
+ (const float *)defaultColor;
|
|
|
|
@end
|