PolySubstanceView.h 802 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 "Polycode.h"
  13. #include "PolyCocoaCore.h"
  14. using namespace Polycode;
  15. @interface SubstanceView : NSOpenGLView {
  16. TAUKey keymap[512];
  17. char mouseMap[128];
  18. char modifierMap[512];
  19. CocoaCore *core;
  20. NSLock *contextLock;
  21. NSCursor *currentCursor;
  22. bool contextReady;
  23. }
  24. - (void) setCurrentCursor: (NSCursor*) newCursor;
  25. - (id)initWithFrame:(NSRect)frameRect pixelFormat:(NSOpenGLPixelFormat *)format;
  26. - (void) lockContext;
  27. - (void) unlockContext;
  28. - (BOOL) isContextReady;
  29. - (void) setCore: (CocoaCore*) newCore;
  30. - (void) initKeymap;
  31. @end