version 1.5, 2006/03/11 12:56:43 |
version 1.7, 2018/10/18 04:59:45 |
|
|
// 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"); |
|
|
ii = [gc getI4]; |
ii = [gc getI4]; |
x = v[0]; y = v[1]; z = v[2]; c = v[3]; |
x = v[0]; y = v[1]; z = v[2]; c = v[3]; |
p = ii[0]; q=ii[1]; r=ii[2]; s=ii[3]; |
p = ii[0]; q=ii[1]; r=ii[2]; s=ii[3]; |
// NSLog(@"opCode=%d, (x,y,z,c)=(%f,%f,%f,%f), (p,q,r,s)=(%d,%d,%d,%d)\n",op,x,y,z,c,p,q,r,s); |
// NSLog(@"opCode=%d, (x,y,z,c)=(%f,%f,%f,%f), (p,q,r,s)=(%d,%d,%d,%d)\n",op,x,y,z,c,p,q,r,s); |
switch(op) { |
switch(op) { |
case CFEPglBegin: |
case CFEPglBegin: |
glBegin(p); |
glBegin(p); |
|
|
-(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 |