1 /*
2     Copyright (c) 2005-2021 Intel Corporation
3 
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7 
8         http://www.apache.org/licenses/LICENSE-2.0
9 
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15 */
16 
17 #import <Foundation/Foundation.h>
18 
19 #if TARGET_OS_IPHONE
20 
21 #import <UIKit/UIKit.h>
22 #import "OpenGLES/ES2/gl.h"
23 
24 @interface OpenGLView : UIView {
25     NSTimer *timer;
26     CGRect imageRect;
27 }
28 
29 @property (nonatomic, retain) NSTimer *timer;
30 @property (nonatomic) CGRect imageRect;
31 
32 - (void) drawRect:(CGRect)rect;
33 - (void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
34 
35 @end
36 
37 #elif TARGET_OS_MAC
38 
39 #import <Foundation/Foundation.h>
40 #import <Cocoa/Cocoa.h>
41 
42 @interface OpenGLView : NSOpenGLView{
43     NSTimer *timer;
44 }
45 
46 @property (nonatomic,retain) NSTimer *timer;
47 
48 - (void) drawRect:(NSRect)start;
49 - (void) mouseDown:(NSEvent *)theEvent;
50 - (void) keyDown:(NSEvent *)theEvent;
51 - (BOOL) acceptsFirstResponder;
52 - (void) viewDidEndLiveResize;
53 
54 @end
55 
56 #endif
57