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

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

Revision 1.2, Tue Mar 7 11:15:23 2006 UTC (18 years, 2 months ago) by takayama
Branch: MAIN
CVS Tags: R_1_3_1-2, RELEASE_1_3_1_13b, RELEASE_1_2_3_12, DEB_REL_1_2_3-9
Changes since 1.1: +11 -0 lines

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".

//
//  MyOpenGLController.h
//  cfep
//
//  Created by Nobuki Takayama on 06/02/18.
//  Copyright 2006 OpenXM.org. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "MyOpenGLCommand.h"
#import "MyOpenGLView.h"
@class MyDocument;
#define GID_MAX 1024

@interface MyOpenGLController : NSWindowController {
  IBOutlet NSWindow *window;
  IBOutlet MyOpenGLView *myogl;
  IBOutlet NSTextField *mymessage;
// MyOpenGL window id (gid) is an indeger.  
  int gid;
}

+(MyOpenGLController *)getOglWindow: (int) tid ;
+(MyDocument *)getOglParent: (int) tid;
+(void)initMyOpenGLController ;
+(int) myOpenGLControllerOwnedBy: (MyDocument *) owner with: (int) tid;
+(int) myOpenGLControllerOwnedBy: (MyDocument *) owner;
+(void) removeMyOpenGLControllerOwnedBy: (MyDocument *) owner;
+(MyOpenGLController *) removeMyOpenGLControllerWithGid: (int) gid;
+(void) addOglComm:     (NSString *)comm to: (int) tid from: (MyDocument *) owner;
+(void) addOglInitComm: (NSString *)comm to: (int) tid from: (MyDocument *) owner;
-(id) init ;
-(void) setGid: (int) mygid;
-(int) getGid ;
-(void) windowDidLoad ;
-(void) dealloc ;
-(void) closeMyOpenGL: (MyDocument *) md ;
-(BOOL) windowShouldClose: (NSWindow *)sender ;
-(void) addOglComm: (NSString *)comm ;   // Adding a OpenGL command.
-(void) addOglInitComm: (NSString *)comm ;   // Adding a OpenGL initialization command.
-(int) countOfOglComm ;
-(int) countOfOglInitComm;
-(int) removeLastOfOglComm;
-(int) removeLastOfOglInitComm;
-(int) removeAllOfOglComm;
-(int) removeAllOfOglInitComm;
-(NSMutableArray *) getListOfOglComm;
-(NSMutableArray *) getListOfOglInitComm; 
-(void) showCount;
-(void) showEyeX: (float) x Y: (float) y Z: (float) z ;
-(void) clearOutput;
-(void) output: (NSString *)msg;
@end