aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/SkiaExamples/SkExampleNSView.mm
blob: f014fa31c9d42cce79188142ae0a31c09c88901f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
//  SkExampleNSView.m
//  SkiaExamples
//
//  Created by Sergio González on 6/11/13.
//
//

#import "SkExampleNSView.h"

#include "SkApplication.h"
#include <crt_externs.h>  

@implementation SkExampleNSView

- (id)initWithDefaults {
    if ((self = [super initWithDefaults])) {
        fWind = create_sk_window(self, *_NSGetArgc(), *_NSGetArgv());
    }
    return self;
}

- (void)dealloc {
    delete fWind;
    [super dealloc];
}

@end