summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/cocoaint/src/quartzcore/CAOpenGLLayer.inc
blob: 47d985146cfe277f42fa874752b159c44183df12 (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
{ Parsed from Quartzcore.framework CAOpenGLLayer.h }

{$ifdef TYPES}
{$ifndef CAOPENGLLAYER_PAS_T}
{$define CAOPENGLLAYER_PAS_T}

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef CAOPENGLLAYER_PAS_R}
{$define CAOPENGLLAYER_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef CAOPENGLLAYER_PAS_F}
{$define CAOPENGLLAYER_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef CAOPENGLLAYER_PAS_S}
{$define CAOPENGLLAYER_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  CAOpenGLLayer = objcclass;
  CAOpenGLLayerPointer = ^CAOpenGLLayer;
  CAOpenGLLayerPtr = CAOpenGLLayerPointer;

{$endif}

{$ifdef CLASSES}
{$ifndef CAOPENGLLAYER_PAS_C}
{$define CAOPENGLLAYER_PAS_C}

{ CAOpenGLLayer }
  CAOpenGLLayer = objcclass external (CALayer)
  private
    __glPriv: Pointer;
    
  public
    procedure setAsynchronous (newValue: Boolean); message 'setAsynchronous:';
    function isAsynchronous: Boolean; message 'isAsynchronous';
    function canDrawInCGLContext_pixelFormat_forLayerTime_displayTime(ctx: CGLContextObj; pf: CGLPixelFormatObj; t: CFTimeInterval; ts: CVTimeStampPtr): Boolean; message 'canDrawInCGLContext:pixelFormat:forLayerTime:displayTime:';
    procedure drawInCGLContext_pixelFormat_forLayerTime_displayTime(ctx: CGLContextObj; pf: CGLPixelFormatObj; t: CFTimeInterval; ts: CVTimeStampPtr); message 'drawInCGLContext:pixelFormat:forLayerTime:displayTime:';
    function copyCGLPixelFormatForDisplayMask(mask_: cuint32): CGLPixelFormatObj; message 'copyCGLPixelFormatForDisplayMask:';
    procedure releaseCGLPixelFormat(pf: CGLPixelFormatObj); message 'releaseCGLPixelFormat:';
    function copyCGLContextForPixelFormat(pf: CGLPixelFormatObj): CGLContextObj; message 'copyCGLContextForPixelFormat:';
    procedure releaseCGLContext(ctx: CGLContextObj); message 'releaseCGLContext:';
  end;

{$endif}
{$endif}