mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-12-04 08:50:06 +00:00
ed8ecd84d1
Updated the Metal viewer runtime options to more closely match the other viewers: - default to adaptive tessellation - default to patch type coloring - present end cap options as: Linear/Regular/Gregory - exposed switches for patch refinement options: smooth corner, single crease, inf sharp - updated fvar linear interpolation labels and methods to match glFVarViewer - updated iOS Main.storyboard GUI to match
36 lines
1.6 KiB
Objective-C
36 lines
1.6 KiB
Objective-C
#import <UIKit/UIKit.h>
|
|
#import <MetalKit/MetalKit.h>
|
|
#import "../mtlViewer.h"
|
|
|
|
@interface ViewController : UIViewController<
|
|
MTKViewDelegate,
|
|
UIPickerViewDelegate,
|
|
UIPickerViewDataSource,
|
|
OSDRendererDelegate
|
|
>
|
|
|
|
@property (weak, nonatomic) IBOutlet UILabel *refLvlLabel;
|
|
@property (weak, nonatomic) IBOutlet UILabel *tesLvLlabel;
|
|
@property (weak, nonatomic) IBOutlet UILabel *frameTimeLabel;
|
|
@property (weak, nonatomic) IBOutlet UIPickerView *modelPickerView;
|
|
@property (weak, nonatomic) IBOutlet UIPickerView *shadingModePickerView;
|
|
@property (weak, nonatomic) IBOutlet UIStepper *tessellationStepper;
|
|
@property (weak, nonatomic) IBOutlet UIStepper *refinementStepper;
|
|
@property (weak, nonatomic) IBOutlet UISwitch *wireframeSwitch;
|
|
@property (weak, nonatomic) IBOutlet UISwitch *backpatchCullingSwitch;
|
|
@property (weak, nonatomic) IBOutlet UISwitch *backfaceCullingSwitch;
|
|
@property (weak, nonatomic) IBOutlet UISwitch *patchClipCullingSwitch;
|
|
@property (weak, nonatomic) IBOutlet UISwitch *smoothCornerSwitch;
|
|
@property (weak, nonatomic) IBOutlet UISwitch *singleCreaseSwitch;
|
|
@property (weak, nonatomic) IBOutlet UISwitch *infinitelySharpSwitch;
|
|
@property (weak, nonatomic) IBOutlet UISwitch *controlMeshSwitch;
|
|
@property (weak, nonatomic) IBOutlet UISwitch *screenspaceTessellationSwitch;
|
|
@property (weak, nonatomic) IBOutlet UISegmentedControl *endcapSegmentedControl;
|
|
- (IBAction)stepperChanged:(UIStepper *)sender;
|
|
- (IBAction)switchChanged:(UISwitch *)sender;
|
|
- (IBAction)endcapChanged:(UISegmentedControl *)sender;
|
|
|
|
|
|
@end
|
|
|