[BACK]Return to MyOpenGLCommand.h CVS log [TXT][DIR] Up to [local] / OpenXM / src / cfep

Annotation of OpenXM/src/cfep/MyOpenGLCommand.h, Revision 1.5

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
1.5     ! takayama   49: #define CFEPglVertex3f      8201
        !            50: #define CFEPglVertex2f      8202
1.1       takayama   51:
                     52: @interface MyFloat: NSObject {
                     53:   float fValue;
                     54: }
                     55: +(MyFloat *) allocWith: (float) f;
                     56: -(void) setFValue: (float) f;
                     57: -(float) getFValue;
                     58: -(NSString *)description;
                     59: @end
                     60:
                     61: @interface MyInt: NSObject {
                     62:   int iValue;
                     63: }
                     64: +(MyInt *) allocWith: (int) i;
                     65: -(void) setIValue: (int) i;
                     66: -(int) getIValue;
                     67: -(NSString *)description;
                     68: @end
                     69:
                     70: @interface MyUtil: NSObject {
                     71: }
                     72: +(void) setDebugMyUtil;
                     73: +(NSMutableArray *) arrayOfStringFrom: (NSString *)args;
1.2       takayama   74: +(NSString *) pruneThings: (NSString *)ss;
                     75: +(id) attributedStringWithPath: (NSString *)path;
1.1       takayama   76: @end
                     77:
                     78: @interface MyOpenGLCommand : NSObject {
                     79:   NSString *command;
                     80:   BOOL endGroup;
                     81:   int opCode;
                     82:   NSMutableArray *argv;
                     83:   // f4 and i4 will become obsolete.
                     84:   double f4[4];
                     85:   int    i4[4];
                     86: }
                     87:
                     88: +(MyOpenGLCommand *) allocAndCompile: (NSString *)cmd by: (id) sender;
                     89: -(id)init;
                     90: -(void) dealloc;
                     91: -(void)print;
1.3       takayama   92: -(NSString *)toString;
1.1       takayama   93: -(MyOpenGLCommand *) compile: (NSString *)cmd by: (id) sender;
                     94: -(int) getOpCode;
                     95: -(double *)getF4;
                     96: -(int *)getI4;
                     97: -(NSArray *) getArgv;
                     98: -(BOOL) isEndGroup;
                     99: @end

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>