~ubuntu-branches/ubuntu/feisty/fpc/feisty

« back to all changes in this revision

Viewing changes to packages/extra/univint/DrawSprocket.pas

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2007-01-27 20:08:50 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070127200850-9mrptaqqjsx9nwa7
Tags: 2.0.4-5
* Fixed Build-Depends.
* Add myself to Uploaders in debian/control.
* Make sure that the sources are really patched before building them.
* Build unit 'libc' on powerpc too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{
 
2
     File:       DrawSprocket.p
 
3
 
 
4
     Contains:   Games Sprockets: DrawSprocket interfaces
 
5
 
 
6
     Version:    Technology: Draw Sprocket 1.7
 
7
                 Release:    Universal Interfaces 3.4.2
 
8
 
 
9
     Copyright:  � 1996-2002 by Apple Computer, Inc., all rights reserved.
 
10
 
 
11
     Bugs?:      For bug reports, consult the following page on
 
12
                 the World Wide Web:
 
13
 
 
14
                     http://www.freepascal.org/bugs.html
 
15
 
 
16
}
 
17
 
 
18
 
 
19
{
 
20
    Modified for use with Free Pascal
 
21
    Version 200
 
22
    Please report any bugs to <gpc@microbizz.nl>
 
23
}
 
24
 
 
25
{$mode macpas}
 
26
{$packenum 1}
 
27
{$macro on}
 
28
{$inline on}
 
29
{$CALLING MWPASCAL}
 
30
 
 
31
unit DrawSprocket;
 
32
interface
 
33
{$setc UNIVERSAL_INTERFACES_VERSION := $0342}
 
34
{$setc GAP_INTERFACES_VERSION := $0200}
 
35
 
 
36
{$ifc not defined USE_CFSTR_CONSTANT_MACROS}
 
