4
Contains: Games Sprockets: DrawSprocket interfaces
6
Version: Technology: Draw Sprocket 1.7
7
Release: Universal Interfaces 3.4.2
9
Copyright: � 1996-2002 by Apple Computer, Inc., all rights reserved.
11
Bugs?: For bug reports, consult the following page on
14
http://www.freepascal.org/bugs.html
20
Modified for use with Free Pascal
22
Please report any bugs to <gpc@microbizz.nl>
33
{$setc UNIVERSAL_INTERFACES_VERSION := $0342}
34
{$setc GAP_INTERFACES_VERSION := $0200}
36
{$ifc not defined USE_CFSTR_CONSTANT_MACROS}
37
{$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
40
{$ifc defined CPUPOWERPC and defined CPUI386}
41
{$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
43
{$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
44
{$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
47
{$ifc not defined __ppc__ and defined CPUPOWERPC}
52
{$ifc not defined __i386__ and defined CPUI386}
58
{$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
59
{$error Conflicting definitions for __ppc__ and __i386__}
62
{$ifc defined __ppc__ and __ppc__}
63
{$setc TARGET_CPU_PPC := TRUE}
64
{$setc TARGET_CPU_X86 := FALSE}
65
{$elifc defined __i386__ and __i386__}
66
{$setc TARGET_CPU_PPC := FALSE}
67
{$setc TARGET_CPU_X86 := TRUE}
69
{$error Neither __ppc__ nor __i386__ is defined.}
71
{$setc TARGET_CPU_PPC_64 := FALSE}
73
{$ifc defined FPC_BIG_ENDIAN}
74
{$setc TARGET_RT_BIG_ENDIAN := TRUE}
75
{$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
76
{$elifc defined FPC_LITTLE_ENDIAN}
77
{$setc TARGET_RT_BIG_ENDIAN := FALSE}
78
{$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
80
{$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
82
{$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
83
{$setc CALL_NOT_IN_CARBON := FALSE}
84
{$setc OLDROUTINENAMES := FALSE}
85
{$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
86
{$setc OPAQUE_UPP_TYPES := TRUE}
87
{$setc OTCARBONAPPLICATION := TRUE}
88
{$setc OTKERNEL := FALSE}
89
{$setc PM_USE_SESSION_APIS := TRUE}
90
{$setc TARGET_API_MAC_CARBON := TRUE}
91
{$setc TARGET_API_MAC_OS8 := FALSE}
92
{$setc TARGET_API_MAC_OSX := TRUE}
93
{$setc TARGET_CARBON := TRUE}
94
{$setc TARGET_CPU_68K := FALSE}
95
{$setc TARGET_CPU_MIPS := FALSE}
96
{$setc TARGET_CPU_SPARC := FALSE}
97
{$setc TARGET_OS_MAC := TRUE}
98
{$setc TARGET_OS_UNIX := FALSE}
99
{$setc TARGET_OS_WIN32 := FALSE}
100
{$setc TARGET_RT_MAC_68881 := FALSE}
101
{$setc TARGET_RT_MAC_CFM := FALSE}
102
{$setc TARGET_RT_MAC_MACHO := TRUE}
103
{$setc TYPED_FUNCTION_POINTERS := TRUE}
104
{$setc TYPE_BOOL := FALSE}
105
{$setc TYPE_EXTENDED := FALSE}
106
{$setc TYPE_LONGLONG := TRUE}
107
uses MacTypes,Video,Events,Quickdraw,QDOffscreen,Displays,MacErrors;
112
********************************************************************************
114
********************************************************************************
118
DSpDepthMask = SInt32;
120
kDSpDepthMask_1 = $01;
121
kDSpDepthMask_2 = $02;
122
kDSpDepthMask_4 = $04;
123
kDSpDepthMask_8 = $08;
124
kDSpDepthMask_16 = $10;
125
kDSpDepthMask_32 = $20;
126
kDSpDepthMask_All = -1;
130
DSpColorNeeds = SInt32;
132
kDSpColorNeeds_DontCare = 0;
133
kDSpColorNeeds_Request = 1;
134
kDSpColorNeeds_Require = 2;
138
DSpContextState = SInt32;
140
kDSpContextState_Active = 0;
141
kDSpContextState_Paused = 1;
142
kDSpContextState_Inactive = 2;
144
{ kDSpContextOption_QD3DAccel not yet implemented }
147
DSpContextOption = SInt32;
149
{ kDSpContextOption_QD3DAccel = 1<<0, }
150
kDSpContextOption_PageFlip = $02;
151
kDSpContextOption_DontSyncVBL = $04;
152
kDSpContextOption_Stereoscopic = $08;
156
DSpAltBufferOption = SInt32;
158
kDSpAltBufferOption_RowBytesEqualsWidth = $01;
162
DSpBufferKind = SInt32;
164
kDSpBufferKind_Normal = 0;
168
DSpBlitMode = SInt32;
170
kDSpBlitMode_Plain = 0;
171
kDSpBlitMode_SrcKey = $01;
172
kDSpBlitMode_DstKey = $02;
173
kDSpBlitMode_Interpolation = $04;
176
********************************************************************************
178
********************************************************************************
182
DSpAltBufferReference = ^SInt32; { an opaque 32-bit type }
183
DSpAltBufferReferencePtr = ^DSpAltBufferReference; { when a var xx:DSpAltBufferReference parameter can be nil, it is changed to xx: DSpAltBufferReferencePtr }
184
DSpContextReference = ^SInt32; { an opaque 32-bit type }
185
DSpContextReferencePtr = ^DSpContextReference; { when a var xx:DSpContextReference parameter can be nil, it is changed to xx: DSpContextReferencePtr }
186
DSpContextReferenceConst = ^SInt32; { an opaque 32-bit type }
187
DSpContextReferenceConstPtr = ^DSpContextReferenceConst; { when a var xx:DSpContextReferenceConst parameter can be nil, it is changed to xx: DSpContextReferenceConstPtr }
188
{$ifc TYPED_FUNCTION_POINTERS}
189
DSpEventProcPtr = function(var inEvent: EventRecord): boolean;
191
DSpEventProcPtr = ProcPtr;
194
{$ifc TYPED_FUNCTION_POINTERS}
195
DSpCallbackProcPtr = function(inContext: DSpContextReference; inRefCon: UnivPtr): boolean;
197
DSpCallbackProcPtr = ProcPtr;
200
{$ifc OPAQUE_UPP_TYPES}
201
DSpEventUPP = ^SInt32; { an opaque UPP }
203
DSpEventUPP = DSpEventProcPtr;
205
{$ifc OPAQUE_UPP_TYPES}
206
DSpCallbackUPP = ^SInt32; { an opaque UPP }
208
DSpCallbackUPP = DSpCallbackProcPtr;
212
uppDSpEventProcInfo = $000000D1;
213
uppDSpCallbackProcInfo = $000003D1;
214
{$ifc CALL_NOT_IN_CARBON}
219
* Non-Carbon CFM: available as macro/inline
220
* CarbonLib: not available
221
* Mac OS X: not available
223
function NewDSpEventUPP(userRoutine: DSpEventProcPtr): DSpEventUPP; external name '_NewDSpEventUPP';
225
* NewDSpCallbackUPP()
228
* Non-Carbon CFM: available as macro/inline
229
* CarbonLib: not available
230
* Mac OS X: not available
232
function NewDSpCallbackUPP(userRoutine: DSpCallbackProcPtr): DSpCallbackUPP; external name '_NewDSpCallbackUPP';
234
* DisposeDSpEventUPP()
237
* Non-Carbon CFM: available as macro/inline
238
* CarbonLib: not available
239
* Mac OS X: not available
241
procedure DisposeDSpEventUPP(userUPP: DSpEventUPP); external name '_DisposeDSpEventUPP';
243
* DisposeDSpCallbackUPP()
246
* Non-Carbon CFM: available as macro/inline
247
* CarbonLib: not available
248
* Mac OS X: not available
250
procedure DisposeDSpCallbackUPP(userUPP: DSpCallbackUPP); external name '_DisposeDSpCallbackUPP';
252
* InvokeDSpEventUPP()
255
* Non-Carbon CFM: available as macro/inline
256
* CarbonLib: not available
257
* Mac OS X: not available
259
function InvokeDSpEventUPP(var inEvent: EventRecord; userRoutine: DSpEventUPP): boolean; external name '_InvokeDSpEventUPP';
261
* InvokeDSpCallbackUPP()
264
* Non-Carbon CFM: available as macro/inline
265
* CarbonLib: not available
266
* Mac OS X: not available
268
function InvokeDSpCallbackUPP(inContext: DSpContextReference; inRefCon: UnivPtr; userRoutine: DSpCallbackUPP): boolean; external name '_InvokeDSpCallbackUPP';
269
{$endc} {CALL_NOT_IN_CARBON}
273
DSpContextAttributesPtr = ^DSpContextAttributes;
274
DSpContextAttributes = record
276
displayWidth: UInt32;
277
displayHeight: UInt32;
281
colorTable: CTabHandle;
282
contextOptions: OptionBits;
283
backBufferDepthMask: OptionBits;
284
displayDepthMask: OptionBits;
285
backBufferBestDepth: UInt32;
286
displayBestDepth: UInt32;
288
filler1,filler2,filler3: SInt8;
289
gameMustConfirmSwitch: boolean;
290
reserved3: array [0..3] of UInt32;
293
DSpAltBufferAttributesPtr = ^DSpAltBufferAttributes;
294
DSpAltBufferAttributes = record
297
options: DSpAltBufferOption;
298
reserved: array [0..3] of UInt32;
301
DSpBlitInfoPtr = ^DSpBlitInfo;
302
{$ifc TYPED_FUNCTION_POINTERS}
303
DSpBlitDoneProc = procedure(info: DSpBlitInfoPtr);
305
DSpBlitDoneProc = ProcPtr;
309
completionFlag: boolean;
310
filler1, filler2, filler3: SInt8;
311
completionProc: DSpBlitDoneProc;
312
srcContext: DSpContextReference;
316
dstContext: DSpContextReference;
321
reserved: array [0..3] of UInt32;
325
********************************************************************************
326
** function prototypes
327
********************************************************************************
337
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
338
* CarbonLib: not available
339
* Mac OS X: in version 10.0 and later
341
function DSpStartup: OSStatus; external name '_DSpStartup';
347
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
348
* CarbonLib: not available
349
* Mac OS X: in version 10.0 and later
351
function DSpShutdown: OSStatus; external name '_DSpShutdown';
357
* Non-Carbon CFM: in DrawSprocketLib 1.7 and later
358
* CarbonLib: not available
359
* Mac OS X: in version 10.0 and later
361
function DSpGetVersion: NumVersion; external name '_DSpGetVersion';
364
* DSpGetFirstContext()
367
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
368
* CarbonLib: not available
369
* Mac OS X: in version 10.0 and later
371
function DSpGetFirstContext(inDisplayID: DisplayIDType; var outContext: DSpContextReference): OSStatus; external name '_DSpGetFirstContext';
374
* DSpGetNextContext()
377
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
378
* CarbonLib: not available
379
* Mac OS X: in version 10.0 and later
381
function DSpGetNextContext(inCurrentContext: DSpContextReference; var outContext: DSpContextReference): OSStatus; external name '_DSpGetNextContext';
384
* DSpGetCurrentContext()
387
* Non-Carbon CFM: in DrawSprocketLib 1.7 and later
388
* CarbonLib: not available
389
* Mac OS X: in version 10.0 and later
391
function DSpGetCurrentContext(inDisplayID: DisplayIDType; var outContext: DSpContextReference): OSStatus; external name '_DSpGetCurrentContext';
394
* DSpFindBestContext()
397
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
398
* CarbonLib: not available
399
* Mac OS X: in version 10.0 and later
401
function DSpFindBestContext(inDesiredAttributes: DSpContextAttributesPtr; var outContext: DSpContextReference): OSStatus; external name '_DSpFindBestContext';
404
* DSpFindBestContextOnDisplayID()
407
* Non-Carbon CFM: in DrawSprocketLib 1.7 and later
408
* CarbonLib: not available
409
* Mac OS X: in version 10.0 and later
411
function DSpFindBestContextOnDisplayID(inDesiredAttributes: DSpContextAttributesPtr; var outContext: DSpContextReference; inDisplayID: DisplayIDType): OSStatus; external name '_DSpFindBestContextOnDisplayID';
413
{$ifc CALL_NOT_IN_CARBON}
415
* DSpCanUserSelectContext()
418
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
419
* CarbonLib: not available
420
* Mac OS X: not available
422
function DSpCanUserSelectContext(inDesiredAttributes: DSpContextAttributesPtr; var outUserCanSelectContext: boolean): OSStatus; external name '_DSpCanUserSelectContext';
425
* DSpUserSelectContext()
428
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
429
* CarbonLib: not available
430
* Mac OS X: not available
432
function DSpUserSelectContext(inDesiredAttributes: DSpContextAttributesPtr; inDialogDisplayLocation: DisplayIDType; inEventProc: DSpEventUPP; var outContext: DSpContextReference): OSStatus; external name '_DSpUserSelectContext';
434
{$endc} {CALL_NOT_IN_CARBON}
440
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
441
* CarbonLib: not available
442
* Mac OS X: in version 10.0 and later
444
function DSpProcessEvent(var inEvent: EventRecord; var outEventWasProcessed: boolean): OSStatus; external name '_DSpProcessEvent';
447
* DSpSetBlankingColor()
450
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
451
* CarbonLib: not available
452
* Mac OS X: in version 10.0 and later
454
function DSpSetBlankingColor(const (*var*) inRGBColor: RGBColor): OSStatus; external name '_DSpSetBlankingColor';
460
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
461
* CarbonLib: not available
462
* Mac OS X: in version 10.0 and later
464
function DSpSetDebugMode(inDebugMode: boolean): OSStatus; external name '_DSpSetDebugMode';
467
* DSpFindContextFromPoint()
470
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
471
* CarbonLib: not available
472
* Mac OS X: in version 10.0 and later
474
function DSpFindContextFromPoint(inGlobalPoint: Point; var outContext: DSpContextReference): OSStatus; external name '_DSpFindContextFromPoint';
480
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
481
* CarbonLib: not available
482
* Mac OS X: in version 10.0 and later
484
function DSpGetMouse(var outGlobalPoint: Point): OSStatus; external name '_DSpGetMouse';
487
** alternate buffer operations
489
{$ifc CALL_NOT_IN_CARBON}
494
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
495
* CarbonLib: not available
496
* Mac OS X: not available
498
function DSpAltBuffer_New(inContext: DSpContextReference; inVRAMBuffer: boolean; var inAttributes: DSpAltBufferAttributes; var outAltBuffer: DSpAltBufferReference): OSStatus; external name '_DSpAltBuffer_New';
501
* DSpAltBuffer_Dispose()
504
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
505
* CarbonLib: not available
506
* Mac OS X: not available
508
function DSpAltBuffer_Dispose(inAltBuffer: DSpAltBufferReference): OSStatus; external name '_DSpAltBuffer_Dispose';
511
* DSpAltBuffer_InvalRect()
514
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
515
* CarbonLib: not available
516
* Mac OS X: not available
518
function DSpAltBuffer_InvalRect(inAltBuffer: DSpAltBufferReference; const (*var*) inInvalidRect: Rect): OSStatus; external name '_DSpAltBuffer_InvalRect';
521
* DSpAltBuffer_GetCGrafPtr()
524
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
525
* CarbonLib: not available
526
* Mac OS X: not available
528
function DSpAltBuffer_GetCGrafPtr(inAltBuffer: DSpAltBufferReference; inBufferKind: DSpBufferKind; var outCGrafPtr: CGrafPtr; var outGDevice: GDHandle): OSStatus; external name '_DSpAltBuffer_GetCGrafPtr';
531
** context operations
534
{$endc} {CALL_NOT_IN_CARBON}
537
* DSpContext_GetAttributes()
540
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
541
* CarbonLib: not available
542
* Mac OS X: in version 10.0 and later
544
function DSpContext_GetAttributes(inContext: DSpContextReferenceConst; outAttributes: DSpContextAttributesPtr): OSStatus; external name '_DSpContext_GetAttributes';
547
* DSpContext_Reserve()
550
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
551
* CarbonLib: not available
552
* Mac OS X: in version 10.0 and later
554
function DSpContext_Reserve(inContext: DSpContextReference; inDesiredAttributes: DSpContextAttributesPtr): OSStatus; external name '_DSpContext_Reserve';
560
* Non-Carbon CFM: in DrawSprocketLib 1.7 and later
561
* CarbonLib: not available
562
* Mac OS X: in version 10.0 and later
564
function DSpContext_Queue(inParentContext: DSpContextReference; inChildContext: DSpContextReference; inDesiredAttributes: DSpContextAttributesPtr): OSStatus; external name '_DSpContext_Queue';
567
* DSpContext_Switch()
570
* Non-Carbon CFM: in DrawSprocketLib 1.7 and later
571
* CarbonLib: not available
572
* Mac OS X: in version 10.0 and later
574
function DSpContext_Switch(inOldContext: DSpContextReference; inNewContext: DSpContextReference): OSStatus; external name '_DSpContext_Switch';
577
* DSpContext_Release()
580
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
581
* CarbonLib: not available
582
* Mac OS X: in version 10.0 and later
584
function DSpContext_Release(inContext: DSpContextReference): OSStatus; external name '_DSpContext_Release';
587
* DSpContext_Dispose()
590
* Non-Carbon CFM: not available
591
* CarbonLib: not available
592
* Mac OS X: in version 10.0 and later
594
function DSpContext_Dispose(inContext: DSpContextReference): OSStatus; external name '_DSpContext_Dispose';
597
* DSpContext_GetDisplayID()
600
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
601
* CarbonLib: not available
602
* Mac OS X: in version 10.0 and later
604
function DSpContext_GetDisplayID(inContext: DSpContextReferenceConst; var outDisplayID: DisplayIDType): OSStatus; external name '_DSpContext_GetDisplayID';
607
* DSpContext_GlobalToLocal()
610
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
611
* CarbonLib: not available
612
* Mac OS X: in version 10.0 and later
614
function DSpContext_GlobalToLocal(inContext: DSpContextReferenceConst; var ioPoint: Point): OSStatus; external name '_DSpContext_GlobalToLocal';
617
* DSpContext_LocalToGlobal()
620
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
621
* CarbonLib: not available
622
* Mac OS X: in version 10.0 and later
624
function DSpContext_LocalToGlobal(inContext: DSpContextReferenceConst; var ioPoint: Point): OSStatus; external name '_DSpContext_LocalToGlobal';
626
{$ifc CALL_NOT_IN_CARBON}
628
* DSpContext_SetVBLProc()
631
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
632
* CarbonLib: not available
633
* Mac OS X: not available
635
function DSpContext_SetVBLProc(inContext: DSpContextReference; inProcPtr: DSpCallbackUPP; inRefCon: UnivPtr): OSStatus; external name '_DSpContext_SetVBLProc';
638
* DSpContext_GetFlattenedSize()
641
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
642
* CarbonLib: not available
643
* Mac OS X: not available
645
function DSpContext_GetFlattenedSize(inContext: DSpContextReference; var outFlatContextSize: UInt32): OSStatus; external name '_DSpContext_GetFlattenedSize';
648
* DSpContext_Flatten()
651
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
652
* CarbonLib: not available
653
* Mac OS X: not available
655
function DSpContext_Flatten(inContext: DSpContextReference; outFlatContext: UnivPtr): OSStatus; external name '_DSpContext_Flatten';
658
* DSpContext_Restore()
661
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
662
* CarbonLib: not available
663
* Mac OS X: not available
665
function DSpContext_Restore(inFlatContext: UnivPtr; var outRestoredContext: DSpContextReference): OSStatus; external name '_DSpContext_Restore';
667
{$endc} {CALL_NOT_IN_CARBON}
670
* DSpContext_GetMonitorFrequency()
673
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
674
* CarbonLib: not available
675
* Mac OS X: in version 10.0 and later
677
function DSpContext_GetMonitorFrequency(inContext: DSpContextReferenceConst; var outFrequency: Fixed): OSStatus; external name '_DSpContext_GetMonitorFrequency';
679
{$ifc CALL_NOT_IN_CARBON}
681
* DSpContext_SetMaxFrameRate()
684
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
685
* CarbonLib: not available
686
* Mac OS X: not available
688
function DSpContext_SetMaxFrameRate(inContext: DSpContextReference; inMaxFPS: UInt32): OSStatus; external name '_DSpContext_SetMaxFrameRate';
691
* DSpContext_GetMaxFrameRate()
694
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
695
* CarbonLib: not available
696
* Mac OS X: not available
698
function DSpContext_GetMaxFrameRate(inContext: DSpContextReferenceConst; var outMaxFPS: UInt32): OSStatus; external name '_DSpContext_GetMaxFrameRate';
700
{$endc} {CALL_NOT_IN_CARBON}
703
* DSpContext_SetState()
706
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
707
* CarbonLib: not available
708
* Mac OS X: in version 10.0 and later
710
function DSpContext_SetState(inContext: DSpContextReference; inState: DSpContextState): OSStatus; external name '_DSpContext_SetState';
713
* DSpContext_GetState()
716
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
717
* CarbonLib: not available
718
* Mac OS X: in version 10.0 and later
720
function DSpContext_GetState(inContext: DSpContextReferenceConst; var outState: DSpContextState): OSStatus; external name '_DSpContext_GetState';
723
* DSpContext_IsBusy()
726
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
727
* CarbonLib: not available
728
* Mac OS X: in version 10.0 and later
730
function DSpContext_IsBusy(inContext: DSpContextReferenceConst; var outBusyFlag: boolean): OSStatus; external name '_DSpContext_IsBusy';
733
{$ifc CALL_NOT_IN_CARBON}
735
* DSpContext_SetDirtyRectGridSize()
738
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
739
* CarbonLib: not available
740
* Mac OS X: not available
742
function DSpContext_SetDirtyRectGridSize(inContext: DSpContextReference; inCellPixelWidth: UInt32; inCellPixelHeight: UInt32): OSStatus; external name '_DSpContext_SetDirtyRectGridSize';
745
* DSpContext_GetDirtyRectGridSize()
748
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
749
* CarbonLib: not available
750
* Mac OS X: not available
752
function DSpContext_GetDirtyRectGridSize(inContext: DSpContextReferenceConst; var outCellPixelWidth: UInt32; var outCellPixelHeight: UInt32): OSStatus; external name '_DSpContext_GetDirtyRectGridSize';
755
* DSpContext_GetDirtyRectGridUnits()
758
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
759
* CarbonLib: not available
760
* Mac OS X: not available
762
function DSpContext_GetDirtyRectGridUnits(inContext: DSpContextReferenceConst; var outCellPixelWidth: UInt32; var outCellPixelHeight: UInt32): OSStatus; external name '_DSpContext_GetDirtyRectGridUnits';
765
* DSpContext_InvalBackBufferRect()
768
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
769
* CarbonLib: not available
770
* Mac OS X: not available
772
function DSpContext_InvalBackBufferRect(inContext: DSpContextReference; const (*var*) inRect: Rect): OSStatus; external name '_DSpContext_InvalBackBufferRect';
776
* DSpContext_SetUnderlayAltBuffer()
779
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
780
* CarbonLib: not available
781
* Mac OS X: not available
783
function DSpContext_SetUnderlayAltBuffer(inContext: DSpContextReference; inNewUnderlay: DSpAltBufferReference): OSStatus; external name '_DSpContext_SetUnderlayAltBuffer';
786
* DSpContext_GetUnderlayAltBuffer()
789
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
790
* CarbonLib: not available
791
* Mac OS X: not available
793
function DSpContext_GetUnderlayAltBuffer(inContext: DSpContextReferenceConst; var outUnderlay: DSpAltBufferReference): OSStatus; external name '_DSpContext_GetUnderlayAltBuffer';
796
{$endc} {CALL_NOT_IN_CARBON}
799
* DSpContext_FadeGammaOut()
802
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
803
* CarbonLib: not available
804
* Mac OS X: in version 10.0 and later
806
function DSpContext_FadeGammaOut(inContext: DSpContextReference; var inZeroIntensityColor: RGBColor): OSStatus; external name '_DSpContext_FadeGammaOut';
809
* DSpContext_FadeGammaIn()
812
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
813
* CarbonLib: not available
814
* Mac OS X: in version 10.0 and later
816
function DSpContext_FadeGammaIn(inContext: DSpContextReference; var inZeroIntensityColor: RGBColor): OSStatus; external name '_DSpContext_FadeGammaIn';
819
* DSpContext_FadeGamma()
822
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
823
* CarbonLib: not available
824
* Mac OS X: in version 10.0 and later
826
function DSpContext_FadeGamma(inContext: DSpContextReference; inPercentOfOriginalIntensity: SInt32; var inZeroIntensityColor: RGBColor): OSStatus; external name '_DSpContext_FadeGamma';
830
* DSpContext_SwapBuffers()
833
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
834
* CarbonLib: not available
835
* Mac OS X: in version 10.0 and later
837
function DSpContext_SwapBuffers(inContext: DSpContextReference; inBusyProc: DSpCallbackUPP; inUserRefCon: UnivPtr): OSStatus; external name '_DSpContext_SwapBuffers';
840
* DSpContext_GetBackBuffer()
843
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
844
* CarbonLib: not available
845
* Mac OS X: in version 10.0 and later
847
function DSpContext_GetBackBuffer(inContext: DSpContextReference; inBufferKind: DSpBufferKind; var outBackBuffer: CGrafPtr): OSStatus; external name '_DSpContext_GetBackBuffer';
850
* DSpContext_GetFrontBuffer()
853
* Non-Carbon CFM: in DrawSprocketLib 1.1 and later
854
* CarbonLib: not available
855
* Mac OS X: in version 10.0 and later
857
function DSpContext_GetFrontBuffer(inContext: DSpContextReferenceConst; var outFrontBuffer: CGrafPtr): OSStatus; external name '_DSpContext_GetFrontBuffer';
861
* DSpContext_SetCLUTEntries()
864
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
865
* CarbonLib: not available
866
* Mac OS X: in version 10.0 and later
868
function DSpContext_SetCLUTEntries(inContext: DSpContextReference; const (*var*) inEntries: ColorSpec; inStartingEntry: UInt16; inLastEntry: UInt16): OSStatus; external name '_DSpContext_SetCLUTEntries';
871
* DSpContext_GetCLUTEntries()
874
* Non-Carbon CFM: in DrawSprocketLib 1.0 and later
875
* CarbonLib: not available
876
* Mac OS X: in version 10.0 and later
878
function DSpContext_GetCLUTEntries(inContext: DSpContextReferenceConst; var outEntries: ColorSpec; inStartingEntry: UInt16; inLastEntry: UInt16): OSStatus; external name '_DSpContext_GetCLUTEntries';
881
{$ifc CALL_NOT_IN_CARBON}
886
* Non-Carbon CFM: in DrawSprocketLib 1.1 and later
887
* CarbonLib: not available
888
* Mac OS X: not available
890
function DSpBlit_Faster(inBlitInfo: DSpBlitInfoPtr; inAsyncFlag: boolean): OSStatus; external name '_DSpBlit_Faster';
896
* Non-Carbon CFM: in DrawSprocketLib 1.1 and later
897
* CarbonLib: not available
898
* Mac OS X: not available
900
function DSpBlit_Fastest(inBlitInfo: DSpBlitInfoPtr; inAsyncFlag: boolean): OSStatus; external name '_DSpBlit_Fastest';
903
{$endc} {CALL_NOT_IN_CARBON}