Annotation of OpenXM/src/cfep/MyOpenGLController.h, Revision 1.1
1.1 ! takayama 1: //
! 2: // MyOpenGLController.h
! 3: // cfep
! 4: //
! 5: // Created by Nobuki Takayama on 06/02/18.
! 6: // Copyright 2006 OpenXM.org. All rights reserved.
! 7: //
! 8:
! 9: #import <Cocoa/Cocoa.h>
! 10: #import "MyOpenGLCommand.h"
! 11: #import "MyOpenGLView.h"
! 12: @class MyDocument;
! 13: #define GID_MAX 1024
! 14:
! 15: @interface MyOpenGLController : NSWindowController {
! 16: IBOutlet NSWindow *window;
! 17: IBOutlet MyOpenGLView *myogl;
! 18: IBOutlet NSTextField *mymessage;
! 19: // MyOpenGL window id (gid) is an indeger.
! 20: int gid;
! 21: }
! 22:
! 23: +(MyOpenGLController *)getOglWindow: (int) tid ;
! 24: +(MyDocument *)getOglParent: (int) tid;
! 25: +(void)initMyOpenGLController ;
! 26: +(int) myOpenGLControllerOwnedBy: (MyDocument *) owner with: (int) tid;
! 27: +(int) myOpenGLControllerOwnedBy: (MyDocument *) owner;
! 28: +(void) removeMyOpenGLControllerOwnedBy: (MyDocument *) owner;
! 29: +(MyOpenGLController *) removeMyOpenGLControllerWithGid: (int) gid;
! 30: +(void) addOglComm: (NSString *)comm to: (int) tid from: (MyDocument *) owner;
! 31: +(void) addOglInitComm: (NSString *)comm to: (int) tid from: (MyDocument *) owner;
! 32: -(id) init ;
! 33: -(void) setGid: (int) mygid;
! 34: -(int) getGid ;
! 35: -(void) windowDidLoad ;
! 36: -(void) dealloc ;
! 37: -(void) closeMyOpenGL: (MyDocument *) md ;
! 38: -(BOOL) windowShouldClose: (NSWindow *)sender ;
! 39: -(void) addOglComm: (NSString *)comm ; // Adding a OpenGL command.
! 40: -(void) addOglInitComm: (NSString *)comm ; // Adding a OpenGL initialization command.
! 41: -(void) output: (NSString *)msg;
! 42: @end
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>