37
    {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
 
38
{$endc}
 
39
 
 
40
{$ifc defined CPUPOWERPC and defined CPUI386}
 
41
        {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
 
42
{$endc}
 
43
{$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
 
44
        {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
 
45
{$endc}
 
46
 
 
47
{$ifc not defined __ppc__ and defined CPUPOWERPC}
 
48
        {$setc __ppc__ := 1}
 
49
{$elsec}
 
50
        {$setc __ppc__ := 0}
 
51
{$endc}
 
52
{$ifc not defined __i386__ and defined CPUI386}
 
53
        {$setc __i386__ := 1}
 
54
{$elsec}
 
55
        {$setc __i386__ := 0}
 
56
{$endc}
 
57
 
 
58
{$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
 
59
        {$error Conflicting definitions for __ppc__ and __i386__}
 
60
{$endc}
 
61
 
 
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}
 
68
{$elsec}
 
69
        {$error Neither __ppc__ nor __i386__ is defined.}
 
70
{$endc}
 
71
{$setc TARGET_CPU_PPC_64 := FALSE}
 
72
 
 
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}
 
79
{$elsec}
 
80
        {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
 
81
{$endc}
 
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;
 
108
 
 
109
{$ALIGN POWER}
 
110
 
 
111
{
 
112
********************************************************************************
 
113
** constants
 
114
********************************************************************************
 
115
}
 
116
 
 
117
type
 
118
        DSpDepthMask                            = SInt32;
 
119
const
 
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;
 
127
 
 
128
 
 
129
type
 
130
        DSpColorNeeds                           = SInt32;
 
131
const
 
132
        kDSpColorNeeds_DontCare         = 0;
 
133
        kDSpColorNeeds_Request          = 1;
 
134
        kDSpColorNeeds_Require          = 2;
 
135
 
 
136
 
 
137
type
 
138
        DSpContextState                         = SInt32;
 
139
const
 
140
        kDSpContextState_Active         = 0;
 
141
        kDSpContextState_Paused         = 1;
 
142
        kDSpContextState_Inactive       = 2;
 
143
 
 
144
        {        kDSpContextOption_QD3DAccel not yet implemented        }
 
145
 
 
146
type
 
147
        DSpContextOption                        = SInt32;
 
148
const
 
149
                                                                                                                                {     kDSpContextOption_QD3DAccel       = 1<<0, }
 
150
        kDSpContextOption_PageFlip      = $02;
 
151
        kDSpContextOption_DontSyncVBL = $04;
 
152
        kDSpContextOption_Stereoscopic = $08;
 
153
 
 
154
 
 
155
type
 
156
        DSpAltBufferOption                      = SInt32;
 
157
const
 
158
        kDSpAltBufferOption_RowBytesEqualsWidth = $01;
 
159
 
 
160
 
 
161
type
 
162
        DSpBufferKind                           = SInt32;
 
163
const
 
164
        kDSpBufferKind_Normal           = 0;
 
165
 
 
166
 
 
167
type
 
168
        DSpBlitMode                             = SInt32;
 
169
const
 
170
        kDSpBlitMode_Plain                      = 0;
 
171
        kDSpBlitMode_SrcKey                     = $01;
 
172
        kDSpBlitMode_DstKey                     = $02;
 
173
        kDSpBlitMode_Interpolation      = $04;
 
174
 
 
175
        {       
 
176
        ********************************************************************************
 
177
        ** data types
 
178
        ********************************************************************************
 
179
                }
 
180
 
 
181
type
 
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;
 
190
{$elsec}
 
191
        DSpEventProcPtr = ProcPtr;
 
192
{$endc}
 
193
 
 
194
{$ifc TYPED_FUNCTION_POINTERS}
 
195
        DSpCallbackProcPtr = function(inContext: DSpContextReference; inRefCon: UnivPtr): boolean;
 
196
{$elsec}
 
197
        DSpCallbackProcPtr = ProcPtr;
 
198
{$endc}
 
199
 
 
200
{$ifc OPAQUE_UPP_TYPES}
 
201
        DSpEventUPP = ^SInt32; { an opaque UPP }
 
202
{$elsec}
 
203
        DSpEventUPP = DSpEventProcPtr;
 
204
{$endc} 
 
205
{$ifc OPAQUE_UPP_TYPES}
 
206
        DSpCallbackUPP = ^SInt32; { an opaque UPP }
 
207
{$elsec}
 
208
        DSpCallbackUPP = DSpCallbackProcPtr;
 
209
{$endc} 
 
210
 
 
211
const
 
212
        uppDSpEventProcInfo = $000000D1;
 
213
        uppDSpCallbackProcInfo = $000003D1;
 
214
{$ifc CALL_NOT_IN_CARBON}
 
215
        {
 
216
         *  NewDSpEventUPP()
 
217
         *  
 
218
         *  Availability:
 
219
         *    Non-Carbon CFM:   available as macro/inline
 
220
         *    CarbonLib:        not available
 
221
         *    Mac OS X:         not available
 
222
                }
 
223
function NewDSpEventUPP(userRoutine: DSpEventProcPtr): DSpEventUPP; external name '_NewDSpEventUPP';
 
224
{
 
225
 *  NewDSpCallbackUPP()
 
226
 *  
 
227
 *  Availability:
 
228
 *    Non-Carbon CFM:   available as macro/inline
 
229
 *    CarbonLib:        not available
 
230
 *    Mac OS X:         not available
 
231
 }
 
232
function NewDSpCallbackUPP(userRoutine: DSpCallbackProcPtr): DSpCallbackUPP; external name '_NewDSpCallbackUPP';
 
233
{
 
234
 *  DisposeDSpEventUPP()
 
235
 *  
 
236
 *  Availability:
 
237
 *    Non-Carbon CFM:   available as macro/inline
 
238
 *    CarbonLib:        not available
 
239
 *    Mac OS X:         not available
 
240
 }
 
241
procedure DisposeDSpEventUPP(userUPP: DSpEventUPP); external name '_DisposeDSpEventUPP';
 
242
{
 
243
 *  DisposeDSpCallbackUPP()
 
244
 *  
 
245
 *  Availability:
 
246
 *    Non-Carbon CFM:   available as macro/inline
 
247
 *    CarbonLib:        not available
 
248
 *    Mac OS X:         not available
 
249
 }
 
250
procedure DisposeDSpCallbackUPP(userUPP: DSpCallbackUPP); external name '_DisposeDSpCallbackUPP';
 
251
{
 
252
 *  InvokeDSpEventUPP()
 
253
 *  
 
254
 *  Availability:
 
255
 *    Non-Carbon CFM:   available as macro/inline
 
256
 *    CarbonLib:        not available
 
257
 *    Mac OS X:         not available
 
258
 }
 
259
function InvokeDSpEventUPP(var inEvent: EventRecord; userRoutine: DSpEventUPP): boolean; external name '_InvokeDSpEventUPP';
 
260
{
 
261
 *  InvokeDSpCallbackUPP()
 
262
 *  
 
263
 *  Availability:
 
264
 *    Non-Carbon CFM:   available as macro/inline
 
265
 *    CarbonLib:        not available
 
266
 *    Mac OS X:         not available
 
267
 }
 
268
function InvokeDSpCallbackUPP(inContext: DSpContextReference; inRefCon: UnivPtr; userRoutine: DSpCallbackUPP): boolean; external name '_InvokeDSpCallbackUPP';
 
269
{$endc}  {CALL_NOT_IN_CARBON}
 
270
 
 
271
 
 
272
type
 
273
        DSpContextAttributesPtr = ^DSpContextAttributes;
 
274
        DSpContextAttributes = record
 
275
                frequency:                              Fixed;
 
276
                displayWidth:                   UInt32;
 
277
                displayHeight:                  UInt32;
 
278
                reserved1:                              UInt32;
 
279
                reserved2:                              UInt32;
 
280
                colorNeeds:                             UInt32;
 
281
                colorTable:                             CTabHandle;
 
282
                contextOptions:                 OptionBits;
 
283
                backBufferDepthMask:    OptionBits;
 
284
                displayDepthMask:               OptionBits;
 
285
                backBufferBestDepth:    UInt32;
 
286
                displayBestDepth:               UInt32;
 
287
                pageCount:                              UInt32;
 
288
                filler1,filler2,filler3:                SInt8;
 
289
                gameMustConfirmSwitch:  boolean;
 
290
                reserved3:                              array [0..3] of UInt32;
 
291
        end;
 
292
 
 
293
        DSpAltBufferAttributesPtr = ^DSpAltBufferAttributes;
 
294
        DSpAltBufferAttributes = record
 
295
                width:                                  UInt32;
 
296
                height:                                 UInt32;
 
297
                options:                                DSpAltBufferOption;
 
298
                reserved:                               array [0..3] of UInt32;
 
299
        end;
 
300
 
 
301
        DSpBlitInfoPtr = ^DSpBlitInfo;
 
302
{$ifc TYPED_FUNCTION_POINTERS}
 
303
        DSpBlitDoneProc = procedure(info: DSpBlitInfoPtr);
 
304
{$elsec}
 
305
        DSpBlitDoneProc = ProcPtr;
 
306
{$endc}
 
307
 
 
308
        DSpBlitInfo = record
 
309
                completionFlag:                 boolean;
 
310
                filler1, filler2, filler3:      SInt8;
 
311
                completionProc:                 DSpBlitDoneProc;
 
312
                srcContext:                             DSpContextReference;
 
313
                srcBuffer:                              CGrafPtr;
 
314
                srcRect:                                Rect;
 
315
                srcKey:                                 UInt32;
 
316
                dstContext:                             DSpContextReference;
 
317
                dstBuffer:                              CGrafPtr;
 
318
                dstRect:                                Rect;
 
319
                dstKey:                                 UInt32;
 
320
                mode:                                   DSpBlitMode;
 
321
                reserved:                               array [0..3] of UInt32;
 
322
        end;
 
323
 
 
324
        {       
 
325
        ********************************************************************************
 
326
        ** function prototypes
 
327
        ********************************************************************************
 
328
                }
 
329
 
 
330
        {       
 
331
        ** global operations
 
332
                }
 
333
        {
 
334
         *  DSpStartup()
 
335
         *  
 
336
         *  Availability:
 
337
         *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
338
         *    CarbonLib:        not available
 
339
         *    Mac OS X:         in version 10.0 and later
 
340
                }
 
341
function DSpStartup: OSStatus; external name '_DSpStartup';
 
342
 
 
343
{
 
344
 *  DSpShutdown()
 
345
 *  
 
346
 *  Availability:
 
347
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
348
 *    CarbonLib:        not available
 
349
 *    Mac OS X:         in version 10.0 and later
 
350
 }
 
351
function DSpShutdown: OSStatus; external name '_DSpShutdown';
 
352
 
 
353
{
 
354
 *  DSpGetVersion()
 
355
 *  
 
356
 *  Availability:
 
357
 *    Non-Carbon CFM:   in DrawSprocketLib 1.7 and later
 
358
 *    CarbonLib:        not available
 
359
 *    Mac OS X:         in version 10.0 and later
 
360
 }
 
361
function DSpGetVersion: NumVersion; external name '_DSpGetVersion';
 
362
 
 
363
{
 
364
 *  DSpGetFirstContext()
 
365
 *  
 
366
 *  Availability:
 
367
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
368
 *    CarbonLib:        not available
 
369
 *    Mac OS X:         in version 10.0 and later
 
370
 }
 
371
function DSpGetFirstContext(inDisplayID: DisplayIDType; var outContext: DSpContextReference): OSStatus; external name '_DSpGetFirstContext';
 
372
 
 
373
{
 
374
 *  DSpGetNextContext()
 
375
 *  
 
376
 *  Availability:
 
377
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
378
 *    CarbonLib:        not available
 
379
 *    Mac OS X:         in version 10.0 and later
 
380
 }
 
381
function DSpGetNextContext(inCurrentContext: DSpContextReference; var outContext: DSpContextReference): OSStatus; external name '_DSpGetNextContext';
 
382
 
 
383
{
 
384
 *  DSpGetCurrentContext()
 
385
 *  
 
386
 *  Availability:
 
387
 *    Non-Carbon CFM:   in DrawSprocketLib 1.7 and later
 
388
 *    CarbonLib:        not available
 
389
 *    Mac OS X:         in version 10.0 and later
 
390
 }
 
391
function DSpGetCurrentContext(inDisplayID: DisplayIDType; var outContext: DSpContextReference): OSStatus; external name '_DSpGetCurrentContext';
 
392
 
 
393
{
 
394
 *  DSpFindBestContext()
 
395
 *  
 
396
 *  Availability:
 
397
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
398
 *    CarbonLib:        not available
 
399
 *    Mac OS X:         in version 10.0 and later
 
400
 }
 
401
function DSpFindBestContext(inDesiredAttributes: DSpContextAttributesPtr; var outContext: DSpContextReference): OSStatus; external name '_DSpFindBestContext';
 
402
 
 
403
{
 
404
 *  DSpFindBestContextOnDisplayID()
 
405
 *  
 
406
 *  Availability:
 
407
 *    Non-Carbon CFM:   in DrawSprocketLib 1.7 and later
 
408
 *    CarbonLib:        not available
 
409
 *    Mac OS X:         in version 10.0 and later
 
410
 }
 
411
function DSpFindBestContextOnDisplayID(inDesiredAttributes: DSpContextAttributesPtr; var outContext: DSpContextReference; inDisplayID: DisplayIDType): OSStatus; external name '_DSpFindBestContextOnDisplayID';
 
412
 
 
413
{$ifc CALL_NOT_IN_CARBON}
 
414
{
 
415
 *  DSpCanUserSelectContext()
 
416
 *  
 
417
 *  Availability:
 
418
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
419
 *    CarbonLib:        not available
 
420
 *    Mac OS X:         not available
 
421
 }
 
422
function DSpCanUserSelectContext(inDesiredAttributes: DSpContextAttributesPtr; var outUserCanSelectContext: boolean): OSStatus; external name '_DSpCanUserSelectContext';
 
423
 
 
424
{
 
425
 *  DSpUserSelectContext()
 
426
 *  
 
427
 *  Availability:
 
428
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
429
 *    CarbonLib:        not available
 
430
 *    Mac OS X:         not available
 
431
 }
 
432
function DSpUserSelectContext(inDesiredAttributes: DSpContextAttributesPtr; inDialogDisplayLocation: DisplayIDType; inEventProc: DSpEventUPP; var outContext: DSpContextReference): OSStatus; external name '_DSpUserSelectContext';
 
433
 
 
434
{$endc}  {CALL_NOT_IN_CARBON}
 
435
 
 
436
{
 
437
 *  DSpProcessEvent()
 
438
 *  
 
439
 *  Availability:
 
440
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
441
 *    CarbonLib:        not available
 
442
 *    Mac OS X:         in version 10.0 and later
 
443
 }
 
444
function DSpProcessEvent(var inEvent: EventRecord; var outEventWasProcessed: boolean): OSStatus; external name '_DSpProcessEvent';
 
445
 
 
446
{
 
447
 *  DSpSetBlankingColor()
 
448
 *  
 
449
 *  Availability:
 
450
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
451
 *    CarbonLib:        not available
 
452
 *    Mac OS X:         in version 10.0 and later
 
453
 }
 
454
function DSpSetBlankingColor(const (*var*) inRGBColor: RGBColor): OSStatus; external name '_DSpSetBlankingColor';
 
455
 
 
456
{
 
457
 *  DSpSetDebugMode()
 
458
 *  
 
459
 *  Availability:
 
460
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
461
 *    CarbonLib:        not available
 
462
 *    Mac OS X:         in version 10.0 and later
 
463
 }
 
464
function DSpSetDebugMode(inDebugMode: boolean): OSStatus; external name '_DSpSetDebugMode';
 
465
 
 
466
{
 
467
 *  DSpFindContextFromPoint()
 
468
 *  
 
469
 *  Availability:
 
470
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
471
 *    CarbonLib:        not available
 
472
 *    Mac OS X:         in version 10.0 and later
 
473
 }
 
474
function DSpFindContextFromPoint(inGlobalPoint: Point; var outContext: DSpContextReference): OSStatus; external name '_DSpFindContextFromPoint';
 
475
 
 
476
{
 
477
 *  DSpGetMouse()
 
478
 *  
 
479
 *  Availability:
 
480
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
481
 *    CarbonLib:        not available
 
482
 *    Mac OS X:         in version 10.0 and later
 
483
 }
 
484
function DSpGetMouse(var outGlobalPoint: Point): OSStatus; external name '_DSpGetMouse';
 
485
 
 
486
{
 
487
** alternate buffer operations
 
488
}
 
489
{$ifc CALL_NOT_IN_CARBON}
 
490
{
 
491
 *  DSpAltBuffer_New()
 
492
 *  
 
493
 *  Availability:
 
494
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
495
 *    CarbonLib:        not available
 
496
 *    Mac OS X:         not available
 
497
 }
 
498
function DSpAltBuffer_New(inContext: DSpContextReference; inVRAMBuffer: boolean; var inAttributes: DSpAltBufferAttributes; var outAltBuffer: DSpAltBufferReference): OSStatus; external name '_DSpAltBuffer_New';
 
499
 
 
500
{
 
501
 *  DSpAltBuffer_Dispose()
 
502
 *  
 
503
 *  Availability:
 
504
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
505
 *    CarbonLib:        not available
 
506
 *    Mac OS X:         not available
 
507
 }
 
508
function DSpAltBuffer_Dispose(inAltBuffer: DSpAltBufferReference): OSStatus; external name '_DSpAltBuffer_Dispose';
 
509
 
 
510
{
 
511
 *  DSpAltBuffer_InvalRect()
 
512
 *  
 
513
 *  Availability:
 
514
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
515
 *    CarbonLib:        not available
 
516
 *    Mac OS X:         not available
 
517
 }
 
518
function DSpAltBuffer_InvalRect(inAltBuffer: DSpAltBufferReference; const (*var*) inInvalidRect: Rect): OSStatus; external name '_DSpAltBuffer_InvalRect';
 
519
 
 
520
{
 
521
 *  DSpAltBuffer_GetCGrafPtr()
 
522
 *  
 
523
 *  Availability:
 
524
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
525
 *    CarbonLib:        not available
 
526
 *    Mac OS X:         not available
 
527
 }
 
528
function DSpAltBuffer_GetCGrafPtr(inAltBuffer: DSpAltBufferReference; inBufferKind: DSpBufferKind; var outCGrafPtr: CGrafPtr; var outGDevice: GDHandle): OSStatus; external name '_DSpAltBuffer_GetCGrafPtr';
 
529
 
 
530
{
 
531
** context operations
 
532
}
 
533
{ general }
 
534
{$endc}  {CALL_NOT_IN_CARBON}
 
535
 
 
536
{
 
537
 *  DSpContext_GetAttributes()
 
538
 *  
 
539
 *  Availability:
 
540
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
541
 *    CarbonLib:        not available
 
542
 *    Mac OS X:         in version 10.0 and later
 
543
 }
 
544
function DSpContext_GetAttributes(inContext: DSpContextReferenceConst; outAttributes: DSpContextAttributesPtr): OSStatus; external name '_DSpContext_GetAttributes';
 
545
 
 
546
{
 
547
 *  DSpContext_Reserve()
 
548
 *  
 
549
 *  Availability:
 
550
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
551
 *    CarbonLib:        not available
 
552
 *    Mac OS X:         in version 10.0 and later
 
553
 }
 
554
function DSpContext_Reserve(inContext: DSpContextReference; inDesiredAttributes: DSpContextAttributesPtr): OSStatus; external name '_DSpContext_Reserve';
 
555
 
 
556
{
 
557
 *  DSpContext_Queue()
 
558
 *  
 
559
 *  Availability:
 
560
 *    Non-Carbon CFM:   in DrawSprocketLib 1.7 and later
 
561
 *    CarbonLib:        not available
 
562
 *    Mac OS X:         in version 10.0 and later
 
563
 }
 
564
function DSpContext_Queue(inParentContext: DSpContextReference; inChildContext: DSpContextReference; inDesiredAttributes: DSpContextAttributesPtr): OSStatus; external name '_DSpContext_Queue';
 
565
 
 
566
{
 
567
 *  DSpContext_Switch()
 
568
 *  
 
569
 *  Availability:
 
570
 *    Non-Carbon CFM:   in DrawSprocketLib 1.7 and later
 
571
 *    CarbonLib:        not available
 
572
 *    Mac OS X:         in version 10.0 and later
 
573
 }
 
574
function DSpContext_Switch(inOldContext: DSpContextReference; inNewContext: DSpContextReference): OSStatus; external name '_DSpContext_Switch';
 
575
 
 
576
{
 
577
 *  DSpContext_Release()
 
578
 *  
 
579
 *  Availability:
 
580
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
581
 *    CarbonLib:        not available
 
582
 *    Mac OS X:         in version 10.0 and later
 
583
 }
 
584
function DSpContext_Release(inContext: DSpContextReference): OSStatus; external name '_DSpContext_Release';
 
585
 
 
586
{
 
587
 *  DSpContext_Dispose()
 
588
 *  
 
589
 *  Availability:
 
590
 *    Non-Carbon CFM:   not available
 
591
 *    CarbonLib:        not available
 
592
 *    Mac OS X:         in version 10.0 and later
 
593
 }
 
594
function DSpContext_Dispose(inContext: DSpContextReference): OSStatus; external name '_DSpContext_Dispose';
 
595
 
 
596
{
 
597
 *  DSpContext_GetDisplayID()
 
598
 *  
 
599
 *  Availability:
 
600
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
601
 *    CarbonLib:        not available
 
602
 *    Mac OS X:         in version 10.0 and later
 
603
 }
 
604
function DSpContext_GetDisplayID(inContext: DSpContextReferenceConst; var outDisplayID: DisplayIDType): OSStatus; external name '_DSpContext_GetDisplayID';
 
605
 
 
606
{
 
607
 *  DSpContext_GlobalToLocal()
 
608
 *  
 
609
 *  Availability:
 
610
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
611
 *    CarbonLib:        not available
 
612
 *    Mac OS X:         in version 10.0 and later
 
613
 }
 
614
function DSpContext_GlobalToLocal(inContext: DSpContextReferenceConst; var ioPoint: Point): OSStatus; external name '_DSpContext_GlobalToLocal';
 
615
 
 
616
{
 
617
 *  DSpContext_LocalToGlobal()
 
618
 *  
 
619
 *  Availability:
 
620
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
621
 *    CarbonLib:        not available
 
622
 *    Mac OS X:         in version 10.0 and later
 
623
 }
 
624
function DSpContext_LocalToGlobal(inContext: DSpContextReferenceConst; var ioPoint: Point): OSStatus; external name '_DSpContext_LocalToGlobal';
 
625
 
 
626
{$ifc CALL_NOT_IN_CARBON}
 
627
{
 
628
 *  DSpContext_SetVBLProc()
 
629
 *  
 
630
 *  Availability:
 
631
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
632
 *    CarbonLib:        not available
 
633
 *    Mac OS X:         not available
 
634
 }
 
635
function DSpContext_SetVBLProc(inContext: DSpContextReference; inProcPtr: DSpCallbackUPP; inRefCon: UnivPtr): OSStatus; external name '_DSpContext_SetVBLProc';
 
636
 
 
637
{
 
638
 *  DSpContext_GetFlattenedSize()
 
639
 *  
 
640
 *  Availability:
 
641
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
642
 *    CarbonLib:        not available
 
643
 *    Mac OS X:         not available
 
644
 }
 
645
function DSpContext_GetFlattenedSize(inContext: DSpContextReference; var outFlatContextSize: UInt32): OSStatus; external name '_DSpContext_GetFlattenedSize';
 
646
 
 
647
{
 
648
 *  DSpContext_Flatten()
 
649
 *  
 
650
 *  Availability:
 
651
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
652
 *    CarbonLib:        not available
 
653
 *    Mac OS X:         not available
 
654
 }
 
655
function DSpContext_Flatten(inContext: DSpContextReference; outFlatContext: UnivPtr): OSStatus; external name '_DSpContext_Flatten';
 
656
 
 
657
{
 
658
 *  DSpContext_Restore()
 
659
 *  
 
660
 *  Availability:
 
661
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
662
 *    CarbonLib:        not available
 
663
 *    Mac OS X:         not available
 
664
 }
 
665
function DSpContext_Restore(inFlatContext: UnivPtr; var outRestoredContext: DSpContextReference): OSStatus; external name '_DSpContext_Restore';
 
666
 
 
667
{$endc}  {CALL_NOT_IN_CARBON}
 
668
 
 
669
{
 
670
 *  DSpContext_GetMonitorFrequency()
 
671
 *  
 
672
 *  Availability:
 
673
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
674
 *    CarbonLib:        not available
 
675
 *    Mac OS X:         in version 10.0 and later
 
676
 }
 
677
function DSpContext_GetMonitorFrequency(inContext: DSpContextReferenceConst; var outFrequency: Fixed): OSStatus; external name '_DSpContext_GetMonitorFrequency';
 
678
 
 
679
{$ifc CALL_NOT_IN_CARBON}
 
680
{
 
681
 *  DSpContext_SetMaxFrameRate()
 
682
 *  
 
683
 *  Availability:
 
684
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
685
 *    CarbonLib:        not available
 
686
 *    Mac OS X:         not available
 
687
 }
 
688
function DSpContext_SetMaxFrameRate(inContext: DSpContextReference; inMaxFPS: UInt32): OSStatus; external name '_DSpContext_SetMaxFrameRate';
 
689
 
 
690
{
 
691
 *  DSpContext_GetMaxFrameRate()
 
692
 *  
 
693
 *  Availability:
 
694
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
695
 *    CarbonLib:        not available
 
696
 *    Mac OS X:         not available
 
697
 }
 
698
function DSpContext_GetMaxFrameRate(inContext: DSpContextReferenceConst; var outMaxFPS: UInt32): OSStatus; external name '_DSpContext_GetMaxFrameRate';
 
699
 
 
700
{$endc}  {CALL_NOT_IN_CARBON}
 
701
 
 
702
{
 
703
 *  DSpContext_SetState()
 
704
 *  
 
705
 *  Availability:
 
706
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
707
 *    CarbonLib:        not available
 
708
 *    Mac OS X:         in version 10.0 and later
 
709
 }
 
710
function DSpContext_SetState(inContext: DSpContextReference; inState: DSpContextState): OSStatus; external name '_DSpContext_SetState';
 
711
 
 
712
{
 
713
 *  DSpContext_GetState()
 
714
 *  
 
715
 *  Availability:
 
716
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
717
 *    CarbonLib:        not available
 
718
 *    Mac OS X:         in version 10.0 and later
 
719
 }
 
720
function DSpContext_GetState(inContext: DSpContextReferenceConst; var outState: DSpContextState): OSStatus; external name '_DSpContext_GetState';
 
721
 
 
722
{
 
723
 *  DSpContext_IsBusy()
 
724
 *  
 
725
 *  Availability:
 
726
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
727
 *    CarbonLib:        not available
 
728
 *    Mac OS X:         in version 10.0 and later
 
729
 }
 
730
function DSpContext_IsBusy(inContext: DSpContextReferenceConst; var outBusyFlag: boolean): OSStatus; external name '_DSpContext_IsBusy';
 
731
 
 
732
{ dirty rectangles }
 
733
{$ifc CALL_NOT_IN_CARBON}
 
734
{
 
735
 *  DSpContext_SetDirtyRectGridSize()
 
736
 *  
 
737
 *  Availability:
 
738
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
739
 *    CarbonLib:        not available
 
740
 *    Mac OS X:         not available
 
741
 }
 
742
function DSpContext_SetDirtyRectGridSize(inContext: DSpContextReference; inCellPixelWidth: UInt32; inCellPixelHeight: UInt32): OSStatus; external name '_DSpContext_SetDirtyRectGridSize';
 
743
 
 
744
{
 
745
 *  DSpContext_GetDirtyRectGridSize()
 
746
 *  
 
747
 *  Availability:
 
748
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
749
 *    CarbonLib:        not available
 
750
 *    Mac OS X:         not available
 
751
 }
 
752
function DSpContext_GetDirtyRectGridSize(inContext: DSpContextReferenceConst; var outCellPixelWidth: UInt32; var outCellPixelHeight: UInt32): OSStatus; external name '_DSpContext_GetDirtyRectGridSize';
 
753
 
 
754
{
 
755
 *  DSpContext_GetDirtyRectGridUnits()
 
756
 *  
 
757
 *  Availability:
 
758
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
759
 *    CarbonLib:        not available
 
760
 *    Mac OS X:         not available
 
761
 }
 
762
function DSpContext_GetDirtyRectGridUnits(inContext: DSpContextReferenceConst; var outCellPixelWidth: UInt32; var outCellPixelHeight: UInt32): OSStatus; external name '_DSpContext_GetDirtyRectGridUnits';
 
763
 
 
764
{
 
765
 *  DSpContext_InvalBackBufferRect()
 
766
 *  
 
767
 *  Availability:
 
768
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
769
 *    CarbonLib:        not available
 
770
 *    Mac OS X:         not available
 
771
 }
 
772
function DSpContext_InvalBackBufferRect(inContext: DSpContextReference; const (*var*) inRect: Rect): OSStatus; external name '_DSpContext_InvalBackBufferRect';
 
773
 
 
774
{ underlays }
 
775
{
 
776
 *  DSpContext_SetUnderlayAltBuffer()
 
777
 *  
 
778
 *  Availability:
 
779
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
780
 *    CarbonLib:        not available
 
781
 *    Mac OS X:         not available
 
782
 }
 
783
function DSpContext_SetUnderlayAltBuffer(inContext: DSpContextReference; inNewUnderlay: DSpAltBufferReference): OSStatus; external name '_DSpContext_SetUnderlayAltBuffer';
 
784
 
 
785
{
 
786
 *  DSpContext_GetUnderlayAltBuffer()
 
787
 *  
 
788
 *  Availability:
 
789
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
790
 *    CarbonLib:        not available
 
791
 *    Mac OS X:         not available
 
792
 }
 
793
function DSpContext_GetUnderlayAltBuffer(inContext: DSpContextReferenceConst; var outUnderlay: DSpAltBufferReference): OSStatus; external name '_DSpContext_GetUnderlayAltBuffer';
 
794
 
 
795
{ gamma }
 
796
{$endc}  {CALL_NOT_IN_CARBON}
 
797
 
 
798
{
 
799
 *  DSpContext_FadeGammaOut()
 
800
 *  
 
801
 *  Availability:
 
802
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
803
 *    CarbonLib:        not available
 
804
 *    Mac OS X:         in version 10.0 and later
 
805
 }
 
806
function DSpContext_FadeGammaOut(inContext: DSpContextReference; var inZeroIntensityColor: RGBColor): OSStatus; external name '_DSpContext_FadeGammaOut';
 
807
 
 
808
{
 
809
 *  DSpContext_FadeGammaIn()
 
810
 *  
 
811
 *  Availability:
 
812
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
813
 *    CarbonLib:        not available
 
814
 *    Mac OS X:         in version 10.0 and later
 
815
 }
 
816
function DSpContext_FadeGammaIn(inContext: DSpContextReference; var inZeroIntensityColor: RGBColor): OSStatus; external name '_DSpContext_FadeGammaIn';
 
817
 
 
818
{
 
819
 *  DSpContext_FadeGamma()
 
820
 *  
 
821
 *  Availability:
 
822
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
823
 *    CarbonLib:        not available
 
824
 *    Mac OS X:         in version 10.0 and later
 
825
 }
 
826
function DSpContext_FadeGamma(inContext: DSpContextReference; inPercentOfOriginalIntensity: SInt32; var inZeroIntensityColor: RGBColor): OSStatus; external name '_DSpContext_FadeGamma';
 
827
 
 
828
{ buffering }
 
829
{
 
830
 *  DSpContext_SwapBuffers()
 
831
 *  
 
832
 *  Availability:
 
833
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
834
 *    CarbonLib:        not available
 
835
 *    Mac OS X:         in version 10.0 and later
 
836
 }
 
837
function DSpContext_SwapBuffers(inContext: DSpContextReference; inBusyProc: DSpCallbackUPP; inUserRefCon: UnivPtr): OSStatus; external name '_DSpContext_SwapBuffers';
 
838
 
 
839
{
 
840
 *  DSpContext_GetBackBuffer()
 
841
 *  
 
842
 *  Availability:
 
843
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
844
 *    CarbonLib:        not available
 
845
 *    Mac OS X:         in version 10.0 and later
 
846
 }
 
847
function DSpContext_GetBackBuffer(inContext: DSpContextReference; inBufferKind: DSpBufferKind; var outBackBuffer: CGrafPtr): OSStatus; external name '_DSpContext_GetBackBuffer';
 
848
 
 
849
{
 
850
 *  DSpContext_GetFrontBuffer()
 
851
 *  
 
852
 *  Availability:
 
853
 *    Non-Carbon CFM:   in DrawSprocketLib 1.1 and later
 
854
 *    CarbonLib:        not available
 
855
 *    Mac OS X:         in version 10.0 and later
 
856
 }
 
857
function DSpContext_GetFrontBuffer(inContext: DSpContextReferenceConst; var outFrontBuffer: CGrafPtr): OSStatus; external name '_DSpContext_GetFrontBuffer';
 
858
 
 
859
{ clut operations }
 
860
{
 
861
 *  DSpContext_SetCLUTEntries()
 
862
 *  
 
863
 *  Availability:
 
864
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
865
 *    CarbonLib:        not available
 
866
 *    Mac OS X:         in version 10.0 and later
 
867
 }
 
868
function DSpContext_SetCLUTEntries(inContext: DSpContextReference; const (*var*) inEntries: ColorSpec; inStartingEntry: UInt16; inLastEntry: UInt16): OSStatus; external name '_DSpContext_SetCLUTEntries';
 
869
 
 
870
{
 
871
 *  DSpContext_GetCLUTEntries()
 
872
 *  
 
873
 *  Availability:
 
874
 *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
 
875
 *    CarbonLib:        not available
 
876
 *    Mac OS X:         in version 10.0 and later
 
877
 }
 
878
function DSpContext_GetCLUTEntries(inContext: DSpContextReferenceConst; var outEntries: ColorSpec; inStartingEntry: UInt16; inLastEntry: UInt16): OSStatus; external name '_DSpContext_GetCLUTEntries';
 
879
 
 
880
{ blit operations }
 
881
{$ifc CALL_NOT_IN_CARBON}
 
882
{
 
883
 *  DSpBlit_Faster()
 
884
 *  
 
885
 *  Availability:
 
886
 *    Non-Carbon CFM:   in DrawSprocketLib 1.1 and later
 
887
 *    CarbonLib:        not available
 
888
 *    Mac OS X:         not available
 
889
 }
 
890
function DSpBlit_Faster(inBlitInfo: DSpBlitInfoPtr; inAsyncFlag: boolean): OSStatus; external name '_DSpBlit_Faster';
 
891
 
 
892
{
 
893
 *  DSpBlit_Fastest()
 
894
 *  
 
895
 *  Availability:
 
896
 *    Non-Carbon CFM:   in DrawSprocketLib 1.1 and later
 
897
 *    CarbonLib:        not available
 
898
 *    Mac OS X:         not available
 
899
 }
 
900
function DSpBlit_Fastest(inBlitInfo: DSpBlitInfoPtr; inAsyncFlag: boolean): OSStatus; external name '_DSpBlit_Fastest';
 
901
 
 
902
 
 
903
{$endc}  {CALL_NOT_IN_CARBON}
 
904
 
 
905
{$ALIGN MAC68K}
 
906
 
 
907
 
 
908
end.