Annotation of OpenXM/src/cfep/MyOpenGLView.h, Revision 1.4
1.1 takayama 1: //
2: // MyOpenGLView.h
3: // cfep
4: //
5: // Created by Nobuki Takayama on 06/02/18.
6: // Copyright 2006 OpenXM.org. All rights reserved.
7: //
8:
9: #import <Cocoa/Cocoa.h>
10: #import "MyOpenGLCommand.h"
11:
12: @interface MyOpenGLView : NSOpenGLView {
13: int initGl;
14: double xeye,yeye,zeye; // eye position
15: NSMutableArray *oglComm;
16: int oglCommSize;
17: NSMutableArray *oglInitComm;
18: int oglInitCommSize;
1.2 takayama 19: int gid;
1.4 ! takayama 20: NSFont *myfont;
1.1 takayama 21: }
22: -(id) initWithFrame: (NSRect) frameRect;
23: -(void) drawRectSimple: (NSRect) rect withColor: (double)c;
24: -(void) drawRect: (NSRect) rect ;
1.2 takayama 25: -(void) showEyePos ;
1.1 takayama 26: -(IBAction) setXeye: (id) sender;
27: -(IBAction) setYeye: (id) sender;
28: -(IBAction) setZeye: (id) sender;
1.2 takayama 29: -(void) setGid: (int) gid;
1.3 takayama 30: -(void) setInitGL: (id) sender;
31: -(int) getOglCommSize;
32: -(int) getOglInitCommSize;
1.1 takayama 33: -(void) addOglComm: (NSString *) comm by: (id) sender;
34: -(void) drawOglComm ;
35: -(void) addOglInitComm: (NSString *) comm by: (id) sender;
1.2 takayama 36:
37: -(NSMutableArray *)getListOfOglComm;
38: -(NSMutableArray *)getListOfOglInitComm;
39: -(int) countOfOglComm ;
40: -(int) countOfOglInitComm;
41: -(int) removeLastOfOglComm;
42: -(int) removeLastOfOglInitComm;
43: -(int) removeAllOfOglComm;
44: -(int) removeAllOfOglInitComm;
45:
1.1 takayama 46: -(void) drawOglInitComm ;
47: -(void) execute: (MyOpenGLCommand *)gc;
48: -(void) initGL ;
49:
50: -(void) glib3_ray;
51:
52: @end
53:
54: // original glib functions
55: void glib_line(float x,float y, float x2,float y2, int color);
56: void glib_putpixel(float x,float y, int color);
57:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>