https://github.com/halide/Halide
Raw File
Tip revision: a7d1b8c37e7bb2ccda353195448d3eca1dbb0a35 authored by Andrew Adams on 13 October 2023, 23:40:18 UTC
Don't re-codegen arg
Tip revision: a7d1b8c
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