Annotation of OpenXM/src/cfep/MyOpenGLCommand.h, Revision 1.3
1.1 takayama 1: //
2: // MyOpenGLCommand.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 <OpenGL/OpenGL.h>
11: #import <OpenGL/gl.h>
12: #import <OpenGL/glu.h>
13:
14: // // -- has not been implemented.
15: // glib original functions. xxxx
16: // a b c d e f g h i j k l m n o p q r s t u v w x y z
17: // 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 glib original
18: #define CFEPglib_end_group 0501
19: #define CFEPglib_flush 0601
20: #define CFEPglib_line 1201
21: #define CFEPglib_putpixel 1601
22: // Demos
23: // a b c d e f g h i j k l m n o p q r s t u v w x y z
24: // 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 demo
25: #define CFEPglib3_bounding_box 3201
26: #define CFEPglib3_icosahedron 3901
27: #define CFEPglib3_std_scene0_ortho 4901 //
28: #define CFEPglib3_ray 4801
29: #define CFEPglib3_ray_init 4802
30: #define CFEPglib3_ray_reshape 4803
31: #define CFEPglib3_std_scene0 4901
32: // gl primitives.
33: // a b c d e f g h i j k l m n o p q r s t u v w x y z
34: // 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 gl primitives
35: #define CFEPglBegin 6201
36: #define CFEPglColor4f 6301
1.3 ! takayama 37: #define CFEPglClear 6302
! 38: #define CFEPglClearColor 6303
! 39: #define CFEPglClearDepth 6304
! 40: #define CFEPglEnd 6501
! 41: #define CFEPglFlush 6601
1.1 takayama 42: #define CFEPglLineStipple 7201 //
43: #define CFEPglLineWidth 7202 //
1.3 ! takayama 44: #define CFEPglPointSize 7601
1.1 takayama 45: #define CFEPglRectf 7801
46: #define CFEPglVertex3f 8201
47:
48: @interface MyFloat: NSObject {
49: float fValue;
50: }
51: +(MyFloat *) allocWith: (float) f;
52: -(void) setFValue: (float) f;
53: -(float) getFValue;
54: -(NSString *)description;
55: @end
56:
57: @interface MyInt: NSObject {
58: int iValue;
59: }
60: +(MyInt *) allocWith: (int) i;
61: -(void) setIValue: (int) i;
62: -(int) getIValue;
63: -(NSString *)description;
64: @end
65:
66: @interface MyUtil: NSObject {
67: }
68: +(void) setDebugMyUtil;
69: +(NSMutableArray *) arrayOfStringFrom: (NSString *)args;
1.2 takayama 70: +(NSString *) pruneThings: (NSString *)ss;
71: +(id) attributedStringWithPath: (NSString *)path;
1.1 takayama 72: @end
73:
74: @interface MyOpenGLCommand : NSObject {
75: NSString *command;
76: BOOL endGroup;
77: int opCode;
78: NSMutableArray *argv;
79: // f4 and i4 will become obsolete.
80: double f4[4];
81: int i4[4];
82: }
83:
84: +(MyOpenGLCommand *) allocAndCompile: (NSString *)cmd by: (id) sender;
85: -(id)init;
86: -(void) dealloc;
87: -(void)print;
1.3 ! takayama 88: -(NSString *)toString;
1.1 takayama 89: -(MyOpenGLCommand *) compile: (NSString *)cmd by: (id) sender;
90: -(int) getOpCode;
91: -(double *)getF4;
92: -(int *)getI4;
93: -(NSArray *) getArgv;
94: -(BOOL) isEndGroup;
95: @end
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>