1 /* NAME:
2 QD3DStyle.c
3
4 DESCRIPTION:
5 Entry point for Quesa API calls. Performs parameter checking and
6 then forwards each API call to the equivalent E3xxxxx routine.
7
8 COPYRIGHT:
9 Copyright (c) 1999-2005, Quesa Developers. All rights reserved.
10
11 For the current release of Quesa, please see:
12
13 <http://www.quesa.org/>
14
15 Redistribution and use in source and binary forms, with or without
16 modification, are permitted provided that the following conditions
17 are met:
18
19 o Redistributions of source code must retain the above copyright
20 notice, this list of conditions and the following disclaimer.
21
22 o Redistributions in binary form must reproduce the above
23 copyright notice, this list of conditions and the following
24 disclaimer in the documentation and/or other materials provided
25 with the distribution.
26
27 o Neither the name of Quesa nor the names of its contributors
28 may be used to endorse or promote products derived from this
29 software without specific prior written permission.
30
31 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
34 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
36 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
37 TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
38 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
39 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
40 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
41 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
42 ___________________________________________________________________________
43 */
44 //=============================================================================
45 // Include files
46 //-----------------------------------------------------------------------------
47 #include "E3Prefix.h"
48 #include "E3Style.h"
49 #include "E3View.h"
50
51
52
53
54
55 //=============================================================================
56 // Internal constants
57 //-----------------------------------------------------------------------------
58 // Internal constants go here
59
60
61
62
63
64 //=============================================================================
65 // Internal types
66 //-----------------------------------------------------------------------------
67 // Internal types go here
68
69
70
71
72
73 //=============================================================================
74 // Internal macros
75 //-----------------------------------------------------------------------------
76 // Internal macros go here
77
78
79
80
81
82 //=============================================================================
83 // Public functions
84 //-----------------------------------------------------------------------------
85 // Q3Style_GetType : Quesa API entry point.
86 //-----------------------------------------------------------------------------
87 TQ3ObjectType
Q3Style_GetType(TQ3StyleObject style)88 Q3Style_GetType(TQ3StyleObject style)
89 {
90
91
92 // Release build checks
93 Q3_REQUIRE_OR_RESULT( E3Style_IsOfMyClass ( style ), kQ3ObjectTypeInvalid);
94
95
96
97 // Debug build checks
98 #if Q3_DEBUG
99 if (0) // Further checks on style
100 return(kQ3ObjectTypeInvalid);
101 #endif
102
103
104
105 // Call the bottleneck
106 E3System_Bottleneck();
107
108
109
110 // Call our implementation
111 return(E3Style_GetType(style));
112 }
113
114
115
116
117
118 //=============================================================================
119 // Q3Style_Submit : Quesa API entry point.
120 //-----------------------------------------------------------------------------
121 TQ3Status
Q3Style_Submit(TQ3StyleObject style,TQ3ViewObject view)122 Q3Style_Submit(TQ3StyleObject style, TQ3ViewObject view)
123 {
124
125
126 // Release build checks
127 Q3_REQUIRE_OR_RESULT( E3Style_IsOfMyClass ( style ), kQ3Failure);
128 Q3_REQUIRE_OR_RESULT( E3View_IsOfMyClass ( view ), kQ3Failure);
129
130
131
132 // Debug build checks
133 #if Q3_DEBUG
134 if (0) // Further checks on style
135 return(kQ3Failure);
136
137 if (0) // Further checks on view
138 return(kQ3Failure);
139 #endif
140
141
142
143 // Call the bottleneck
144 E3System_Bottleneck();
145
146
147
148 // Call our implementation
149 return(E3Style_Submit(style, view));
150 }
151
152
153
154
155
156 //=============================================================================
157 // Q3SubdivisionStyle_New : Quesa API entry point.
158 //-----------------------------------------------------------------------------
159 TQ3StyleObject
Q3SubdivisionStyle_New(const TQ3SubdivisionStyleData * data)160 Q3SubdivisionStyle_New(const TQ3SubdivisionStyleData *data)
161 {
162
163
164 // Release build checks
165 Q3_REQUIRE_OR_RESULT(Q3_VALID_PTR(data), NULL);
166
167
168
169 // Debug build checks
170 #if Q3_DEBUG
171 if (0) // Further checks on data
172 return(NULL);
173 #endif
174
175
176
177 // Call the bottleneck
178 E3System_Bottleneck();
179
180
181
182 // Call our implementation
183 return(E3SubdivisionStyle_New(data));
184 }
185
186
187
188
189
190 //=============================================================================
191 // Q3SubdivisionStyle_Submit : Quesa API entry point.
192 //-----------------------------------------------------------------------------
193 TQ3Status
Q3SubdivisionStyle_Submit(const TQ3SubdivisionStyleData * data,TQ3ViewObject view)194 Q3SubdivisionStyle_Submit(const TQ3SubdivisionStyleData *data, TQ3ViewObject view)
195 {
196
197
198 // Release build checks
199 Q3_REQUIRE_OR_RESULT(Q3_VALID_PTR(data), kQ3Failure);
200 Q3_REQUIRE_OR_RESULT( E3View_IsOfMyClass ( view ), kQ3Failure);
201
202
203
204 // Debug build checks
205 #if Q3_DEBUG
206 if (0) // Further checks on data
207 return(kQ3Failure);
208
209 if (0) // Further checks on view
210 return(kQ3Failure);
211 #endif
212
213
214
215 // Call the bottleneck
216 E3System_Bottleneck();
217
218
219
220 // Call our implementation
221 return(E3SubdivisionStyle_Submit(data, view));
222 }
223
224
225
226
227
228 //=============================================================================
229 // Q3SubdivisionStyle_SetData : Quesa API entry point.
230 //-----------------------------------------------------------------------------
231 TQ3Status
Q3SubdivisionStyle_SetData(TQ3StyleObject subdiv,const TQ3SubdivisionStyleData * data)232 Q3SubdivisionStyle_SetData(TQ3StyleObject subdiv, const TQ3SubdivisionStyleData *data)
233 {
234
235
236 // Release build checks
237 Q3_REQUIRE_OR_RESULT( E3Style_IsOfMyClass ( subdiv ), kQ3Failure);
238 Q3_REQUIRE_OR_RESULT(Q3_VALID_PTR(data), kQ3Failure);
239
240
241
242 // Debug build checks
243 #if Q3_DEBUG
244 if (0) // Further checks on subdiv
245 return(kQ3Failure);
246
247 if (0) // Further checks on data
248 return(kQ3Failure);
249 #endif
250
251
252
253 // Call the bottleneck
254 E3System_Bottleneck();
255
256
257
258 // Call our implementation
259 return(E3SubdivisionStyle_SetData(subdiv, data));
260 }
261
262
263
264
265
266 //=============================================================================
267 // Q3SubdivisionStyle_GetData : Quesa API entry point.
268 //-----------------------------------------------------------------------------
269 TQ3Status
Q3SubdivisionStyle_GetData(TQ3StyleObject subdiv,TQ3SubdivisionStyleData * data)270 Q3SubdivisionStyle_GetData(TQ3StyleObject subdiv, TQ3SubdivisionStyleData *data)
271 {
272
273
274 // Release build checks
275 Q3_REQUIRE_OR_RESULT( E3Style_IsOfMyClass ( subdiv ), kQ3Failure);
276 Q3_REQUIRE_OR_RESULT(Q3_VALID_PTR(data), kQ3Failure);
277
278
279
280 // Debug build checks
281 #if Q3_DEBUG
282 if (0) // Further checks on subdiv
283 return(kQ3Failure);
284
285 if (0) // Further checks on data
286 return(kQ3Failure);
287 #endif
288
289
290
291 // Call the bottleneck
292 E3System_Bottleneck();
293
294
295
296 // Call our implementation
297 return(E3SubdivisionStyle_GetData(subdiv, data));
298 }
299
300
301
302
303
304 //=============================================================================
305 // Q3PickIDStyle_New : Quesa API entry point.
306 //-----------------------------------------------------------------------------
307 TQ3StyleObject
Q3PickIDStyle_New(TQ3Uns32 id)308 Q3PickIDStyle_New(TQ3Uns32 id)
309 {
310
311
312 // Release build checks
313
314
315
316 // Debug build checks
317 #if Q3_DEBUG
318 if (0) // Further checks on id
319 return(NULL);
320 #endif
321
322
323
324 // Call the bottleneck
325 E3System_Bottleneck();
326
327
328
329 // Call our implementation
330 return(E3PickIDStyle_New(id));
331 }
332
333
334
335
336
337 //=============================================================================
338 // Q3PickIDStyle_Submit : Quesa API entry point.
339 //-----------------------------------------------------------------------------
340 TQ3Status
Q3PickIDStyle_Submit(TQ3Uns32 id,TQ3ViewObject view)341 Q3PickIDStyle_Submit(TQ3Uns32 id, TQ3ViewObject view)
342 {
343
344
345 // Release build checks
346 Q3_REQUIRE_OR_RESULT( E3View_IsOfMyClass ( view ), kQ3Failure);
347
348
349
350 // Debug build checks
351 #if Q3_DEBUG
352 if (0) // Further checks on id
353 return(kQ3Failure);
354
355 if (0) // Further checks on view
356 return(kQ3Failure);
357 #endif
358
359
360
361 // Call the bottleneck
362 E3System_Bottleneck();
363
364
365
366 // Call our implementation
367 return(E3PickIDStyle_Submit(id, view));
368 }
369
370
371
372
373
374 //=============================================================================
375 // Q3PickIDStyle_Get : Quesa API entry point.
376 //-----------------------------------------------------------------------------
377 TQ3Status
Q3PickIDStyle_Get(TQ3StyleObject pickIDObject,TQ3Uns32 * id)378 Q3PickIDStyle_Get(TQ3StyleObject pickIDObject, TQ3Uns32 *id)
379 {
380
381
382 // Release build checks
383 Q3_REQUIRE_OR_RESULT( E3Style_IsOfMyClass ( pickIDObject ), kQ3Failure);
384 Q3_REQUIRE_OR_RESULT(Q3_VALID_PTR(id), kQ3Failure);
385
386
387
388 // Debug build checks
389 #if Q3_DEBUG
390 if (0) // Further checks on pickIDObject
391 return(kQ3Failure);
392
393 if (0) // Further checks on id
394 return(kQ3Failure);
395 #endif
396
397
398
399 // Call the bottleneck
400 E3System_Bottleneck();
401
402
403
404 // Call our implementation
405 return(E3PickIDStyle_Get(pickIDObject, id));
406 }
407
408
409
410
411
412 //=============================================================================
413 // Q3PickIDStyle_Set : Quesa API entry point.
414 //-----------------------------------------------------------------------------
415 TQ3Status
Q3PickIDStyle_Set(TQ3StyleObject pickIDObject,TQ3Uns32 id)416 Q3PickIDStyle_Set(TQ3StyleObject pickIDObject, TQ3Uns32 id)
417 {
418
419
420 // Release build checks
421 Q3_REQUIRE_OR_RESULT( E3Style_IsOfMyClass ( pickIDObject ), kQ3Failure);
422
423
424
425 // Debug build checks
426 #if Q3_DEBUG
427 if (0) // Further checks on pickIDObject
428 return(kQ3Failure);
429
430 if (0) // Further checks on id
431 return(kQ3Failure);
432 #endif
433
434
435
436 // Call the bottleneck
437 E3System_Bottleneck();
438
439
440
441 // Call our implementation
442 return(E3PickIDStyle_Set(pickIDObject, id));
443 }
444
445
446
447
448
449 //=============================================================================
450 // Q3PickPartsStyle_New : Quesa API entry point.
451 //-----------------------------------------------------------------------------
452 TQ3StyleObject
Q3PickPartsStyle_New(TQ3PickParts parts)453 Q3PickPartsStyle_New(TQ3PickParts parts)
454 {
455
456
457 // Release build checks
458
459
460
461 // Debug build checks
462 #if Q3_DEBUG
463 if (0) // Further checks on parts
464 return(NULL);
465 #endif
466
467
468
469 // Call the bottleneck
470 E3System_Bottleneck();
471
472
473
474 // Call our implementation
475 return(E3PickPartsStyle_New(parts));
476 }
477
478
479
480
481
482 //=============================================================================
483 // Q3PickPartsStyle_Submit : Quesa API entry point.
484 //-----------------------------------------------------------------------------
485 TQ3Status
Q3PickPartsStyle_Submit(TQ3PickParts parts,TQ3ViewObject view)486 Q3PickPartsStyle_Submit(TQ3PickParts parts, TQ3ViewObject view)
487 {
488
489
490 // Release build checks
491 Q3_REQUIRE_OR_RESULT( E3View_IsOfMyClass ( view ), kQ3Failure);
492
493
494
495 // Debug build checks
496 #if Q3_DEBUG
497 if (0) // Further checks on parts
498 return(kQ3Failure);
499
500 if (0) // Further checks on view
501 return(kQ3Failure);
502 #endif
503
504
505
506 // Call the bottleneck
507 E3System_Bottleneck();
508
509
510
511 // Call our implementation
512 return(E3PickPartsStyle_Submit(parts, view));
513 }
514
515
516
517
518
519 //=============================================================================
520 // Q3PickPartsStyle_Get : Quesa API entry point.
521 //-----------------------------------------------------------------------------
522 TQ3Status
Q3PickPartsStyle_Get(TQ3StyleObject pickPartsObject,TQ3PickParts * parts)523 Q3PickPartsStyle_Get(TQ3StyleObject pickPartsObject, TQ3PickParts *parts)
524 {
525
526
527 // Release build checks
528 Q3_REQUIRE_OR_RESULT( E3Style_IsOfMyClass ( pickPartsObject ), kQ3Failure);
529 Q3_REQUIRE_OR_RESULT(Q3_VALID_PTR(parts), kQ3Failure);
530
531
532
533 // Debug build checks
534 #if Q3_DEBUG
535 if (0) // Further checks on pickPartsObject
536 return(kQ3Failure);
537
538 if (0) // Further checks on parts
539 return(kQ3Failure);
540 #endif
541
542
543
544 // Call the bottleneck
545 E3System_Bottleneck();
546
547
548
549 // Call our implementation
550 return(E3PickPartsStyle_Get(pickPartsObject, parts));
551 }
552
553
554
555
556
557 //=============================================================================
558 // Q3PickPartsStyle_Set : Quesa API entry point.
559 //-----------------------------------------------------------------------------
560 TQ3Status
Q3PickPartsStyle_Set(TQ3StyleObject pickPartsObject,TQ3PickParts parts)561 Q3PickPartsStyle_Set(TQ3StyleObject pickPartsObject, TQ3PickParts parts)
562 {
563
564
565 // Release build checks
566 Q3_REQUIRE_OR_RESULT( E3Style_IsOfMyClass ( pickPartsObject ), kQ3Failure);
567
568
569
570 // Debug build checks
571 #if Q3_DEBUG
572 if (0) // Further checks on pickPartsObject
573 return(kQ3Failure);
574
575 if (0) // Further checks on parts
576 return(kQ3Failure);
577 #endif
578
579
580
581 // Call the bottleneck
582 E3System_Bottleneck();
583
584
585
586 // Call our implementation
587 return(E3PickPartsStyle_Set(pickPartsObject, parts));
588 }
589
590
591
592
593
594 //=============================================================================
595 // Q3CastShadowsStyle_New : Quesa API entry point.
596 //-----------------------------------------------------------------------------
597 TQ3StyleObject
Q3CastShadowsStyle_New(TQ3Boolean castShadows)598 Q3CastShadowsStyle_New(TQ3Boolean castShadows)
599 {
600
601
602 // Release build checks
603
604
605
606 // Debug build checks
607 #if Q3_DEBUG
608 if (0) // Further checks on castShadows
609 return(NULL);
610 #endif
611
612
613
614 // Call the bottleneck
615 E3System_Bottleneck();
616
617
618
619 // Call our implementation
620 return(E3CastShadowsStyle_New(castShadows));
621 }
622
623
624
625
626
627 //=============================================================================
628 // Q3CastShadowsStyle_Submit : Quesa API entry point.
629 //-----------------------------------------------------------------------------
630 TQ3Status
Q3CastShadowsStyle_Submit(TQ3Boolean castShadows,TQ3ViewObject view)631 Q3CastShadowsStyle_Submit(TQ3Boolean castShadows, TQ3ViewObject view)
632 {
633
634
635 // Release build checks
636 Q3_REQUIRE_OR_RESULT( E3View_IsOfMyClass ( view ), kQ3Failure);
637
638
639
640 // Debug build checks
641 #if Q3_DEBUG
642 if (0) // Further checks on castShadows
643 return(kQ3Failure);
644
645 if (0) // Further checks on view
646 return(kQ3Failure);
647 #endif
648
649
650
651 // Call the bottleneck
652 E3System_Bottleneck();
653
654
655
656 // Call our implementation
657 return(E3CastShadowsStyle_Submit(castShadows, view));
658 }
659
660
661
662
663
664 //=============================================================================
665 // Q3CastShadowsStyle_Get : Quesa API entry point.
666 //-----------------------------------------------------------------------------
667 TQ3Status
Q3CastShadowsStyle_Get(TQ3StyleObject styleObject,TQ3Boolean * castShadows)668 Q3CastShadowsStyle_Get(TQ3StyleObject styleObject, TQ3Boolean *castShadows)
669 {
670
671
672 // Release build checks
673 Q3_REQUIRE_OR_RESULT( E3Style_IsOfMyClass ( styleObject ), kQ3Failure);
674 Q3_REQUIRE_OR_RESULT(Q3_VALID_PTR(castShadows), kQ3Failure);
675
676
677
678 // Debug build checks
679 #if Q3_DEBUG
680 if (0) // Further checks on styleObject
681 return(kQ3Failure);
682
683 if (0) // Further checks on castShadows
684 return(kQ3Failure);
685 #endif
686
687
688
689 // Call the bottleneck
690 E3System_Bottleneck();
691
692
693
694 // Call our implementation
695 return(E3CastShadowsStyle_Get(styleObject, castShadows));
696 }
697
698
699
700
701
702 //=============================================================================
703 // Q3CastShadowsStyle_Set : Quesa API entry point.
704 //-----------------------------------------------------------------------------
705 TQ3Status
Q3CastShadowsStyle_Set(TQ3StyleObject styleObject,TQ3Boolean castShadows)706 Q3CastShadowsStyle_Set(TQ3StyleObject styleObject, TQ3Boolean castShadows)
707 {
708
709
710 // Release build checks
711 Q3_REQUIRE_OR_RESULT( E3Style_IsOfMyClass ( styleObject ), kQ3Failure);
712
713
714
715 // Debug build checks
716 #if Q3_DEBUG
717 if (0) // Further checks on styleObject
718 return(kQ3Failure);
719
720 if (0) // Further checks on castShadows
721 return(kQ3Failure);
722 #endif
723
724
725
726 // Call the bottleneck
727 E3System_Bottleneck();
728
729
730
731 // Call our implementation
732 return(E3CastShadowsStyle_Set(styleObject, castShadows));
733 }
734
735
736
737
738
739 //=============================================================================
740 // Q3ReceiveShadowsStyle_New : Quesa API entry point.
741 //-----------------------------------------------------------------------------
742 TQ3StyleObject
Q3ReceiveShadowsStyle_New(TQ3Boolean receiveShadows)743 Q3ReceiveShadowsStyle_New(TQ3Boolean receiveShadows)
744 {
745
746
747 // Release build checks
748
749
750
751 // Debug build checks
752 #if Q3_DEBUG
753 if (0) // Further checks on receiveShadows
754 return(NULL);
755 #endif
756
757
758
759 // Call the bottleneck
760 E3System_Bottleneck();
761
762
763
764 // Call our implementation
765 return(E3ReceiveShadowsStyle_New(receiveShadows));
766 }
767
768
769
770
771
772 //=============================================================================
773 // Q3ReceiveShadowsStyle_Submit : Quesa API entry point.
774 //-----------------------------------------------------------------------------
775 TQ3Status
Q3ReceiveShadowsStyle_Submit(TQ3Boolean receiveShadows,TQ3ViewObject view)776 Q3ReceiveShadowsStyle_Submit(TQ3Boolean receiveShadows, TQ3ViewObject view)
777 {
778
779
780 // Release build checks
781 Q3_REQUIRE_OR_RESULT( E3View_IsOfMyClass ( view ), kQ3Failure);
782
783
784
785 // Debug build checks
786 #if Q3_DEBUG
787 if (0) // Further checks on receiveShadows
788 return(kQ3Failure);
789
790 if (0) // Further checks on view
791 return(kQ3Failure);
792 #endif
793
794
795
796 // Call the bottleneck
797 E3System_Bottleneck();
798
799
800
801 // Call our implementation
802 return(E3ReceiveShadowsStyle_Submit(receiveShadows, view));
803 }
804
805
806
807
808
809 //=============================================================================
810 // Q3ReceiveShadowsStyle_Get : Quesa API entry point.
811 //-----------------------------------------------------------------------------
812 TQ3Status
Q3ReceiveShadowsStyle_Get(TQ3StyleObject styleObject,TQ3Boolean * receiveShadows)813 Q3ReceiveShadowsStyle_Get(TQ3StyleObject styleObject, TQ3Boolean *receiveShadows)
814 {
815
816
817 // Release build checks
818 Q3_REQUIRE_OR_RESULT( E3Style_IsOfMyClass ( styleObject ), kQ3Failure);
819 Q3_REQUIRE_OR_RESULT(Q3_VALID_PTR(receiveShadows), kQ3Failure);
820
821
822
823 // Debug build checks
824 #if Q3_DEBUG
825 if (0) // Further checks on styleObject
826 return(kQ3Failure);
827
828 if (0) // Further checks on receiveShadows
829 return(kQ3Failure);
830 #endif
831
832
833
834 // Call the bottleneck
835 E3System_Bottleneck();
836
837
838
839 // Call our implementation
840 return(E3ReceiveShadowsStyle_Get(styleObject, receiveShadows));
841 }
842
843
844
845
846
847 //=============================================================================
848 // Q3ReceiveShadowsStyle_Set : Quesa API entry point.
849 //-----------------------------------------------------------------------------
850 TQ3Status
Q3ReceiveShadowsStyle_Set(TQ3StyleObject styleObject,TQ3Boolean receiveShadows)851 Q3ReceiveShadowsStyle_Set(TQ3StyleObject styleObject, TQ3Boolean receiveShadows)
852 {
853
854
855 // Release build checks
856 Q3_REQUIRE_OR_RESULT( E3Style_IsOfMyClass ( styleObject ), kQ3Failure);
857
858
859
860 // Debug build checks
861 #if Q3_DEBUG
862 if (0) // Further checks on styleObject
863 return(kQ3Failure);
864
865 if (0) // Further checks on receiveShadows
866 return(kQ3Failure);
867 #endif
868
869
870
871 // Call the bottleneck
872 E3System_Bottleneck();
873
874
875
876 // Call our implementation
877 return(E3ReceiveShadowsStyle_Set(styleObject, receiveShadows));
878 }
879
880
881
882
883
884 //=============================================================================
885 // Q3FillStyle_New : Quesa API entry point.
886 //-----------------------------------------------------------------------------
887 TQ3StyleObject
Q3FillStyle_New(TQ3FillStyle fillStyle)888 Q3FillStyle_New(TQ3FillStyle fillStyle)
889 {
890
891
892 // Release build checks
893
894
895
896 // Debug build checks
897 #if Q3_DEBUG
898 if (0) // Further checks on fillStyle
899 return(NULL);
900 #endif
901
902
903
904 // Call the bottleneck
905 E3System_Bottleneck();
906
907
908
909 // Call our implementation
910 return(E3FillStyle_New(fillStyle));
911 }
912
913
914
915
916
917 //=============================================================================
918 // Q3FillStyle_Submit : Quesa API entry point.
919 //-----------------------------------------------------------------------------
920 TQ3Status
Q3FillStyle_Submit(TQ3FillStyle fillStyle,TQ3ViewObject view)921 Q3FillStyle_Submit(TQ3FillStyle fillStyle, TQ3ViewObject view)
922 {
923
924
925 // Release build checks
926 Q3_REQUIRE_OR_RESULT( E3View_IsOfMyClass ( view ), kQ3Failure);
927
928
929
930 // Debug build checks
931 #if Q3_DEBUG
932 if (0) // Further checks on fillStyle
933 return(kQ3Failure);
934
935 if (0) // Further checks on view
936 return(kQ3Failure);
937 #endif
938
939
940
941 // Call the bottleneck
942 E3System_Bottleneck();
943
944
945
946 // Call our implementation
947 return(E3FillStyle_Submit(fillStyle, view));
948 }
949
950
951
952
953
954 //=============================================================================
955 // Q3FillStyle_Get : Quesa API entry point.
956 //-----------------------------------------------------------------------------
957 TQ3Status
Q3FillStyle_Get(TQ3StyleObject styleObject,TQ3FillStyle * fillStyle)958 Q3FillStyle_Get(TQ3StyleObject styleObject, TQ3FillStyle *fillStyle)
959 {
960
961
962 // Release build checks
963 Q3_REQUIRE_OR_RESULT( E3Style_IsOfMyClass ( styleObject ), kQ3Failure);
964 Q3_REQUIRE_OR_RESULT(Q3_VALID_PTR(fillStyle), kQ3Failure);
965
966
967
968 // Debug build checks
969 #if Q3_DEBUG
970 if (0) // Further checks on styleObject
971 return(kQ3Failure);
972
973 if (0) // Further checks on fillStyle
974 return(kQ3Failure);
975 #endif
976
977
978
979 // Call the bottleneck
980 E3System_Bottleneck();
981
982
983
984 // Call our implementation
985 return(E3FillStyle_Get(styleObject, fillStyle));
986 }
987
988
989
990
991
992 //=============================================================================
993 // Q3FillStyle_Set : Quesa API entry point.
994 //-----------------------------------------------------------------------------
995 TQ3Status
Q3FillStyle_Set(TQ3StyleObject styleObject,TQ3FillStyle fillStyle)996 Q3FillStyle_Set(TQ3StyleObject styleObject, TQ3FillStyle fillStyle)
997 {
998
999
1000 // Release build checks
1001 Q3_REQUIRE_OR_RESULT( E3Style_IsOfMyClass (styleObject ), kQ3Failure);
1002
1003
1004
1005 // Debug build checks
1006 #if Q3_DEBUG
1007 if (0) // Further checks on styleObject
1008 return(kQ3Failure);
1009
1010 if (0) // Further checks on fillStyle
1011 return(kQ3Failure);
1012 #endif
1013
1014
1015
1016 // Call the bottleneck
1017 E3System_Bottleneck();
1018
1019
1020
1021 // Call our implementation
1022 return(E3FillStyle_Set(styleObject, fillStyle));
1023 }
1024
1025
1026
1027
1028
1029 //=============================================================================
1030 // Q3BackfacingStyle_New : Quesa API entry point.
1031 //-----------------------------------------------------------------------------
1032 TQ3StyleObject
Q3BackfacingStyle_New(TQ3BackfacingStyle backfacingStyle)1033 Q3BackfacingStyle_New(TQ3BackfacingStyle backfacingStyle)
1034 {
1035
1036
1037 // Release build checks
1038
1039
1040
1041 // Debug build checks
1042 #if Q3_DEBUG
1043 if (0) // Further checks on backfacingStyle
1044 return(NULL);
1045 #endif
1046
1047
1048
1049 // Call the bottleneck
1050 E3System_Bottleneck();
1051
1052
1053
1054 // Call our implementation
1055 return(E3BackfacingStyle_New(backfacingStyle));
1056 }
1057
1058
1059
1060
1061
1062 //=============================================================================
1063 // Q3BackfacingStyle_Submit : Quesa API entry point.
1064 //-----------------------------------------------------------------------------
1065 TQ3Status
Q3BackfacingStyle_Submit(TQ3BackfacingStyle backfacingStyle,TQ3ViewObject view)1066 Q3BackfacingStyle_Submit(TQ3BackfacingStyle backfacingStyle, TQ3ViewObject view)
1067 {
1068
1069
1070 // Release build checks
1071 Q3_REQUIRE_OR_RESULT( E3View_IsOfMyClass ( view ), kQ3Failure);
1072
1073
1074
1075 // Debug build checks
1076 #if Q3_DEBUG
1077 if (0) // Further checks on backfacingStyle
1078 return(kQ3Failure);
1079
1080 if (0) // Further checks on view
1081 return(kQ3Failure);
1082 #endif
1083
1084
1085
1086 // Call the bottleneck
1087 E3System_Bottleneck();
1088
1089
1090
1091 // Call our implementation
1092 return(E3BackfacingStyle_Submit(backfacingStyle, view));
1093 }
1094
1095
1096
1097
1098
1099 //=============================================================================
1100 // Q3BackfacingStyle_Get : Quesa API entry point.
1101 //-----------------------------------------------------------------------------
1102 TQ3Status
Q3BackfacingStyle_Get(TQ3StyleObject backfacingObject,TQ3BackfacingStyle * backfacingStyle)1103 Q3BackfacingStyle_Get(TQ3StyleObject backfacingObject, TQ3BackfacingStyle *backfacingStyle)
1104 {
1105
1106
1107 // Release build checks
1108 Q3_REQUIRE_OR_RESULT( E3Style_IsOfMyClass (backfacingObject ), kQ3Failure);
1109 Q3_REQUIRE_OR_RESULT(Q3_VALID_PTR(backfacingStyle), kQ3Failure);
1110
1111
1112
1113 // Debug build checks
1114 #if Q3_DEBUG
1115 if (0) // Further checks on backfacingObject
1116 return(kQ3Failure);
1117
1118 if (0) // Further checks on backfacingStyle
1119 return(kQ3Failure);
1120 #endif
1121
1122
1123
1124 // Call the bottleneck
1125 E3System_Bottleneck();
1126
1127
1128
1129 // Call our implementation
1130 return(E3BackfacingStyle_Get(backfacingObject, backfacingStyle));
1131 }
1132
1133
1134
1135
1136
1137 //=============================================================================
1138 // Q3BackfacingStyle_Set : Quesa API entry point.
1139 //-----------------------------------------------------------------------------
1140 TQ3Status
Q3BackfacingStyle_Set(TQ3StyleObject backfacingObject,TQ3BackfacingStyle backfacingStyle)1141 Q3BackfacingStyle_Set(TQ3StyleObject backfacingObject, TQ3BackfacingStyle backfacingStyle)
1142 {
1143
1144
1145 // Release build checks
1146 Q3_REQUIRE_OR_RESULT( E3Style_IsOfMyClass (backfacingObject ), kQ3Failure);
1147
1148
1149
1150 // Debug build checks
1151 #if Q3_DEBUG
1152 if (0) // Further checks on backfacingObject
1153 return(kQ3Failure);
1154
1155 if (0) // Further checks on backfacingStyle
1156 return(kQ3Failure);
1157 #endif
1158
1159
1160
1161 // Call the bottleneck
1162 E3System_Bottleneck();
1163
1164
1165
1166 // Call our implementation
1167 return(E3BackfacingStyle_Set(backfacingObject, backfacingStyle));
1168 }
1169
1170
1171
1172
1173
1174 //=============================================================================
1175 // Q3InterpolationStyle_New : Quesa API entry point.
1176 //-----------------------------------------------------------------------------
1177 TQ3StyleObject
Q3InterpolationStyle_New(TQ3InterpolationStyle interpolationStyle)1178 Q3InterpolationStyle_New(TQ3InterpolationStyle interpolationStyle)
1179 {
1180
1181
1182 // Release build checks
1183
1184
1185
1186 // Debug build checks
1187 #if Q3_DEBUG
1188 if (0) // Further checks on interpolationStyle
1189 return(NULL);
1190 #endif
1191
1192
1193
1194 // Call the bottleneck
1195 E3System_Bottleneck();
1196
1197
1198
1199 // Call our implementation
1200 return(E3InterpolationStyle_New(interpolationStyle));
1201 }
1202
1203
1204
1205
1206
1207 //=============================================================================
1208 // Q3InterpolationStyle_Submit : Quesa API entry point.
1209 //-----------------------------------------------------------------------------
1210 TQ3Status
Q3InterpolationStyle_Submit(TQ3InterpolationStyle interpolationStyle,TQ3ViewObject view)1211 Q3InterpolationStyle_Submit(TQ3InterpolationStyle interpolationStyle, TQ3ViewObject view)
1212 {
1213
1214
1215 // Release build checks
1216 Q3_REQUIRE_OR_RESULT( E3View_IsOfMyClass ( view ), kQ3Failure);
1217
1218
1219
1220 // Debug build checks
1221 #if Q3_DEBUG
1222 if (0) // Further checks on interpolationStyle
1223 return(kQ3Failure);
1224
1225 if (0) // Further checks on view
1226 return(kQ3Failure);
1227 #endif
1228
1229
1230
1231 // Call the bottleneck
1232 E3System_Bottleneck();
1233
1234
1235
1236 // Call our implementation
1237 return(E3InterpolationStyle_Submit(interpolationStyle, view));
1238 }
1239
1240
1241
1242
1243
1244 //=============================================================================
1245 // Q3InterpolationStyle_Get : Quesa API entry point.
1246 //-----------------------------------------------------------------------------
1247 TQ3Status
Q3InterpolationStyle_Get(TQ3StyleObject interpolationObject,TQ3InterpolationStyle * interpolationStyle)1248 Q3InterpolationStyle_Get(TQ3StyleObject interpolationObject, TQ3InterpolationStyle *interpolationStyle)
1249 {
1250
1251
1252 // Release build checks
1253 Q3_REQUIRE_OR_RESULT( E3Style_IsOfMyClass ( interpolationObject ), kQ3Failure);
1254 Q3_REQUIRE_OR_RESULT(Q3_VALID_PTR(interpolationStyle), kQ3Failure);
1255
1256
1257
1258 // Debug build checks
1259 #if Q3_DEBUG
1260 if (0) // Further checks on interpolationObject
1261 return(kQ3Failure);
1262
1263 if (0) // Further checks on interpolationStyle
1264 return(kQ3Failure);
1265 #endif
1266
1267
1268
1269 // Call the bottleneck
1270 E3System_Bottleneck();
1271
1272
1273
1274 // Call our implementation
1275 return(E3InterpolationStyle_Get(interpolationObject, interpolationStyle));
1276 }
1277
1278
1279
1280
1281
1282 //=============================================================================
1283 // Q3InterpolationStyle_Set : Quesa API entry point.
1284 //-----------------------------------------------------------------------------
1285 TQ3Status
Q3InterpolationStyle_Set(TQ3StyleObject interpolationObject,TQ3InterpolationStyle interpolationStyle)1286 Q3InterpolationStyle_Set(TQ3StyleObject interpolationObject, TQ3InterpolationStyle interpolationStyle)
1287 {
1288
1289
1290 // Release build checks
1291 Q3_REQUIRE_OR_RESULT( E3Style_IsOfMyClass ( interpolationObject ), kQ3Failure);
1292
1293
1294
1295 // Debug build checks
1296 #if Q3_DEBUG
1297 if (0) // Further checks on interpolationObject
1298 return(kQ3Failure);
1299
1300 if (0) // Further checks on interpolationStyle
1301 return(kQ3Failure);
1302 #endif
1303
1304
1305
1306 // Call the bottleneck
1307 E3System_Bottleneck();
1308
1309
1310
1311 // Call our implementation
1312 return(E3InterpolationStyle_Set(interpolationObject, interpolationStyle));
1313 }
1314
1315
1316
1317
1318
1319 //=============================================================================
1320 // Q3HighlightStyle_New : Quesa API entry point.
1321 //-----------------------------------------------------------------------------
1322 TQ3StyleObject
Q3HighlightStyle_New(TQ3AttributeSet highlightAttribute)1323 Q3HighlightStyle_New(TQ3AttributeSet highlightAttribute)
1324 {
1325
1326
1327 // Release build checks
1328
1329
1330
1331 // Debug build checks
1332 #if Q3_DEBUG
1333 if (0) // Further checks on highlightAttribute
1334 return(NULL);
1335 #endif
1336
1337
1338
1339 // Call the bottleneck
1340 E3System_Bottleneck();
1341
1342
1343
1344 // Call our implementation
1345 return(E3HighlightStyle_New(highlightAttribute));
1346 }
1347
1348
1349
1350
1351
1352 //=============================================================================
1353 // Q3HighlightStyle_Submit : Quesa API entry point.
1354 //-----------------------------------------------------------------------------
1355 TQ3Status
Q3HighlightStyle_Submit(TQ3AttributeSet highlightAttribute,TQ3ViewObject view)1356 Q3HighlightStyle_Submit(TQ3AttributeSet highlightAttribute, TQ3ViewObject view)
1357 {
1358
1359
1360 // Release build checks
1361 Q3_REQUIRE_OR_RESULT( E3View_IsOfMyClass ( view ), kQ3Failure);
1362
1363
1364
1365 // Debug build checks
1366 #if Q3_DEBUG
1367 if (0) // Further checks on highlightAttribute
1368 return(kQ3Failure);
1369
1370 if (0) // Further checks on view
1371 return(kQ3Failure);
1372 #endif
1373
1374
1375
1376 // Call the bottleneck
1377 E3System_Bottleneck();
1378
1379
1380
1381 // Call our implementation
1382 return(E3HighlightStyle_Submit(highlightAttribute, view));
1383 }
1384
1385
1386
1387
1388
1389 //=============================================================================
1390 // Q3HighlightStyle_Get : Quesa API entry point.
1391 //-----------------------------------------------------------------------------
1392 TQ3Status
Q3HighlightStyle_Get(TQ3StyleObject highlight,TQ3AttributeSet * highlightAttribute)1393 Q3HighlightStyle_Get(TQ3StyleObject highlight, TQ3AttributeSet *highlightAttribute)
1394 {
1395
1396
1397 // Release build checks
1398 Q3_REQUIRE_OR_RESULT( E3Style_IsOfMyClass ( highlight ), kQ3Failure);
1399 Q3_REQUIRE_OR_RESULT(Q3_VALID_PTR(highlightAttribute), kQ3Failure);
1400
1401
1402
1403 // Debug build checks
1404 #if Q3_DEBUG
1405 if (0) // Further checks on highlight
1406 return(kQ3Failure);
1407
1408 if (0) // Further checks on highlightAttribute
1409 return(kQ3Failure);
1410 #endif
1411
1412
1413
1414 // Call the bottleneck
1415 E3System_Bottleneck();
1416
1417
1418
1419 // Call our implementation
1420 return(E3HighlightStyle_Get(highlight, highlightAttribute));
1421 }
1422
1423
1424
1425
1426
1427 //=============================================================================
1428 // Q3HighlightStyle_Set : Quesa API entry point.
1429 //-----------------------------------------------------------------------------
1430 TQ3Status
Q3HighlightStyle_Set(TQ3StyleObject highlight,TQ3AttributeSet highlightAttribute)1431 Q3HighlightStyle_Set(TQ3StyleObject highlight, TQ3AttributeSet highlightAttribute)
1432 {
1433
1434
1435 // Release build checks
1436 Q3_REQUIRE_OR_RESULT( E3Style_IsOfMyClass ( highlight ), kQ3Failure);
1437
1438
1439
1440 // Debug build checks
1441 #if Q3_DEBUG
1442 if (0) // Further checks on highlight
1443 return(kQ3Failure);
1444
1445 if (0) // Further checks on highlightAttribute
1446 return(kQ3Failure);
1447 #endif
1448
1449
1450
1451 // Call the bottleneck
1452 E3System_Bottleneck();
1453
1454
1455
1456 // Call our implementation
1457 return(E3HighlightStyle_Set(highlight, highlightAttribute));
1458 }
1459
1460
1461
1462
1463
1464 //=============================================================================
1465 // Q3OrientationStyle_New : Quesa API entry point.
1466 //-----------------------------------------------------------------------------
1467 TQ3StyleObject
Q3OrientationStyle_New(TQ3OrientationStyle frontFacingDirection)1468 Q3OrientationStyle_New(TQ3OrientationStyle frontFacingDirection)
1469 {
1470
1471
1472 // Release build checks
1473
1474
1475
1476 // Debug build checks
1477 #if Q3_DEBUG
1478 if (0) // Further checks on frontFacingDirection
1479 return(NULL);
1480 #endif
1481
1482
1483
1484 // Call the bottleneck
1485 E3System_Bottleneck();
1486
1487
1488
1489 // Call our implementation
1490 return(E3OrientationStyle_New(frontFacingDirection));
1491 }
1492
1493
1494
1495
1496
1497 //=============================================================================
1498 // Q3OrientationStyle_Submit : Quesa API entry point.
1499 //-----------------------------------------------------------------------------
1500 TQ3Status
Q3OrientationStyle_Submit(TQ3OrientationStyle frontFacingDirection,TQ3ViewObject view)1501 Q3OrientationStyle_Submit(TQ3OrientationStyle frontFacingDirection, TQ3ViewObject view)
1502 {
1503
1504
1505 // Release build checks
1506 Q3_REQUIRE_OR_RESULT( E3View_IsOfMyClass ( view ), kQ3Failure);
1507
1508
1509
1510 // Debug build checks
1511 #if Q3_DEBUG
1512 if (0) // Further checks on frontFacingDirection
1513 return(kQ3Failure);
1514
1515 if (0) // Further checks on view
1516 return(kQ3Failure);
1517 #endif
1518
1519
1520
1521 // Call the bottleneck
1522 E3System_Bottleneck();
1523
1524
1525
1526 // Call our implementation
1527 return(E3OrientationStyle_Submit(frontFacingDirection, view));
1528 }
1529
1530
1531
1532
1533
1534 //=============================================================================
1535 // Q3OrientationStyle_Get : Quesa API entry point.
1536 //-----------------------------------------------------------------------------
1537 TQ3Status
Q3OrientationStyle_Get(TQ3StyleObject frontFacingDirectionObject,TQ3OrientationStyle * frontFacingDirection)1538 Q3OrientationStyle_Get(TQ3StyleObject frontFacingDirectionObject, TQ3OrientationStyle *frontFacingDirection)
1539 {
1540
1541
1542 // Release build checks
1543 Q3_REQUIRE_OR_RESULT( E3Style_IsOfMyClass ( frontFacingDirectionObject ), kQ3Failure);
1544 Q3_REQUIRE_OR_RESULT(Q3_VALID_PTR(frontFacingDirection), kQ3Failure);
1545
1546
1547
1548 // Debug build checks
1549 #if Q3_DEBUG
1550 if (0) // Further checks on frontFacingDirectionObject
1551 return(kQ3Failure);
1552
1553 if (0) // Further checks on frontFacingDirection
1554 return(kQ3Failure);
1555 #endif
1556
1557
1558
1559 // Call the bottleneck
1560 E3System_Bottleneck();
1561
1562
1563
1564 // Call our implementation
1565 return(E3OrientationStyle_Get(frontFacingDirectionObject, frontFacingDirection));
1566 }
1567
1568
1569
1570
1571
1572 //=============================================================================
1573 // Q3OrientationStyle_Set : Quesa API entry point.
1574 //-----------------------------------------------------------------------------
1575 TQ3Status
Q3OrientationStyle_Set(TQ3StyleObject frontFacingDirectionObject,TQ3OrientationStyle frontFacingDirection)1576 Q3OrientationStyle_Set(TQ3StyleObject frontFacingDirectionObject, TQ3OrientationStyle frontFacingDirection)
1577 {
1578
1579
1580 // Release build checks
1581 Q3_REQUIRE_OR_RESULT( E3Style_IsOfMyClass ( frontFacingDirectionObject ), kQ3Failure);
1582
1583
1584
1585 // Debug build checks
1586 #if Q3_DEBUG
1587 if (0) // Further checks on frontFacingDirectionObject
1588 return(kQ3Failure);
1589
1590 if (0) // Further checks on frontFacingDirection
1591 return(kQ3Failure);
1592 #endif
1593
1594
1595
1596 // Call the bottleneck
1597 E3System_Bottleneck();
1598
1599
1600
1601 // Call our implementation
1602 return(E3OrientationStyle_Set(frontFacingDirectionObject, frontFacingDirection));
1603 }
1604
1605
1606
1607
1608
1609 //=============================================================================
1610 // Q3AntiAliasStyle_New : Quesa API entry point.
1611 //-----------------------------------------------------------------------------
1612 TQ3StyleObject
Q3AntiAliasStyle_New(const TQ3AntiAliasStyleData * data)1613 Q3AntiAliasStyle_New(const TQ3AntiAliasStyleData *data)
1614 {
1615
1616
1617 // Release build checks
1618 Q3_REQUIRE_OR_RESULT(Q3_VALID_PTR(data), NULL);
1619
1620
1621
1622 // Debug build checks
1623 #if Q3_DEBUG
1624 if (0) // Further checks on data
1625 return(NULL);
1626 #endif
1627
1628
1629
1630 // Call the bottleneck
1631 E3System_Bottleneck();
1632
1633
1634
1635 // Call our implementation
1636 return(E3AntiAliasStyle_New(data));
1637 }
1638
1639
1640
1641
1642
1643 //=============================================================================
1644 // Q3AntiAliasStyle_Submit : Quesa API entry point.
1645 //-----------------------------------------------------------------------------
1646 TQ3Status
Q3AntiAliasStyle_Submit(const TQ3AntiAliasStyleData * data,TQ3ViewObject view)1647 Q3AntiAliasStyle_Submit(const TQ3AntiAliasStyleData *data, TQ3ViewObject view)
1648 {
1649
1650
1651 // Release build checks
1652 Q3_REQUIRE_OR_RESULT(Q3_VALID_PTR(data), kQ3Failure);
1653 Q3_REQUIRE_OR_RESULT( E3View_IsOfMyClass ( view ), kQ3Failure);
1654
1655
1656
1657 // Debug build checks
1658 #if Q3_DEBUG
1659 if (0) // Further checks on data
1660 return(kQ3Failure);
1661
1662 if (0) // Further checks on view
1663 return(kQ3Failure);
1664 #endif
1665
1666
1667
1668 // Call the bottleneck
1669 E3System_Bottleneck();
1670
1671
1672
1673 // Call our implementation
1674 return(E3AntiAliasStyle_Submit(data, view));
1675 }
1676
1677
1678
1679
1680
1681 //=============================================================================
1682 // Q3AntiAliasStyle_GetData : Quesa API entry point.
1683 //-----------------------------------------------------------------------------
1684 TQ3Status
Q3AntiAliasStyle_GetData(TQ3StyleObject styleObject,TQ3AntiAliasStyleData * data)1685 Q3AntiAliasStyle_GetData(TQ3StyleObject styleObject, TQ3AntiAliasStyleData *data)
1686 {
1687
1688
1689 // Release build checks
1690 Q3_REQUIRE_OR_RESULT( E3Style_IsOfMyClass ( styleObject ), kQ3Failure);
1691 Q3_REQUIRE_OR_RESULT(Q3_VALID_PTR(data), kQ3Failure);
1692
1693
1694
1695 // Debug build checks
1696 #if Q3_DEBUG
1697 if (0) // Further checks on styleObject
1698 return(kQ3Failure);
1699
1700 if (0) // Further checks on data
1701 return(kQ3Failure);
1702 #endif
1703
1704
1705
1706 // Call the bottleneck
1707 E3System_Bottleneck();
1708
1709
1710
1711 // Call our implementation
1712 return(E3AntiAliasStyle_GetData(styleObject, data));
1713 }
1714
1715
1716
1717
1718
1719 //=============================================================================
1720 // Q3AntiAliasStyle_SetData : Quesa API entry point.
1721 //-----------------------------------------------------------------------------
1722 TQ3Status
Q3AntiAliasStyle_SetData(TQ3StyleObject styleObject,const TQ3AntiAliasStyleData * data)1723 Q3AntiAliasStyle_SetData(TQ3StyleObject styleObject, const TQ3AntiAliasStyleData *data)
1724 {
1725
1726
1727 // Release build checks
1728 Q3_REQUIRE_OR_RESULT( E3Style_IsOfMyClass ( styleObject ), kQ3Failure);
1729 Q3_REQUIRE_OR_RESULT(Q3_VALID_PTR(data), kQ3Failure);
1730
1731
1732
1733 // Debug build checks
1734 #if Q3_DEBUG
1735 if (0) // Further checks on styleObject
1736 return(kQ3Failure);
1737
1738 if (0) // Further checks on data
1739 return(kQ3Failure);
1740 #endif
1741
1742
1743
1744 // Call the bottleneck
1745 E3System_Bottleneck();
1746
1747
1748
1749 // Call our implementation
1750 return(E3AntiAliasStyle_SetData(styleObject, data));
1751 }
1752
1753
1754
1755
1756
1757 //=============================================================================
1758 // Q3FogStyle_New : Quesa API entry point.
1759 //-----------------------------------------------------------------------------
1760 TQ3StyleObject
Q3FogStyle_New(const TQ3FogStyleData * data)1761 Q3FogStyle_New(const TQ3FogStyleData *data)
1762 {
1763
1764
1765 // Release build checks
1766 Q3_REQUIRE_OR_RESULT(Q3_VALID_PTR(data), NULL);
1767
1768
1769
1770 // Debug build checks
1771 #if Q3_DEBUG
1772 if (0) // Further checks on data
1773 return(NULL);
1774 #endif
1775
1776
1777
1778 // Call the bottleneck
1779 E3System_Bottleneck();
1780
1781
1782
1783 // Call our implementation
1784 return(E3FogStyle_New(data));
1785 }
1786
1787
1788
1789
1790
1791 //=============================================================================
1792 // Q3FogStyle_Submit : Quesa API entry point.
1793 //-----------------------------------------------------------------------------
1794 TQ3Status
Q3FogStyle_Submit(const TQ3FogStyleData * data,TQ3ViewObject view)1795 Q3FogStyle_Submit(const TQ3FogStyleData *data, TQ3ViewObject view)
1796 {
1797
1798
1799 // Release build checks
1800 Q3_REQUIRE_OR_RESULT(Q3_VALID_PTR(data), kQ3Failure);
1801 Q3_REQUIRE_OR_RESULT( E3View_IsOfMyClass ( view ), kQ3Failure);
1802
1803
1804
1805 // Debug build checks
1806 #if Q3_DEBUG
1807 if (0) // Further checks on data
1808 return(kQ3Failure);
1809
1810 if (0) // Further checks on view
1811 return(kQ3Failure);
1812 #endif
1813
1814
1815
1816 // Call the bottleneck
1817 E3System_Bottleneck();
1818
1819
1820
1821 // Call our implementation
1822 return(E3FogStyle_Submit(data, view));
1823 }
1824
1825
1826
1827
1828
1829 //=============================================================================
1830 // Q3FogStyle_GetData : Quesa API entry point.
1831 //-----------------------------------------------------------------------------
1832 TQ3Status
Q3FogStyle_GetData(TQ3StyleObject styleObject,TQ3FogStyleData * data)1833 Q3FogStyle_GetData(TQ3StyleObject styleObject, TQ3FogStyleData *data)
1834 {
1835
1836
1837 // Release build checks
1838 Q3_REQUIRE_OR_RESULT( E3Style_IsOfMyClass ( styleObject ), kQ3Failure);
1839 Q3_REQUIRE_OR_RESULT(Q3_VALID_PTR(data), kQ3Failure);
1840
1841
1842
1843 // Debug build checks
1844 #if Q3_DEBUG
1845 if (0) // Further checks on styleObject
1846 return(kQ3Failure);
1847
1848 if (0) // Further checks on data
1849 return(kQ3Failure);
1850 #endif
1851
1852
1853
1854 // Call the bottleneck
1855 E3System_Bottleneck();
1856
1857
1858
1859 // Call our implementation
1860 return(E3FogStyle_GetData(styleObject, data));
1861 }
1862
1863
1864
1865
1866
1867 //=============================================================================
1868 // Q3FogStyle_SetData : Quesa API entry point.
1869 //-----------------------------------------------------------------------------
1870 TQ3Status
Q3FogStyle_SetData(TQ3StyleObject styleObject,const TQ3FogStyleData * data)1871 Q3FogStyle_SetData(TQ3StyleObject styleObject, const TQ3FogStyleData *data)
1872 {
1873
1874
1875 // Release build checks
1876 Q3_REQUIRE_OR_RESULT( E3Style_IsOfMyClass ( styleObject ), kQ3Failure);
1877 Q3_REQUIRE_OR_RESULT(Q3_VALID_PTR(data), kQ3Failure);
1878
1879
1880
1881 // Debug build checks
1882 #if Q3_DEBUG
1883 if (0) // Further checks on styleObject
1884 return(kQ3Failure);
1885
1886 if (0) // Further checks on data
1887 return(kQ3Failure);
1888 #endif
1889
1890
1891
1892 // Call the bottleneck
1893 E3System_Bottleneck();
1894
1895
1896
1897 // Call our implementation
1898 return(E3FogStyle_SetData(styleObject, data));
1899 }
1900
1901
1902
1903
1904
1905