version 1.3, 2006/03/08 04:58:14 |
version 1.5, 2006/03/11 12:56:43 |
|
|
yeye = 0.0; |
yeye = 0.0; |
zeye = 2.0; |
zeye = 2.0; |
initGl = 1; |
initGl = 1; |
|
myfont = [ NSFont systemFontOfSize: 10]; |
[super initWithFrame: frame]; |
[super initWithFrame: frame]; |
if (self) { |
if (self) { |
NSOpenGLPixelFormatAttribute attributes[]={ |
NSOpenGLPixelFormatAttribute attributes[]={ |
|
|
glClearDepth(x); break; |
glClearDepth(x); break; |
case CFEPglColor4f: |
case CFEPglColor4f: |
glColor4f(x,y,z,c); break; |
glColor4f(x,y,z,c); break; |
|
case CFEPglDisable: |
|
glDisable(p); break; |
|
case CFEPglEnable: |
|
glEnable(p); break; |
case CFEPglEnd: |
case CFEPglEnd: |
glEnd(); break; |
glEnd(); break; |
case CFEPglFlush: |
case CFEPglFlush: |
glFlush(); [self setInitGL: nil]; [self setNeedsDisplay: YES]; break; |
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: |
case CFEPglPointSize: |
glPointSize(x); break; |
glPointSize(x); break; |
case CFEPglRectf: |
case CFEPglRectf: |
glRectf(x,y,z,c); break; |
glRectf(x,y,z,c); break; |
case CFEPglVertex3f: |
case CFEPglVertex3f: |
glVertex3f(x,y,z); break; |
glVertex3f(x,y,z); break; |
|
case CFEPglVertex2f: |
|
glVertex2f(x,y); break; |
|
|
case CFEPglib_line: |
case CFEPglib_line: |
glib_line(x,y,z,c,p); break; |
glib_line(x,y,z,c,p); break; |