=================================================================== RCS file: /home/cvs/OpenXM/src/cfep/MyOpenGLView.m,v retrieving revision 1.3 retrieving revision 1.6 diff -u -p -r1.3 -r1.6 --- OpenXM/src/cfep/MyOpenGLView.m 2006/03/08 04:58:14 1.3 +++ OpenXM/src/cfep/MyOpenGLView.m 2008/11/24 07:54:04 1.6 @@ -6,10 +6,17 @@ // Copyright 2006 OpenXM.org. All rights reserved. // +#import +#import +#import +#import + #import "MyOpenGLView.h" #import "MyOpenGLController.h" #include "mygl.h" + + @implementation MyOpenGLView -(id) initWithFrame: (NSRect) frame { NSLog(@"initWithFrame\n"); @@ -21,7 +28,7 @@ yeye = 0.0; zeye = 2.0; initGl = 1; - + myfont = [ NSFont systemFontOfSize: 10]; [super initWithFrame: frame]; if (self) { NSOpenGLPixelFormatAttribute attributes[]={ @@ -202,16 +209,28 @@ glClearDepth(x); break; case CFEPglColor4f: glColor4f(x,y,z,c); break; + case CFEPglDisable: + glDisable(p); break; + case CFEPglEnable: + glEnable(p); break; case CFEPglEnd: glEnd(); break; case CFEPglFlush: glFlush(); [self setInitGL: nil]; [self setNeedsDisplay: YES]; break; + case CFEPglLineStipple: + glLineStipple(p,q); break; + case CFEPglLineWidth: + glLineWidth(x); break; + case CFEPglNormal3f: + glNormal3f(x,y,z); break; case CFEPglPointSize: glPointSize(x); break; case CFEPglRectf: glRectf(x,y,z,c); break; case CFEPglVertex3f: glVertex3f(x,y,z); break; + case CFEPglVertex2f: + glVertex2f(x,y); break; case CFEPglib_line: glib_line(x,y,z,c,p); break; @@ -248,7 +267,9 @@ -(void) glib3_std_scene0 { glib3_std_scene0(xeye,yeye,zeye); } - +-(void) mouseDown: (NSEvent *) theEvent { + NSLog(@"Mouse is down\n"); +} @end // Original glib functions