https://github.com/halide/Halide
Raw File
Tip revision: ad6ca42f6a22166680b8f01f788d23a1c787150f authored by Steven Johnson on 20 September 2021, 23:04:46 UTC
ormat
Tip revision: ad6ca42
HalideViewController.mm
#import "HalideViewController.h"
#import "HalideView.h"
#import <UIKit/UIKit.h>

@implementation HalideViewController
{
    HalideView *_halide_view;
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    [_halide_view initiateRender];
}

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
    [_halide_view touchesBegan:touches withEvent:event];
}

- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
    [_halide_view touchesMoved:touches withEvent:event];
}

- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
    [_halide_view touchesEnded:touches withEvent:event];
}

- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event {
    [_halide_view touchesCancelled:touches withEvent:event];
}


@end
back to top