File: [local] / OpenXM / src / cfep / MyOpenGLView.h (download)
Revision 1.1.1.1 (vendor branch), Fri Mar 3 23:31:12 2006 UTC (18 years, 6 months ago) by takayama
Branch: TAKAYAMA
CVS Tags: RELEASE_0_9 Changes since 1.1: +0 -0
lines
The initial release of cfep (cocoa front end view process for OpenXM engines).
It has been built and tested on Mac OS X 10.4 (tigers) and xcode 2.2.
The default engine is risa/asir.
|
//
// MyOpenGLView.h
// cfep
//
// Created by Nobuki Takayama on 06/02/18.
// Copyright 2006 OpenXM.org. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "MyOpenGLCommand.h"
@interface MyOpenGLView : NSOpenGLView {
int initGl;
double xeye,yeye,zeye; // eye position
NSMutableArray *oglComm;
int oglCommSize;
NSMutableArray *oglInitComm;
int oglInitCommSize;
}
-(id) initWithFrame: (NSRect) frameRect;
-(void) drawRectSimple: (NSRect) rect withColor: (double)c;
-(void) drawRect: (NSRect) rect ;
-(IBAction) setXeye: (id) sender;
-(IBAction) setYeye: (id) sender;
-(IBAction) setZeye: (id) sender;
-(void) addOglComm: (NSString *) comm by: (id) sender;
-(void) drawOglComm ;
-(void) addOglInitComm: (NSString *) comm by: (id) sender;
-(void) drawOglInitComm ;
-(void) execute: (MyOpenGLCommand *)gc;
-(void) initGL ;
-(void) glib3_ray;
@end
// original glib functions
void glib_line(float x,float y, float x2,float y2, int color);
void glib_putpixel(float x,float y, int color);