Annotation of OpenXM/src/cfep/MyOpenGLCommand.h, Revision 1.4
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
1.4 ! takayama 40: #define CFEPglDisable 6401
! 41: #define CFEPglEnd 6501
! 42: #define CFEPglEnable 6502
1.3 takayama 43: #define CFEPglFlush 6601
1.4 ! takayama 44: #define CFEPglLineStipple 7201
! 45: #define CFEPglLineWidth 7202
! 46: #define CFEPglNormal3f 7401
1.3 takayama 47: #define CFEPglPointSize 7601
1.1 takayama 48: #define CFEPglRectf 7801
49: #define CFEPglVertex3f 8201
50:
51: @interface MyFloat: NSObject {
52: float fValue;
53: }
54: +(MyFloat *) allocWith: (float) f;
55: -(void) setFValue: (float) f;
56: -(float) getFValue;
57: -(NSString *)description;
58: @end
59:
60: @interface MyInt: NSObject {
61: int iValue;
62: }
63: +(MyInt *) allocWith: (int) i;
64: -(void) setIValue: (int) i;
65: -(int) getIValue;
66: -(NSString *)description;
67: @end
68:
69: @interface MyUtil: NSObject {
70: }
71: +(void) setDebugMyUtil;
72: +(NSMutableArray *) arrayOfStringFrom: (NSString *)args;
1.2 takayama 73: +(NSString *) pruneThings: (NSString *)ss;
74: +(id) attributedStringWithPath: (NSString *)path;
1.1 takayama 75: @end
76:
77: @interface MyOpenGLCommand : NSObject {
78: NSString *command;
79: BOOL endGroup;
80: int opCode;
81: NSMutableArray *argv;
82: // f4 and i4 will become obsolete.
83: double f4[4];
84: int i4[4];
85: }
86:
87: +(MyOpenGLCommand *) allocAndCompile: (NSString *)cmd by: (id) sender;
88: -(id)init;
89: -(void) dealloc;
90: -(void)print;
1.3 takayama 91: -(NSString *)toString;
1.1 takayama 92: -(MyOpenGLCommand *) compile: (NSString *)cmd by: (id) sender;
93: -(int) getOpCode;
94: -(double *)getF4;
95: -(int *)getI4;
96: -(NSArray *) getArgv;
97: -(BOOL) isEndGroup;
98: @end
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>