PolySubstanceView.h 854 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. //
  2. // SubstanceView.h
  3. // Substance
  4. //
  5. // Created by Ivan Safrin on 2/21/10.
  6. // Copyright 2010 Ivan Safrin. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <Cocoa/Cocoa.h>
  10. #include <OpenGL/gl.h>
  11. #include <OpenGL/OpenGL.h>
  12. #include "PolyString.h"
  13. #include "Polycode.h"
  14. #include "PolyCocoaCore.h"
  15. using namespace Polycode;
  16. @interface SubstanceView : NSOpenGLView {
  17. TAUKey keymap[512];
  18. char mouseMap[128];
  19. char modifierMap[512];
  20. CocoaCore *core;
  21. NSLock *contextLock;
  22. NSCursor *currentCursor;
  23. bool contextReady;
  24. }
  25. @property BOOL viewReady;
  26. - (void) setCurrentCursor: (NSCursor*) newCursor;
  27. - (id)initWithFrame:(NSRect)frameRect pixelFormat:(NSOpenGLPixelFormat *)format;
  28. - (void) lockContext;
  29. - (void) unlockContext;
  30. - (BOOL) isContextReady;
  31. - (void) setCore: (CocoaCore*) newCore;
  32. - (void) initKeymap;
  33. @end