[BACK]Return to MyOpenGLView.h CVS log [TXT][DIR] Up to [local] / OpenXM / src / cfep

File: [local] / OpenXM / src / cfep / MyOpenGLView.h (download)

Revision 1.1, Fri Mar 3 23:31:12 2006 UTC (18 years, 2 months ago) by takayama
Branch: MAIN

Initial revision

//
//  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);