2018-06-20 21:29:53 -07:00
|
|
|
//
|
|
|
|
// Created by Stuart Carnie on 6/16/18.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import "View.h"
|
|
|
|
|
2018-06-29 22:57:48 -07:00
|
|
|
@interface TexturedView : NSObject
|
2018-06-20 21:29:53 -07:00
|
|
|
|
2018-07-03 22:28:33 -07:00
|
|
|
@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;
|
2018-06-20 21:29:53 -07:00
|
|
|
|
2018-06-29 22:57:48 -07:00
|
|
|
- (instancetype)initWithDescriptor:(ViewDescriptor *)td context:(Context *)c;
|
2018-06-20 21:29:53 -07:00
|
|
|
|
2018-06-23 13:32:46 -07:00
|
|
|
- (void)drawWithContext:(Context *)ctx;
|
2018-06-20 21:29:53 -07:00
|
|
|
- (void)drawWithEncoder:(id<MTLRenderCommandEncoder>)rce;
|
2018-06-23 13:32:46 -07:00
|
|
|
- (void)updateFrame:(void const *)src pitch:(NSUInteger)pitch;
|
2018-06-20 21:29:53 -07:00
|
|
|
|
|
|
|
@end
|