2020-03-08 22:05:51 +01:00
|
|
|
/*
|
|
|
|
* Created by Stuart Carnie on 6/24/18.
|
|
|
|
*/
|
2018-06-29 22:57:48 -07:00
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
@class Context;
|
|
|
|
|
|
|
|
@interface MenuDisplay : NSObject
|
|
|
|
|
2018-07-03 22:28:33 -07:00
|
|
|
@property (nonatomic, readwrite) BOOL blend;
|
|
|
|
@property (nonatomic, readwrite) MTLClearColor clearColor;
|
2018-06-29 22:57:48 -07:00
|
|
|
|
2018-07-12 21:33:18 -07:00
|
|
|
- (instancetype)initWithContext:(Context *)context;
|
2020-03-08 22:05:51 +01:00
|
|
|
- (void)drawPipeline:(gfx_display_ctx_draw_t *)draw;
|
|
|
|
- (void)draw:(gfx_display_ctx_draw_t *)draw;
|
2018-11-06 07:51:40 -07:00
|
|
|
- (void)setScissorRect:(MTLScissorRect)rect;
|
|
|
|
- (void)clearScissorRect;
|
2018-06-29 22:57:48 -07:00
|
|
|
|
|
|
|
#pragma mark - static methods
|
|
|
|
|
|
|
|
+ (const float *)defaultVertices;
|
|
|
|
+ (const float *)defaultTexCoords;
|
|
|
|
+ (const float *)defaultColor;
|
|
|
|
|
|
|
|
@end
|