version 1.4, 2006/03/10 11:48:01 |
version 1.6, 2008/11/24 07:54:04 |
|
|
// Copyright 2006 OpenXM.org. All rights reserved. |
// Copyright 2006 OpenXM.org. All rights reserved. |
// |
// |
|
|
|
#import <OpenGL/OpenGL.h> |
|
#import <OpenGL/gl.h> |
|
#import <OpenGL/glu.h> |
|
#import <GLUT/glut.h> |
|
|
#import "MyOpenGLView.h" |
#import "MyOpenGLView.h" |
#import "MyOpenGLController.h" |
#import "MyOpenGLController.h" |
#include "mygl.h" |
#include "mygl.h" |
|
|
|
|
|
|
@implementation MyOpenGLView |
@implementation MyOpenGLView |
-(id) initWithFrame: (NSRect) frame { |
-(id) initWithFrame: (NSRect) frame { |
NSLog(@"initWithFrame\n"); |
NSLog(@"initWithFrame\n"); |
|
|
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; |
|
|
-(void) glib3_std_scene0 { |
-(void) glib3_std_scene0 { |
glib3_std_scene0(xeye,yeye,zeye); |
glib3_std_scene0(xeye,yeye,zeye); |
} |
} |
|
-(void) mouseDown: (NSEvent *) theEvent { |
|
NSLog(@"Mouse is down\n"); |
|
} |
@end |
@end |
|
|
// Original glib functions |
// Original glib functions |