Return to MyOpenGLView.h CVS log | Up to [local] / OpenXM / src / cfep |
File: [local] / OpenXM / src / cfep / MyOpenGLView.h (download)
Revision 1.2, Tue Mar 7 11:15:23 2006 UTC (18 years, 4 months ago) by takayama
1. Added the following new OpenGL commands. cfep.glib_init_send("0; [glClearColor,0.0,0.5,0.5,0.1]"); /* GL_COLOR_BUFFER_BIT 0x4000, = 16384 GL_DEPTH_BUFFER_BIT 0x100 */ cfep.glib_init_send("0; [glClear,(int)16384]"); cfep.glib_send("0; [glColor4f,1.0,0,0,0]"); cfep.glib_send("0; [glRectf,-0.5,-0.1,0.5,0.1]"); cfep.glib_send("0; [glFlush]"); cfep.glib_send("0;meta_showListOfOglComm"); meta_removeLast, meta_removeAll, meta_removeLastInit, meta_removeAllInit 2. small improvement of the interface of "goto next line". |
// // 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; int gid; } -(id) initWithFrame: (NSRect) frameRect; -(void) drawRectSimple: (NSRect) rect withColor: (double)c; -(void) drawRect: (NSRect) rect ; -(void) showEyePos ; -(IBAction) setXeye: (id) sender; -(IBAction) setYeye: (id) sender; -(IBAction) setZeye: (id) sender; -(void) setGid: (int) gid; -(void) addOglComm: (NSString *) comm by: (id) sender; -(void) drawOglComm ; -(void) addOglInitComm: (NSString *) comm by: (id) sender; -(NSMutableArray *)getListOfOglComm; -(NSMutableArray *)getListOfOglInitComm; -(int) countOfOglComm ; -(int) countOfOglInitComm; -(int) removeLastOfOglComm; -(int) removeLastOfOglInitComm; -(int) removeAllOfOglComm; -(int) removeAllOfOglInitComm; -(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);