https://github.com/halide/Halide
Raw File
Tip revision: 8c505640d49d8f449a56a90e6599229401bd5462 authored by Steven Johnson on 14 February 2024, 17:09:50 UTC
Merge remote-tracking branch 'origin/abadams/strip_asserts_last' into srj/test8094
Tip revision: 8c50564
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