summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/cocoaint/src/appkit/NSOpenGLView.inc
blob: 59034910eaed4fe6157bac5bf14b5767950b5c20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{ Parsed from Appkit.framework NSOpenGLView.h }

{$ifdef TYPES}
{$ifndef NSOPENGLVIEW_PAS_T}
{$define NSOPENGLVIEW_PAS_T}

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSOPENGLVIEW_PAS_R}
{$define NSOPENGLVIEW_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSOPENGLVIEW_PAS_F}
{$define NSOPENGLVIEW_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSOPENGLVIEW_PAS_S}
{$define NSOPENGLVIEW_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSOpenGLView = objcclass;
  NSOpenGLViewPointer = ^NSOpenGLView;
  NSOpenGLViewPtr = NSOpenGLViewPointer;

{$endif}

{$ifdef CLASSES}
{$ifndef NSOPENGLVIEW_PAS_C}
{$define NSOPENGLVIEW_PAS_C}

{ NSOpenGLView }
  NSOpenGLView = objcclass external (NSView)
  private
    _openGLContext: NSOpenGLContext;
    _pixelFormat: NSOpenGLPixelFormat;
    _reserved1: NSInteger;
    _reserved2: NSInteger;
    _reserved3: NSInteger;
    
  public
    class function defaultPixelFormat: NSOpenGLPixelFormat; message 'defaultPixelFormat';
    function initWithFrame_pixelFormat(frameRect: NSRect; format: NSOpenGLPixelFormat): id; message 'initWithFrame:pixelFormat:';
    procedure setOpenGLContext(context: NSOpenGLContext); message 'setOpenGLContext:';
    function openGLContext: NSOpenGLContext; message 'openGLContext';
    procedure clearGLContext; message 'clearGLContext';
    procedure update; message 'update';
    procedure reshape; message 'reshape';
    procedure setPixelFormat(pixelFormat_: NSOpenGLPixelFormat); message 'setPixelFormat:';
    function pixelFormat: NSOpenGLPixelFormat; message 'pixelFormat';
    procedure prepareOpenGL; message 'prepareOpenGL';
  end;

{$endif}
{$endif}