CelestiaAppCore.h
上传用户:center1979
上传日期:2022-07-26
资源大小:50633k
文件大小:2k
源码类别:

OpenGL

开发平台:

Visual C++

  1. //
  2. //  CelestiaCore.h
  3. //  celestia
  4. //
  5. //  Created by Bob Ippolito on Wed Jun 05 2002.
  6. //  Copyright (C) 2007, Celestia Development Team
  7. //
  8. #import "CelestiaDestination.h"
  9. #import "CelestiaFavorite.h"
  10. #import "CelestiaFavorites.h"
  11. #import "CelestiaSimulation.h"
  12. #import "CelestiaRenderer.h"
  13. #ifdef __cplusplus
  14. class CelestiaCore;
  15. #else
  16. @class CelestiaCore;
  17. #endif
  18. @interface CelestiaAppCore : NSObject {
  19.     CelestiaDestinations* _destinations;
  20. }
  21. -(CelestiaCore*) appCore;
  22. -(int)toCelestiaKey:(NSEvent*)theEvent;
  23. -(int)toCelestiaModifiers:(unsigned int)modifiers buttons:(unsigned int)buttons;
  24. -(void)archive;
  25. +(CelestiaAppCore *)sharedAppCore;
  26. -(BOOL)initSimulation;
  27. -(BOOL)initRenderer;
  28. -(void)start:(NSDate *)date;
  29. -(void)charEntered:(char)c withModifiers:(int)modifiers;
  30. -(void)charEntered:(NSString *)string;
  31. -(void)keyDown:(int)c;
  32. -(void)keyUp:(int)c;
  33. -(void)mouseWheel:(float)motion modifiers:(int)modifiers;
  34. -(void)mouseButtonDown:(NSPoint)coord modifiers:(int)modifiers;
  35. -(void)mouseButtonUp:(NSPoint)coord modifiers:(int)modifiers;
  36. -(void)mouseMove:(NSPoint)coord;
  37. -(void)mouseMove:(NSPoint)delta modifiers:(int)modifiers;
  38. -(void)joystickAxis:(int)axis value:(float)value;
  39. -(void)joystickButton:(int)button state:(BOOL)state;
  40. -(void)resize:(NSRect)r;
  41. -(void)draw;
  42. -(void)tick;
  43. -(CelestiaSimulation *)simulation;
  44. -(CelestiaRenderer *)renderer;
  45. -(void)showText:(NSString *)text;
  46. -(void)activateFavorite:(id)fav;
  47. -(CelestiaFavorites *)favorites;
  48. -(CelestiaDestinations *)destinations;
  49. -(NSTimeZone *)timeZone;
  50. -(void)setTimeZone:(NSTimeZone *)timeZone withDate:(NSDate *)date;
  51. -(int)textEnterMode;
  52. -(void)cancelScript;
  53. -(int)hudDetail;
  54. -(void)setHudDetail:(int)hudDetail;
  55. -(void)back;
  56. -(void)forward;
  57. -(NSString *) currentURL;
  58. -(void)goToUrl:(NSString *)url;
  59. -(void)setStartURL:(NSString *)url;
  60. -(unsigned int) getLocationFilter;
  61. -(void) setLocationFilter: (unsigned int) filter;
  62. -(void)runScript:(NSString *)fileName;
  63. -(void)showInfoURL;
  64. -(void)keyDown:(int)c withModifiers:(int)m;
  65. -(void)keyUp:(int)c withModifiers:(int)m;
  66. -(unsigned int)aaSamples;
  67. -(BOOL)glExtensionIgnored:(NSString *)extension;
  68. -(void)setGLExtensionIgnored:(NSString *)extension;
  69. -(BOOL) captureMovie: (NSString*)filename width: (int)width height: (int)height
  70.                               frameRate: (float)framerate;
  71. @end