Panda3D
Loading...
Searching...
No Matches
cocoaPandaAppDelegate.h
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file cocoaPandaAppDelegate.h
10 * @author Donny Lawrence
11 * @date 2018-02-25
12 */
13
14#import <Foundation/Foundation.h>
15#import <AppKit/AppKit.h>
16
17class GraphicsEngine;
18
19// Cocoa is picky about where and when certain methods are called in the initialization process.
20@interface CocoaPandaAppDelegate : NSObject<NSApplicationDelegate> {
21 @private
22 GraphicsEngine *_engine;
23}
24
25- (id) initWithEngine:(GraphicsEngine *)engine;
26- (void)applicationDidFinishLaunching:(NSNotification *)notification;
27- (BOOL)applicationShouldTerminate:(NSApplication *)app;
28- (void)applicationWillTerminate:(NSNotification *)notification;
29
30@end
This class is the main interface to controlling the render process.