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