added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / workbench / hidds / graphics / graphics_stubs.c
blob247fe115208f1f486ecb0c719edb091e8d990c61
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Stubs for graphics, bitmap, gc and colormap hidd class
6 Lang: english
7 */
9 #ifndef AROS_USE_OOP
10 # define AROS_USE_OOP
11 #endif
13 #include <aros/config.h>
14 #include <exec/types.h>
15 #include <exec/libraries.h>
17 #include <proto/oop.h>
19 #include <utility/tagitem.h>
21 #include <oop/oop.h>
22 #include <hidd/graphics.h>
24 #include "graphics_intern.h"
26 #undef SDEBUG
27 #undef DEBUG
28 #define DEBUG 0
29 #include <aros/debug.h>
31 #undef OOPBase
32 #define OOPBase ((struct Library *)OOP_OCLASS(obj)->OOPBasePtr)
34 #ifndef AROS_CREATE_ROM
35 # define STATIC_MID static OOP_MethodID mid
36 #else
37 # define STATIC_MID OOP_MethodID mid = 0
38 #endif
40 /* A small utility function for using varargs when setting attrs */
42 #warning OOP_SetAttrsTags is defined in inline/oop.h
44 #ifndef OOP_SetAttrsTags
45 IPTR OOP_SetAttrsTags(OOP_Object *obj, IPTR tag1, ...)
47 AROS_SLOWSTACKTAGS_PRE(tag1)
48 retval = OOP_SetAttrs(obj, AROS_SLOWSTACKTAGS_ARG(tag1));
49 AROS_SLOWSTACKTAGS_POST
52 #endif
54 /***************************************************************/
56 OOP_Object * HIDD_Gfx_NewGC(OOP_Object *obj, struct TagItem *tagList)
58 STATIC_MID;
59 struct pHidd_Gfx_NewGC p, *msg = &p;
61 if(!mid) mid = OOP_GetMethodID(IID_Hidd_Gfx, moHidd_Gfx_NewGC);
63 p.mID = mid;
64 p.attrList = tagList;
66 return((OOP_Object *) OOP_DoMethod(obj, (OOP_Msg) msg));
68 /***************************************************************/
70 void HIDD_Gfx_DisposeGC(OOP_Object *obj, OOP_Object *gc)
72 STATIC_MID;
73 struct pHidd_Gfx_DisposeGC p, *msg = &p;
75 if(!mid) mid = OOP_GetMethodID(IID_Hidd_Gfx, moHidd_Gfx_DisposeGC);
77 p.mID = mid;
78 p.gc = gc;
80 OOP_DoMethod(obj, (OOP_Msg) msg);
82 /***************************************************************/
84 OOP_Object * HIDD_Gfx_NewBitMap(OOP_Object *obj, struct TagItem *tagList)
86 STATIC_MID;
87 struct pHidd_Gfx_NewBitMap p, *msg = &p;
89 if(!mid) mid = OOP_GetMethodID(IID_Hidd_Gfx, moHidd_Gfx_NewBitMap);
91 p.mID = mid;
92 p.attrList = tagList;
94 return((OOP_Object *) OOP_DoMethod(obj, (OOP_Msg) msg));
96 /***************************************************************/
98 void HIDD_Gfx_DisposeBitMap(OOP_Object *obj, OOP_Object *bitMap)
100 STATIC_MID;
101 struct pHidd_Gfx_DisposeBitMap p, *msg = &p;
103 if(!mid) mid = OOP_GetMethodID(IID_Hidd_Gfx, moHidd_Gfx_DisposeBitMap);
105 p.mID = mid;
106 p.bitMap = bitMap;
108 OOP_DoMethod(obj, (OOP_Msg) msg);
111 /***************************************************************/
113 HIDDT_ModeID * HIDD_Gfx_QueryModeIDs(OOP_Object *obj, struct TagItem *queryTags)
115 STATIC_MID;
116 struct pHidd_Gfx_QueryModeIDs p, *msg = &p;
118 if(!mid) mid = OOP_GetMethodID(IID_Hidd_Gfx, moHidd_Gfx_QueryModeIDs);
120 p.mID = mid;
121 p.queryTags = queryTags;
123 return (HIDDT_ModeID *)OOP_DoMethod(obj, (OOP_Msg) msg);
125 /***************************************************************/
127 VOID HIDD_Gfx_ReleaseModeIDs(OOP_Object *obj, HIDDT_ModeID *modeIDs)
129 STATIC_MID;
130 struct pHidd_Gfx_ReleaseModeIDs p, *msg = &p;
132 if(!mid) mid = OOP_GetMethodID(IID_Hidd_Gfx, moHidd_Gfx_ReleaseModeIDs);
134 p.mID = mid;
135 p.modeIDs = modeIDs;
137 OOP_DoMethod(obj, (OOP_Msg) msg);
141 /***************************************************************/
142 OOP_Object * HIDD_Gfx_GetPixFmt (OOP_Object *obj, HIDDT_StdPixFmt stdPixFmt)
144 STATIC_MID;
145 struct pHidd_Gfx_GetPixFmt p, *msg = &p;
148 if(!mid) mid = OOP_GetMethodID(IID_Hidd_Gfx, moHidd_Gfx_GetPixFmt);
150 p.mID = mid;
152 p.stdPixFmt = stdPixFmt;
154 return (OOP_Object *)OOP_DoMethod(obj, (OOP_Msg) msg);
157 /***************************************************************/
159 BOOL HIDD_Gfx_CheckMode(OOP_Object *obj, HIDDT_ModeID modeID, OOP_Object *sync, OOP_Object *pixFmt)
161 STATIC_MID;
162 struct pHidd_Gfx_CheckMode p, *msg = &p;
165 if(!mid) mid = OOP_GetMethodID(IID_Hidd_Gfx, moHidd_Gfx_CheckMode);
167 p.mID = mid;
169 p.modeID = modeID;
170 p.sync = sync;
171 p.pixFmt = pixFmt;
173 return (BOOL)OOP_DoMethod(obj, (OOP_Msg) msg);
177 /***************************************************************/
178 BOOL HIDD_Gfx_GetMode(OOP_Object *obj, HIDDT_ModeID modeID, OOP_Object **syncPtr, OOP_Object **pixFmtPtr)
180 STATIC_MID;
181 struct pHidd_Gfx_GetMode p, *msg = &p;
183 if(!mid) mid = OOP_GetMethodID(IID_Hidd_Gfx, moHidd_Gfx_GetMode);
185 p.mID = mid;
187 p.modeID = modeID;
188 p.syncPtr = syncPtr;
189 p.pixFmtPtr = pixFmtPtr;
191 return (BOOL)OOP_DoMethod(obj, (OOP_Msg) msg);
195 /***************************************************************/
196 HIDDT_ModeID HIDD_Gfx_NextModeID(OOP_Object *obj, HIDDT_ModeID modeID, OOP_Object **syncPtr, OOP_Object **pixFmtPtr)
198 STATIC_MID;
199 struct pHidd_Gfx_NextModeID p, *msg = &p;
201 if(!mid) mid = OOP_GetMethodID(IID_Hidd_Gfx, moHidd_Gfx_NextModeID);
203 p.mID = mid;
205 p.modeID = modeID;
206 p.syncPtr = syncPtr;
207 p.pixFmtPtr = pixFmtPtr;
209 return (HIDDT_ModeID)OOP_DoMethod(obj, (OOP_Msg) msg);
213 /***************************************************************/
215 BOOL HIDD_Gfx_SetCursorShape(OOP_Object *obj, OOP_Object *shape)
217 STATIC_MID;
218 struct pHidd_Gfx_SetCursorShape p, *msg = &p;
220 if(!mid) mid = OOP_GetMethodID(IID_Hidd_Gfx, moHidd_Gfx_SetCursorShape);
222 p.mID = mid;
223 p.shape = shape;
225 return (BOOL)OOP_DoMethod(obj, (OOP_Msg) msg);
229 /***************************************************************/
231 BOOL HIDD_Gfx_SetCursorPos(OOP_Object *obj, LONG x, LONG y)
233 STATIC_MID;
234 struct pHidd_Gfx_SetCursorPos p, *msg = &p;
236 if(!mid) mid = OOP_GetMethodID(IID_Hidd_Gfx, moHidd_Gfx_SetCursorPos);
238 p.mID = mid;
240 p.x = x;
241 p.y = y;
243 return (BOOL)OOP_DoMethod(obj, (OOP_Msg) msg);
247 /***************************************************************/
249 VOID HIDD_Gfx_SetCursorVisible(OOP_Object *obj, BOOL visible)
251 STATIC_MID;
252 struct pHidd_Gfx_SetCursorVisible p, *msg = &p;
254 if(!mid) mid = OOP_GetMethodID(IID_Hidd_Gfx, moHidd_Gfx_SetCursorVisible);
256 p.mID = mid;
258 p.visible = visible;
260 OOP_DoMethod(obj, (OOP_Msg) msg);
262 return;
266 /***************************************************************/
268 BOOL HIDD_Gfx_SetMode(OOP_Object *obj, HIDDT_ModeID modeID)
270 STATIC_MID;
271 struct pHidd_Gfx_SetMode p, *msg = &p;
273 if(!mid) mid = OOP_GetMethodID(IID_Hidd_Gfx, moHidd_Gfx_SetMode);
275 p.mID = mid;
277 p.modeID = modeID;
279 return (BOOL)OOP_DoMethod(obj, (OOP_Msg) msg);
284 /***************************************************************/
286 OOP_Object *HIDD_Gfx_Show(OOP_Object *obj, OOP_Object *bitMap, ULONG flags)
288 STATIC_MID;
289 struct pHidd_Gfx_Show p, *msg = &p;
291 if(!mid) mid = OOP_GetMethodID(IID_Hidd_Gfx, moHidd_Gfx_Show);
293 p.mID = mid;
295 p.bitMap = bitMap;
296 p.flags = flags;
298 return (OOP_Object *)OOP_DoMethod(obj, (OOP_Msg) msg);
302 /***************************************************************/
303 VOID HIDD_Gfx_CopyBox(OOP_Object *obj, OOP_Object *src, WORD srcX, WORD srcY, OOP_Object *dest, WORD destX, WORD destY, UWORD width, UWORD height, OOP_Object *gc)
305 STATIC_MID;
306 struct pHidd_Gfx_CopyBox p, *msg = &p;
308 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_Gfx_CopyBox);
310 p.mID = mid;
311 p.src = src;
312 p.srcX = srcX;
313 p.srcY = srcY;
314 p.dest = dest;
315 p.destX = destX;
316 p.destY = destY;
317 p.width = width;
318 p.height = height;
319 p.gc = gc;
321 OOP_DoMethod(obj, (OOP_Msg) msg);
325 /***************************************************************/
327 BOOL HIDD_BM_SetColors (OOP_Object *obj, HIDDT_Color *colors, ULONG firstColor, ULONG numColors)
329 STATIC_MID;
330 struct pHidd_BitMap_SetColors p, *msg = &p;
332 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_SetColors);
334 p.mID = mid;
335 p.colors = colors;
336 p.firstColor = firstColor;
337 p.numColors = numColors;
339 return OOP_DoMethod(obj, (OOP_Msg) msg);
343 /***************************************************************/
345 ULONG HIDD_BM_PutPixel(OOP_Object *obj, WORD x, WORD y, HIDDT_Pixel val)
347 STATIC_MID;
348 struct pHidd_BitMap_PutPixel p, *msg = &p;
350 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutPixel);
352 p.mID = mid;
353 p.x = x;
354 p.y = y;
355 p.pixel = val;
357 return(OOP_DoMethod(obj, (OOP_Msg) msg));
359 /***************************************************************/
361 ULONG HIDD_BM_DrawPixel(OOP_Object *obj, OOP_Object *gc, WORD x, WORD y)
363 STATIC_MID;
364 struct pHidd_BitMap_DrawPixel p, *msg = &p;
366 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_DrawPixel);
368 p.mID = mid;
369 p.gc = gc;
370 p.x = x;
371 p.y = y;
373 return(OOP_DoMethod(obj, (OOP_Msg) msg));
375 /***************************************************************/
377 HIDDT_Pixel HIDD_BM_GetPixel(OOP_Object *obj, WORD x, WORD y)
379 STATIC_MID;
380 struct pHidd_BitMap_GetPixel p, *msg = &p;
382 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_GetPixel);
384 p.mID = mid;
385 p.x = x;
386 p.y = y;
388 return(OOP_DoMethod(obj, (OOP_Msg) msg));
390 /***************************************************************/
392 VOID HIDD_BM_DrawLine(OOP_Object *obj, OOP_Object *gc, WORD x1, WORD y1, WORD x2, WORD y2)
394 STATIC_MID;
395 struct pHidd_BitMap_DrawLine p, *msg = &p;
397 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_DrawLine);
399 p.mID = mid;
400 p.gc = gc;
401 p.x1 = x1;
402 p.y1 = y1;
403 p.x2 = x2;
404 p.y2 = y2;
406 OOP_DoMethod(obj, (OOP_Msg) msg);
408 /***************************************************************/
411 VOID HIDD_BM_DrawRect (OOP_Object *obj, OOP_Object *gc, WORD minX, WORD minY, WORD maxX, WORD maxY)
413 STATIC_MID;
414 struct pHidd_BitMap_DrawRect p, *msg = &p;
416 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_DrawRect);
418 p.mID = mid;
419 p.gc = gc;
420 p.minX = minX;
421 p.minY = minY;
422 p.maxX = maxX;
423 p.maxY = maxY;
425 OOP_DoMethod(obj, (OOP_Msg) msg);
427 /***************************************************************/
429 VOID HIDD_BM_FillRect (OOP_Object *obj, OOP_Object *gc, WORD minX, WORD minY, WORD maxX, WORD maxY)
431 STATIC_MID;
432 struct pHidd_BitMap_DrawRect p, *msg = &p;
434 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_FillRect);
436 p.mID = mid;
437 p.gc = gc;
438 p.minX = minX;
439 p.minY = minY;
440 p.maxX = maxX;
441 p.maxY = maxY;
443 OOP_DoMethod(obj, (OOP_Msg) msg);
445 /***************************************************************/
447 VOID HIDD_BM_DrawEllipse (OOP_Object *obj, OOP_Object *gc, WORD x, WORD y, WORD rx, WORD ry)
449 STATIC_MID;
450 struct pHidd_BitMap_DrawEllipse p, *msg = &p;
452 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_DrawEllipse);
454 p.mID = mid;
455 p.gc = gc;
456 p.x = x;
457 p.y = y;
458 p.rx = rx;
459 p.ry = ry;
461 OOP_DoMethod(obj, (OOP_Msg) msg);
463 /***************************************************************/
465 VOID HIDD_BM_FillEllipse (OOP_Object *obj, OOP_Object *gc, WORD x, WORD y, WORD ry, WORD rx)
467 STATIC_MID;
468 struct pHidd_BitMap_DrawEllipse p, *msg = &p;
470 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_FillEllipse);
472 p.mID = mid;
473 p.gc = gc;
474 p.x = x;
475 p.y = y;
476 p.rx = rx;
477 p.ry = ry;
479 OOP_DoMethod(obj, (OOP_Msg) msg);
481 /***************************************************************/
483 VOID HIDD_BM_DrawPolygon (OOP_Object *obj, OOP_Object *gc, UWORD n, WORD *coords)
485 STATIC_MID;
486 struct pHidd_BitMap_DrawPolygon p, *msg = &p;
488 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_DrawPolygon);
490 p.mID = mid;
491 p.gc = gc;
492 p.n = n;
493 p.coords = coords;
495 OOP_DoMethod(obj, (OOP_Msg) msg);
497 /***************************************************************/
499 VOID HIDD_BM_FillPolygon (OOP_Object *obj, OOP_Object *gc, UWORD n, WORD *coords)
501 STATIC_MID;
502 struct pHidd_BitMap_DrawPolygon p, *msg = &p;
504 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_FillPolygon);
506 p.mID = mid;
507 p.gc = gc;
508 p.n = n;
509 p.coords = coords;
511 OOP_DoMethod(obj, (OOP_Msg) msg);
513 /***************************************************************/
515 VOID HIDD_BM_DrawText (OOP_Object *obj, OOP_Object *gc, WORD x, WORD y, STRPTR text, UWORD length)
517 STATIC_MID;
518 struct pHidd_BitMap_DrawText p, *msg = &p;
520 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_DrawText);
522 p.mID = mid;
523 p.gc = gc;
524 p.x = x;
525 p.y = y;
526 p.text = text;
527 p.length = length;
529 OOP_DoMethod(obj, (OOP_Msg) msg);
531 /***************************************************************/
533 VOID HIDD_BM_FillText (OOP_Object *obj, OOP_Object *gc, WORD x, WORD y, STRPTR text, UWORD length)
535 STATIC_MID;
536 struct pHidd_BitMap_DrawText p, *msg = &p;
538 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_FillText);
540 p.mID = mid;
541 p.gc = gc;
542 p.x = x;
543 p.y = y;
544 p.text = text;
545 p.length = length;
547 OOP_DoMethod(obj, (OOP_Msg) msg);
549 /***************************************************************/
551 VOID HIDD_BM_Clear (OOP_Object *obj, OOP_Object *gc)
553 STATIC_MID;
554 struct pHidd_BitMap_Clear p, *msg = &p;
556 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_Clear);
558 p.mID = mid;
559 p.gc = gc;
561 OOP_DoMethod(obj, (OOP_Msg) msg);
564 /***************************************************************/
566 VOID HIDD_BM_GetImage (OOP_Object *obj
567 , UBYTE *pixels
568 , ULONG modulo
569 , WORD x, WORD y
570 , WORD width, WORD height
571 , HIDDT_StdPixFmt pixFmt)
573 STATIC_MID;
574 struct pHidd_BitMap_GetImage p, *msg = &p;
576 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_GetImage);
578 p.mID = mid;
579 p.pixels = pixels;
580 p.modulo = modulo;
581 p.x = x;
582 p.y = y;
583 p.width = width;
584 p.height = height;
586 p.pixFmt = pixFmt;
590 OOP_DoMethod(obj, (OOP_Msg) msg);
593 /***************************************************************/
595 VOID HIDD_BM_PutImage (OOP_Object *obj
596 , OOP_Object *gc
597 , UBYTE *pixels
598 , ULONG modulo
599 , WORD x, WORD y
600 , WORD width, WORD height
601 , HIDDT_StdPixFmt pixFmt)
603 STATIC_MID;
604 struct pHidd_BitMap_PutImage p, *msg = &p;
606 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutImage);
608 p.mID = mid;
609 p.gc = gc;
610 p.pixels = pixels;
611 p.modulo = modulo;
612 p.x = x;
613 p.y = y;
614 p.width = width;
615 p.height = height;
616 p.pixFmt = pixFmt;
618 OOP_DoMethod(obj, (OOP_Msg) msg);
621 /***************************************************************/
623 VOID HIDD_BM_PutAlphaImage (OOP_Object *obj
624 , OOP_Object *gc
625 , UBYTE *pixels
626 , ULONG modulo
627 , WORD x, WORD y
628 , WORD width, WORD height)
630 STATIC_MID;
631 struct pHidd_BitMap_PutAlphaImage p, *msg = &p;
633 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutAlphaImage);
635 p.mID = mid;
636 p.gc = gc;
637 p.pixels = pixels;
638 p.modulo = modulo;
639 p.x = x;
640 p.y = y;
641 p.width = width;
642 p.height = height;
644 OOP_DoMethod(obj, (OOP_Msg) msg);
647 /***************************************************************/
649 VOID HIDD_BM_PutTemplate (OOP_Object *obj
650 , OOP_Object *gc
651 , UBYTE *template
652 , ULONG modulo
653 , WORD srcx
654 , WORD x, WORD y
655 , WORD width, WORD height
656 , BOOL inverttemplate)
658 STATIC_MID;
659 struct pHidd_BitMap_PutTemplate p, *msg = &p;
661 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutTemplate);
663 p.mID = mid;
664 p.gc = gc;
665 p.template = template;
666 p.modulo = modulo;
667 p.srcx = srcx;
668 p.x = x;
669 p.y = y;
670 p.width = width;
671 p.height = height;
672 p.inverttemplate = inverttemplate;
674 OOP_DoMethod(obj, (OOP_Msg) msg);
677 /***************************************************************/
679 VOID HIDD_BM_PutAlphaTemplate (OOP_Object *obj
680 , OOP_Object *gc
681 , UBYTE *alpha
682 , ULONG modulo
683 , WORD x, WORD y
684 , WORD width, WORD height
685 , BOOL invertalpha)
687 STATIC_MID;
688 struct pHidd_BitMap_PutAlphaTemplate p, *msg = &p;
690 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutAlphaTemplate);
692 p.mID = mid;
693 p.gc = gc;
694 p.alpha = alpha;
695 p.modulo = modulo;
696 p.x = x;
697 p.y = y;
698 p.width = width;
699 p.height = height;
700 p.invertalpha = invertalpha;
702 OOP_DoMethod(obj, (OOP_Msg) msg);
705 /***************************************************************/
707 VOID HIDD_BM_PutPattern(OOP_Object *obj, OOP_Object *gc, UBYTE *pattern,
708 WORD patternsrcx, WORD patternsrcy, WORD patternheight,
709 WORD patterndepth, HIDDT_PixelLUT *patternlut,
710 BOOL invertpattern, UBYTE *mask, ULONG maskmodulo,
711 WORD masksrcx, WORD x, WORD y, WORD width, WORD height)
713 STATIC_MID;
714 struct pHidd_BitMap_PutPattern p, *msg = &p;
716 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutPattern);
718 p.mID = mid;
719 p.gc = gc;
720 p.pattern = pattern;
721 p.patternsrcx = patternsrcx;
722 p.patternsrcy = patternsrcy;
723 p.patternheight = patternheight;
724 p.patterndepth = patterndepth;
725 p.patternlut = patternlut;
726 p.invertpattern = invertpattern;
727 p.mask = mask;
728 p.maskmodulo = maskmodulo;
729 p.masksrcx = masksrcx;
730 p.x = x;
731 p.y = y;
732 p.width = width;
733 p.height = height;
735 OOP_DoMethod(obj, (OOP_Msg) msg);
738 /***************************************************************/
740 VOID HIDD_BM_BlitColorExpansion (OOP_Object *obj, OOP_Object *gc, OOP_Object *srcBitMap, WORD srcX, WORD srcY, WORD destX, WORD destY, UWORD width, UWORD height)
742 STATIC_MID;
743 struct pHidd_BitMap_BlitColorExpansion p, *msg = &p;
745 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_BlitColorExpansion);
747 p.mID = mid;
748 p.gc = gc;
749 p.srcBitMap = srcBitMap;
750 p.srcX = srcX;
751 p.srcY = srcY;
752 p.destX = destX;
753 p.destY = destY;
754 p.width = width;
755 p.height = height;
757 OOP_DoMethod(obj, (OOP_Msg) msg);
760 /***************************************************************/
762 HIDDT_Pixel HIDD_BM_MapColor(OOP_Object *obj, HIDDT_Color *color)
764 STATIC_MID;
765 struct pHidd_BitMap_MapColor p, *msg = &p;
767 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_MapColor);
769 p.mID = mid;
770 p.color = color;
773 return OOP_DoMethod(obj, (OOP_Msg)msg);
776 /***************************************************************/
778 VOID HIDD_BM_UnmapPixel(OOP_Object *obj, HIDDT_Pixel pixel, HIDDT_Color *color)
780 STATIC_MID;
781 struct pHidd_BitMap_UnmapPixel p, *msg = &p;
783 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_UnmapPixel);
785 p.mID = mid;
786 p.pixel = pixel;
787 p.color = color;
789 OOP_DoMethod(obj, (OOP_Msg)msg);
793 /***************************************************************/
795 VOID HIDD_BM_PutImageLUT (OOP_Object *obj, OOP_Object *gc, UBYTE *pixels, ULONG modulo, WORD x, WORD y, WORD width, WORD height, HIDDT_PixelLUT *pixlut)
797 STATIC_MID;
798 struct pHidd_BitMap_PutImageLUT p, *msg = &p;
800 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutImageLUT);
802 p.mID = mid;
803 p.gc = gc;
804 p.pixels = pixels;
805 p.modulo = modulo;
806 p.x = x;
807 p.y = y;
808 p.width = width;
809 p.height = height;
810 p.pixlut = pixlut;
812 OOP_DoMethod(obj, (OOP_Msg) msg);
815 /***************************************************************/
817 VOID HIDD_BM_PutTranspImageLUT (OOP_Object *obj, OOP_Object *gc, UBYTE *pixels,
818 ULONG modulo, WORD x, WORD y, WORD width, WORD height,
819 HIDDT_PixelLUT *pixlut, UBYTE transparent)
821 STATIC_MID;
822 struct pHidd_BitMap_PutTranspImageLUT p, *msg = &p;
824 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutTranspImageLUT);
826 p.mID = mid;
827 p.gc = gc;
828 p.pixels = pixels;
829 p.modulo = modulo;
830 p.x = x;
831 p.y = y;
832 p.width = width;
833 p.height = height;
834 p.pixlut = pixlut;
835 p.transparent = transparent;
837 OOP_DoMethod(obj, (OOP_Msg) msg);
841 /***************************************************************/
843 VOID HIDD_BM_GetImageLUT (OOP_Object *obj, UBYTE *pixels, ULONG modulo, WORD x, WORD y, WORD width, WORD height, HIDDT_PixelLUT *pixlut)
845 STATIC_MID;
846 struct pHidd_BitMap_GetImageLUT p, *msg = &p;
848 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_GetImageLUT);
850 p.mID = mid;
851 p.pixels = pixels;
852 p.modulo = modulo;
853 p.x = x;
854 p.y = y;
855 p.width = width;
856 p.height = height;
857 p.pixlut = pixlut;
859 OOP_DoMethod(obj, (OOP_Msg) msg);
863 ULONG HIDD_BM_BytesPerLine(OOP_Object *obj, HIDDT_StdPixFmt pixFmt, ULONG width)
865 STATIC_MID;
866 struct pHidd_BitMap_BytesPerLine p, *msg = &p;
868 if (!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_BytesPerLine);
870 p.mID = mid;
871 p.pixFmt = pixFmt;
872 p.width = width;
874 return OOP_DoMethod(obj, (OOP_Msg) msg);
878 /***************************************************************/
881 VOID HIDD_BM_ConvertPixels (OOP_Object *obj
882 , APTR *srcPixels
883 , HIDDT_PixelFormat *srcPixFmt
884 , ULONG srcMod
885 , APTR *dstBuf
886 , HIDDT_PixelFormat *dstPixFmt
887 , ULONG dstMod
888 , ULONG width, ULONG height
889 , HIDDT_PixelLUT *pixlut
892 STATIC_MID;
893 struct pHidd_BitMap_ConvertPixels p, *msg = &p;
895 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_ConvertPixels);
897 p.mID = mid;
898 p.srcPixFmt = srcPixFmt;
899 p.srcPixels = srcPixels;
901 p.srcMod = srcMod;
903 p.dstBuf = dstBuf;
904 p.dstPixFmt = dstPixFmt;
906 p.dstMod = dstMod;
908 p.width = width;
909 p.height = height;
911 p.pixlut = pixlut;
913 OOP_DoMethod(obj, (OOP_Msg) msg);
916 VOID HIDD_BM_FillMemRect8 (OOP_Object *obj
917 , APTR dstBuf
918 , WORD minX
919 , WORD minY
920 , WORD maxX
921 , WORD maxY
922 , ULONG dstMod
923 , UBYTE fill
926 STATIC_MID;
927 struct pHidd_BitMap_FillMemRect8 p, *msg = &p;
929 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_FillMemRect8);
931 p.mID = mid;
932 p.dstBuf = dstBuf;
933 p.minX = minX;
934 p.minY = minY;
935 p.maxX = maxX;
936 p.maxY = maxY;
937 p.dstMod = dstMod;
938 p.fill = fill;
940 OOP_DoMethod(obj, (OOP_Msg) msg);
943 VOID HIDD_BM_FillMemRect16(OOP_Object *obj
944 , APTR dstBuf
945 , WORD minX
946 , WORD minY
947 , WORD maxX
948 , WORD maxY
949 , ULONG dstMod
950 , UWORD fill
953 STATIC_MID;
954 struct pHidd_BitMap_FillMemRect16 p, *msg = &p;
956 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_FillMemRect16);
958 p.mID = mid;
959 p.dstBuf = dstBuf;
960 p.minX = minX;
961 p.minY = minY;
962 p.maxX = maxX;
963 p.maxY = maxY;
964 p.dstMod = dstMod;
965 p.fill = fill;
967 OOP_DoMethod(obj, (OOP_Msg) msg);
970 VOID HIDD_BM_FillMemRect24 (OOP_Object *obj
971 , APTR dstBuf
972 , WORD minX
973 , WORD minY
974 , WORD maxX
975 , WORD maxY
976 , ULONG dstMod
977 , ULONG fill
980 STATIC_MID;
981 struct pHidd_BitMap_FillMemRect24 p, *msg = &p;
983 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_FillMemRect24);
985 p.mID = mid;
986 p.dstBuf = dstBuf;
987 p.minX = minX;
988 p.minY = minY;
989 p.maxX = maxX;
990 p.maxY = maxY;
991 p.dstMod = dstMod;
992 p.fill = fill;
994 OOP_DoMethod(obj, (OOP_Msg) msg);
997 VOID HIDD_BM_FillMemRect32 (OOP_Object *obj
998 , APTR dstBuf
999 , WORD minX
1000 , WORD minY
1001 , WORD maxX
1002 , WORD maxY
1003 , ULONG dstMod
1004 , ULONG fill
1007 STATIC_MID;
1008 struct pHidd_BitMap_FillMemRect32 p, *msg = &p;
1010 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_FillMemRect32);
1012 p.mID = mid;
1013 p.dstBuf = dstBuf;
1014 p.minX = minX;
1015 p.minY = minY;
1016 p.maxX = maxX;
1017 p.maxY = maxY;
1018 p.dstMod = dstMod;
1019 p.fill = fill;
1021 OOP_DoMethod(obj, (OOP_Msg) msg);
1025 VOID HIDD_BM_InvertMemRect(OOP_Object *obj
1026 , APTR dstBuf
1027 , WORD minX
1028 , WORD minY
1029 , WORD maxX
1030 , WORD maxY
1031 , ULONG dstMod
1034 STATIC_MID;
1035 struct pHidd_BitMap_InvertMemRect p, *msg = &p;
1037 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_InvertMemRect);
1039 p.mID = mid;
1040 p.dstBuf = dstBuf;
1041 p.minX = minX;
1042 p.minY = minY;
1043 p.maxX = maxX;
1044 p.maxY = maxY;
1045 p.dstMod = dstMod;
1047 OOP_DoMethod(obj, (OOP_Msg) msg);
1051 VOID HIDD_BM_CopyMemBox8(OOP_Object *obj
1052 , APTR src
1053 , WORD srcX
1054 , WORD srcY
1055 , APTR dst
1056 , WORD dstX
1057 , WORD dstY
1058 , UWORD width
1059 , UWORD height
1060 , ULONG srcMod
1061 , ULONG dstMod)
1063 STATIC_MID;
1064 struct pHidd_BitMap_CopyMemBox8 p, *msg = &p;
1066 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_CopyMemBox8);
1068 p.mID = mid;
1069 p.src = src;
1070 p.srcX = srcX;
1071 p.srcY = srcY;
1072 p.dst = dst;
1073 p.dstX = dstX;
1074 p.dstY = dstY;
1075 p.width = width;
1076 p.height = height;
1077 p.srcMod = srcMod;
1078 p.dstMod = dstMod;
1080 OOP_DoMethod(obj, (OOP_Msg) msg);
1083 VOID HIDD_BM_CopyMemBox16(OOP_Object *obj
1084 , APTR src
1085 , WORD srcX
1086 , WORD srcY
1087 , APTR dst
1088 , WORD dstX
1089 , WORD dstY
1090 , UWORD width
1091 , UWORD height
1092 , ULONG srcMod
1093 , ULONG dstMod)
1095 STATIC_MID;
1096 struct pHidd_BitMap_CopyMemBox16 p, *msg = &p;
1098 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_CopyMemBox16);
1100 p.mID = mid;
1101 p.src = src;
1102 p.srcX = srcX;
1103 p.srcY = srcY;
1104 p.dst = dst;
1105 p.dstX = dstX;
1106 p.dstY = dstY;
1107 p.width = width;
1108 p.height = height;
1109 p.srcMod = srcMod;
1110 p.dstMod = dstMod;
1112 OOP_DoMethod(obj, (OOP_Msg) msg);
1115 VOID HIDD_BM_CopyMemBox24(OOP_Object *obj
1116 , APTR src
1117 , WORD srcX
1118 , WORD srcY
1119 , APTR dst
1120 , WORD dstX
1121 , WORD dstY
1122 , UWORD width
1123 , UWORD height
1124 , ULONG srcMod
1125 , ULONG dstMod)
1127 STATIC_MID;
1128 struct pHidd_BitMap_CopyMemBox24 p, *msg = &p;
1130 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_CopyMemBox24);
1132 p.mID = mid;
1133 p.src = src;
1134 p.srcX = srcX;
1135 p.srcY = srcY;
1136 p.dst = dst;
1137 p.dstX = dstX;
1138 p.dstY = dstY;
1139 p.width = width;
1140 p.height = height;
1141 p.srcMod = srcMod;
1142 p.dstMod = dstMod;
1144 OOP_DoMethod(obj, (OOP_Msg) msg);
1147 VOID HIDD_BM_CopyMemBox32(OOP_Object *obj
1148 , APTR src
1149 , WORD srcX
1150 , WORD srcY
1151 , APTR dst
1152 , WORD dstX
1153 , WORD dstY
1154 , UWORD width
1155 , UWORD height
1156 , ULONG srcMod
1157 , ULONG dstMod)
1159 STATIC_MID;
1160 struct pHidd_BitMap_CopyMemBox32 p, *msg = &p;
1162 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_CopyMemBox32);
1164 p.mID = mid;
1165 p.src = src;
1166 p.srcX = srcX;
1167 p.srcY = srcY;
1168 p.dst = dst;
1169 p.dstX = dstX;
1170 p.dstY = dstY;
1171 p.width = width;
1172 p.height = height;
1173 p.srcMod = srcMod;
1174 p.dstMod = dstMod;
1176 OOP_DoMethod(obj, (OOP_Msg) msg);
1179 VOID HIDD_BM_CopyLUTMemBox16(OOP_Object *obj
1180 , APTR src
1181 , WORD srcX
1182 , WORD srcY
1183 , APTR dst
1184 , WORD dstX
1185 , WORD dstY
1186 , UWORD width
1187 , UWORD height
1188 , ULONG srcMod
1189 , ULONG dstMod
1190 , HIDDT_PixelLUT *pixlut)
1192 STATIC_MID;
1193 struct pHidd_BitMap_CopyLUTMemBox16 p, *msg = &p;
1195 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_CopyLUTMemBox16);
1197 p.mID = mid;
1198 p.src = src;
1199 p.srcX = srcX;
1200 p.srcY = srcY;
1201 p.dst = dst;
1202 p.dstX = dstX;
1203 p.dstY = dstY;
1204 p.width = width;
1205 p.height = height;
1206 p.srcMod = srcMod;
1207 p.dstMod = dstMod;
1208 p.pixlut = pixlut;
1210 OOP_DoMethod(obj, (OOP_Msg) msg);
1213 VOID HIDD_BM_CopyLUTMemBox24(OOP_Object *obj
1214 , APTR src
1215 , WORD srcX
1216 , WORD srcY
1217 , APTR dst
1218 , WORD dstX
1219 , WORD dstY
1220 , UWORD width
1221 , UWORD height
1222 , ULONG srcMod
1223 , ULONG dstMod
1224 , HIDDT_PixelLUT *pixlut)
1226 STATIC_MID;
1227 struct pHidd_BitMap_CopyLUTMemBox24 p, *msg = &p;
1229 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_CopyLUTMemBox24);
1231 p.mID = mid;
1232 p.src = src;
1233 p.srcX = srcX;
1234 p.srcY = srcY;
1235 p.dst = dst;
1236 p.dstX = dstX;
1237 p.dstY = dstY;
1238 p.width = width;
1239 p.height = height;
1240 p.srcMod = srcMod;
1241 p.dstMod = dstMod;
1242 p.pixlut = pixlut;
1244 OOP_DoMethod(obj, (OOP_Msg) msg);
1247 VOID HIDD_BM_CopyLUTMemBox32(OOP_Object *obj
1248 , APTR src
1249 , WORD srcX
1250 , WORD srcY
1251 , APTR dst
1252 , WORD dstX
1253 , WORD dstY
1254 , UWORD width
1255 , UWORD height
1256 , ULONG srcMod
1257 , ULONG dstMod
1258 , HIDDT_PixelLUT *pixlut)
1260 STATIC_MID;
1261 struct pHidd_BitMap_CopyLUTMemBox32 p, *msg = &p;
1263 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_CopyLUTMemBox32);
1265 p.mID = mid;
1266 p.src = src;
1267 p.srcX = srcX;
1268 p.srcY = srcY;
1269 p.dst = dst;
1270 p.dstX = dstX;
1271 p.dstY = dstY;
1272 p.width = width;
1273 p.height = height;
1274 p.srcMod = srcMod;
1275 p.dstMod = dstMod;
1276 p.pixlut = pixlut;
1278 OOP_DoMethod(obj, (OOP_Msg) msg);
1281 VOID HIDD_BM_PutMem32Image8(OOP_Object *obj,
1282 APTR src,
1283 APTR dst,
1284 WORD dstX,
1285 WORD dstY,
1286 UWORD width,
1287 UWORD height,
1288 ULONG srcMod,
1289 ULONG dstMod)
1291 STATIC_MID;
1292 struct pHidd_BitMap_PutMem32Image8 p, *msg = &p;
1294 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutMem32Image8);
1296 p.mID = mid;
1297 p.src = src;
1298 p.dst = dst;
1299 p.dstX = dstX;
1300 p.dstY = dstY;
1301 p.width = width;
1302 p.height = height;
1303 p.srcMod = srcMod;
1304 p.dstMod = dstMod;
1306 OOP_DoMethod(obj, (OOP_Msg) msg);
1309 VOID HIDD_BM_PutMem32Image16(OOP_Object *obj,
1310 APTR src,
1311 APTR dst,
1312 WORD dstX,
1313 WORD dstY,
1314 UWORD width,
1315 UWORD height,
1316 ULONG srcMod,
1317 ULONG dstMod)
1319 STATIC_MID;
1320 struct pHidd_BitMap_PutMem32Image16 p, *msg = &p;
1322 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutMem32Image16);
1324 p.mID = mid;
1325 p.src = src;
1326 p.dst = dst;
1327 p.dstX = dstX;
1328 p.dstY = dstY;
1329 p.width = width;
1330 p.height = height;
1331 p.srcMod = srcMod;
1332 p.dstMod = dstMod;
1334 OOP_DoMethod(obj, (OOP_Msg) msg);
1337 VOID HIDD_BM_PutMem32Image24(OOP_Object *obj,
1338 APTR src,
1339 APTR dst,
1340 WORD dstX,
1341 WORD dstY,
1342 UWORD width,
1343 UWORD height,
1344 ULONG srcMod,
1345 ULONG dstMod)
1347 STATIC_MID;
1348 struct pHidd_BitMap_PutMem32Image24 p, *msg = &p;
1350 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutMem32Image24);
1352 p.mID = mid;
1353 p.src = src;
1354 p.dst = dst;
1355 p.dstX = dstX;
1356 p.dstY = dstY;
1357 p.width = width;
1358 p.height = height;
1359 p.srcMod = srcMod;
1360 p.dstMod = dstMod;
1362 OOP_DoMethod(obj, (OOP_Msg) msg);
1365 VOID HIDD_BM_GetMem32Image8(OOP_Object *obj,
1366 APTR src,
1367 WORD srcX,
1368 WORD srcY,
1369 APTR dst,
1370 UWORD width,
1371 UWORD height,
1372 ULONG srcMod,
1373 ULONG dstMod)
1375 STATIC_MID;
1376 struct pHidd_BitMap_GetMem32Image8 p, *msg = &p;
1378 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_GetMem32Image8);
1380 p.mID = mid;
1381 p.src = src;
1382 p.srcX = srcX;
1383 p.srcY = srcY;
1384 p.dst = dst;
1385 p.width = width;
1386 p.height = height;
1387 p.srcMod = srcMod;
1388 p.dstMod = dstMod;
1390 OOP_DoMethod(obj, (OOP_Msg) msg);
1393 VOID HIDD_BM_GetMem32Image16(OOP_Object *obj,
1394 APTR src,
1395 WORD srcX,
1396 WORD srcY,
1397 APTR dst,
1398 UWORD width,
1399 UWORD height,
1400 ULONG srcMod,
1401 ULONG dstMod)
1403 STATIC_MID;
1404 struct pHidd_BitMap_GetMem32Image16 p, *msg = &p;
1406 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_GetMem32Image16);
1408 p.mID = mid;
1409 p.src = src;
1410 p.srcX = srcX;
1411 p.srcY = srcY;
1412 p.dst = dst;
1413 p.width = width;
1414 p.height = height;
1415 p.srcMod = srcMod;
1416 p.dstMod = dstMod;
1418 OOP_DoMethod(obj, (OOP_Msg) msg);
1421 VOID HIDD_BM_GetMem32Image24(OOP_Object *obj,
1422 APTR src,
1423 WORD srcX,
1424 WORD srcY,
1425 APTR dst,
1426 UWORD width,
1427 UWORD height,
1428 ULONG srcMod,
1429 ULONG dstMod)
1431 STATIC_MID;
1432 struct pHidd_BitMap_GetMem32Image24 p, *msg = &p;
1434 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_GetMem32Image24);
1436 p.mID = mid;
1437 p.src = src;
1438 p.srcX = srcX;
1439 p.srcY = srcY;
1440 p.dst = dst;
1441 p.width = width;
1442 p.height = height;
1443 p.srcMod = srcMod;
1444 p.dstMod = dstMod;
1446 OOP_DoMethod(obj, (OOP_Msg) msg);
1449 VOID HIDD_BM_PutMemTemplate8 (OOP_Object *obj,
1450 OOP_Object *gc,
1451 UBYTE *template,
1452 ULONG modulo,
1453 WORD srcx,
1454 APTR dst,
1455 ULONG dstMod,
1456 WORD x,
1457 WORD y,
1458 WORD width,
1459 WORD height,
1460 BOOL inverttemplate)
1462 STATIC_MID;
1463 struct pHidd_BitMap_PutMemTemplate8 p, *msg = &p;
1465 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutMemTemplate8);
1467 p.mID = mid;
1468 p.gc = gc;
1469 p.template = template;
1470 p.modulo = modulo;
1471 p.srcx = srcx;
1472 p.dst = dst;
1473 p.dstMod = dstMod;
1474 p.x = x;
1475 p.y = y;
1476 p.width = width;
1477 p.height = height;
1478 p.inverttemplate = inverttemplate;
1480 OOP_DoMethod(obj, (OOP_Msg) msg);
1483 VOID HIDD_BM_PutMemTemplate16(OOP_Object *obj,
1484 OOP_Object *gc,
1485 UBYTE *template,
1486 ULONG modulo,
1487 WORD srcx,
1488 APTR dst,
1489 ULONG dstMod,
1490 WORD x,
1491 WORD y,
1492 WORD width,
1493 WORD height,
1494 BOOL inverttemplate)
1496 STATIC_MID;
1497 struct pHidd_BitMap_PutMemTemplate16 p, *msg = &p;
1499 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutMemTemplate16);
1501 p.mID = mid;
1502 p.gc = gc;
1503 p.template = template;
1504 p.modulo = modulo;
1505 p.srcx = srcx;
1506 p.dst = dst;
1507 p.dstMod = dstMod;
1508 p.x = x;
1509 p.y = y;
1510 p.width = width;
1511 p.height = height;
1512 p.inverttemplate = inverttemplate;
1514 OOP_DoMethod(obj, (OOP_Msg) msg);
1517 VOID HIDD_BM_PutMemTemplate24(OOP_Object *obj,
1518 OOP_Object *gc,
1519 UBYTE *template,
1520 ULONG modulo,
1521 WORD srcx,
1522 APTR dst,
1523 ULONG dstMod,
1524 WORD x,
1525 WORD y,
1526 WORD width,
1527 WORD height,
1528 BOOL inverttemplate)
1530 STATIC_MID;
1531 struct pHidd_BitMap_PutMemTemplate24 p, *msg = &p;
1533 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutMemTemplate24);
1535 p.mID = mid;
1536 p.gc = gc;
1537 p.template = template;
1538 p.modulo = modulo;
1539 p.srcx = srcx;
1540 p.dst = dst;
1541 p.dstMod = dstMod;
1542 p.x = x;
1543 p.y = y;
1544 p.width = width;
1545 p.height = height;
1546 p.inverttemplate = inverttemplate;
1548 OOP_DoMethod(obj, (OOP_Msg) msg);
1551 VOID HIDD_BM_PutMemTemplate32(OOP_Object *obj,
1552 OOP_Object *gc,
1553 UBYTE *template,
1554 ULONG modulo,
1555 WORD srcx,
1556 APTR dst,
1557 ULONG dstMod,
1558 WORD x,
1559 WORD y,
1560 WORD width,
1561 WORD height,
1562 BOOL inverttemplate)
1564 STATIC_MID;
1565 struct pHidd_BitMap_PutMemTemplate32 p, *msg = &p;
1567 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutMemTemplate32);
1569 p.mID = mid;
1570 p.gc = gc;
1571 p.template = template;
1572 p.modulo = modulo;
1573 p.srcx = srcx;
1574 p.dst = dst;
1575 p.dstMod = dstMod;
1576 p.x = x;
1577 p.y = y;
1578 p.width = width;
1579 p.height = height;
1580 p.inverttemplate = inverttemplate;
1582 OOP_DoMethod(obj, (OOP_Msg) msg);
1585 VOID HIDD_BM_PutMemPattern8 (OOP_Object *obj,
1586 OOP_Object *gc,
1587 UBYTE *pattern,
1588 WORD patternsrcx,
1589 WORD patternsrcy,
1590 WORD patternheight,
1591 WORD patterndepth,
1592 HIDDT_PixelLUT *patternlut,
1593 BOOL invertpattern,
1594 UBYTE *mask,
1595 ULONG maskmodulo,
1596 WORD masksrcx,
1597 APTR dst,
1598 ULONG dstMod,
1599 WORD x,
1600 WORD y,
1601 WORD width,
1602 WORD height)
1604 STATIC_MID;
1605 struct pHidd_BitMap_PutMemPattern8 p, *msg = &p;
1607 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutMemPattern8);
1609 p.mID = mid;
1610 p.gc = gc;
1611 p.pattern = pattern;
1612 p.patternsrcx = patternsrcx;
1613 p.patternsrcy = patternsrcy;
1614 p.patternheight = patternheight;
1615 p.patterndepth = patterndepth;
1616 p.patternlut = patternlut;
1617 p.invertpattern = invertpattern;
1618 p.mask = mask;
1619 p.maskmodulo = maskmodulo;
1620 p.masksrcx = masksrcx;
1621 p.dst = dst;
1622 p.dstMod = dstMod;
1623 p.x = x;
1624 p.y = y;
1625 p.width = width;
1626 p.height = height;
1628 OOP_DoMethod(obj, (OOP_Msg) msg);
1631 VOID HIDD_BM_PutMemPattern16 (OOP_Object *obj,
1632 OOP_Object *gc,
1633 UBYTE *pattern,
1634 WORD patternsrcx,
1635 WORD patternsrcy,
1636 WORD patternheight,
1637 WORD patterndepth,
1638 HIDDT_PixelLUT *patternlut,
1639 BOOL invertpattern,
1640 UBYTE *mask,
1641 ULONG maskmodulo,
1642 WORD masksrcx,
1643 APTR dst,
1644 ULONG dstMod,
1645 WORD x,
1646 WORD y,
1647 WORD width,
1648 WORD height)
1650 STATIC_MID;
1651 struct pHidd_BitMap_PutMemPattern16 p, *msg = &p;
1653 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutMemPattern16);
1655 p.mID = mid;
1656 p.gc = gc;
1657 p.pattern = pattern;
1658 p.patternsrcx = patternsrcx;
1659 p.patternsrcy = patternsrcy;
1660 p.patternheight = patternheight;
1661 p.patterndepth = patterndepth;
1662 p.patternlut = patternlut;
1663 p.invertpattern = invertpattern;
1664 p.mask = mask;
1665 p.maskmodulo = maskmodulo;
1666 p.masksrcx = masksrcx;
1667 p.dst = dst;
1668 p.dstMod = dstMod;
1669 p.x = x;
1670 p.y = y;
1671 p.width = width;
1672 p.height = height;
1674 OOP_DoMethod(obj, (OOP_Msg) msg);
1677 VOID HIDD_BM_PutMemPattern24 (OOP_Object *obj,
1678 OOP_Object *gc,
1679 UBYTE *pattern,
1680 WORD patternsrcx,
1681 WORD patternsrcy,
1682 WORD patternheight,
1683 WORD patterndepth,
1684 HIDDT_PixelLUT *patternlut,
1685 BOOL invertpattern,
1686 UBYTE *mask,
1687 ULONG maskmodulo,
1688 WORD masksrcx,
1689 APTR dst,
1690 ULONG dstMod,
1691 WORD x,
1692 WORD y,
1693 WORD width,
1694 WORD height)
1696 STATIC_MID;
1697 struct pHidd_BitMap_PutMemPattern24 p, *msg = &p;
1699 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutMemPattern24);
1701 p.mID = mid;
1702 p.gc = gc;
1703 p.pattern = pattern;
1704 p.patternsrcx = patternsrcx;
1705 p.patternsrcy = patternsrcy;
1706 p.patternheight = patternheight;
1707 p.patterndepth = patterndepth;
1708 p.patternlut = patternlut;
1709 p.invertpattern = invertpattern;
1710 p.mask = mask;
1711 p.maskmodulo = maskmodulo;
1712 p.masksrcx = masksrcx;
1713 p.dst = dst;
1714 p.dstMod = dstMod;
1715 p.x = x;
1716 p.y = y;
1717 p.width = width;
1718 p.height = height;
1720 OOP_DoMethod(obj, (OOP_Msg) msg);
1723 VOID HIDD_BM_PutMemPattern32 (OOP_Object *obj,
1724 OOP_Object *gc,
1725 UBYTE *pattern,
1726 WORD patternsrcx,
1727 WORD patternsrcy,
1728 WORD patternheight,
1729 WORD patterndepth,
1730 HIDDT_PixelLUT *patternlut,
1731 BOOL invertpattern,
1732 UBYTE *mask,
1733 ULONG maskmodulo,
1734 WORD masksrcx,
1735 APTR dst,
1736 ULONG dstMod,
1737 WORD x,
1738 WORD y,
1739 WORD width,
1740 WORD height)
1742 STATIC_MID;
1743 struct pHidd_BitMap_PutMemPattern32 p, *msg = &p;
1745 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutMemPattern32);
1747 p.mID = mid;
1748 p.gc = gc;
1749 p.pattern = pattern;
1750 p.patternsrcx = patternsrcx;
1751 p.patternsrcy = patternsrcy;
1752 p.patternheight = patternheight;
1753 p.patterndepth = patterndepth;
1754 p.patternlut = patternlut;
1755 p.invertpattern = invertpattern;
1756 p.mask = mask;
1757 p.maskmodulo = maskmodulo;
1758 p.masksrcx = masksrcx;
1759 p.dst = dst;
1760 p.dstMod = dstMod;
1761 p.x = x;
1762 p.y = y;
1763 p.width = width;
1764 p.height = height;
1766 OOP_DoMethod(obj, (OOP_Msg) msg);
1769 OOP_Object * HIDD_BM_SetColorMap(OOP_Object *obj, OOP_Object *colorMap)
1771 STATIC_MID;
1772 struct pHidd_BitMap_SetColorMap p, *msg = &p;
1774 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_SetColorMap);
1776 p.mID = mid;
1777 p.colorMap = colorMap;
1779 return (OOP_Object *)OOP_DoMethod(obj, (OOP_Msg)msg);
1783 BOOL HIDD_BM_ObtainDirectAccess(OOP_Object *obj
1784 , UBYTE **addressReturn
1785 , ULONG *widthReturn
1786 , ULONG *heightReturn
1787 , ULONG *bankSizeReturn
1788 , ULONG *memSizeReturn )
1790 STATIC_MID;
1791 struct pHidd_BitMap_ObtainDirectAccess p, *msg = &p;
1793 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_ObtainDirectAccess);
1795 p.mID = mid;
1796 p.addressReturn = addressReturn;
1797 p.widthReturn = widthReturn;
1798 p.heightReturn = heightReturn;
1799 p.bankSizeReturn = bankSizeReturn;
1800 p.memSizeReturn = memSizeReturn;
1802 /* Clear this by default */
1803 *addressReturn = NULL;
1805 return (BOOL)OOP_DoMethod(obj, (OOP_Msg)msg);
1808 VOID HIDD_BM_ReleaseDirectAccess(OOP_Object *obj)
1810 STATIC_MID;
1811 struct pHidd_BitMap_ReleaseDirectAccess p, *msg = &p;
1813 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_ReleaseDirectAccess);
1815 p.mID = mid;
1817 OOP_DoMethod(obj, (OOP_Msg)msg);
1819 return;
1822 VOID HIDD_BM_BitMapScale(OOP_Object *obj, OOP_Object *src, OOP_Object *dest, struct BitScaleArgs * bsa, OOP_Object *gc)
1824 STATIC_MID;
1825 struct pHidd_BitMap_BitMapScale p, *msg = &p;
1827 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_BitMapScale);
1829 p.mID = mid;
1830 p.src = src;
1831 p.dst = dest;
1832 p.bsa = bsa;
1833 p.gc = gc;
1835 OOP_DoMethod(obj, (OOP_Msg) msg);
1838 HIDDT_RGBConversionFunction HIDD_BM_SetRGBConversionFunction(OOP_Object *obj, HIDDT_StdPixFmt srcPixFmt, HIDDT_StdPixFmt dstPixFmt,
1839 HIDDT_RGBConversionFunction function)
1841 STATIC_MID;
1842 struct pHidd_BitMap_SetRGBConversionFunction p, *msg = &p;
1844 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_SetRGBConversionFunction);
1846 p.mID = mid;
1847 p.srcPixFmt = srcPixFmt;
1848 p.dstPixFmt = dstPixFmt;
1849 p.function = function;
1851 return (HIDDT_RGBConversionFunction) OOP_DoMethod(obj, (OOP_Msg) msg);
1854 /********* GC *****************************************/
1855 VOID HIDD_GC_SetClipRect(OOP_Object *obj, LONG x1, LONG y1, LONG x2, LONG y2)
1857 STATIC_MID;
1858 struct pHidd_GC_SetClipRect p, *msg = &p;
1860 if(!mid) mid = OOP_GetMethodID(IID_Hidd_GC, moHidd_GC_SetClipRect);
1862 p.mID = mid;
1863 p.x1 = x1;
1864 p.y1 = y1;
1865 p.x2 = x2;
1866 p.y2 = y2;
1868 OOP_DoMethod(obj, (OOP_Msg)msg);
1872 VOID HIDD_GC_UnsetClipRect(OOP_Object *obj)
1874 STATIC_MID;
1875 struct pHidd_GC_UnsetClipRect p, *msg = &p;
1877 if(!mid) mid = OOP_GetMethodID(IID_Hidd_GC, moHidd_GC_UnsetClipRect);
1879 p.mID = mid;
1881 OOP_DoMethod(obj, (OOP_Msg)msg);
1884 /********* PlanarBM **********************************/
1885 BOOL HIDD_PlanarBM_SetBitMap(OOP_Object *obj, struct BitMap *bitMap)
1887 STATIC_MID;
1888 struct pHidd_PlanarBM_SetBitMap p, *msg = &p;
1890 if(!mid) mid = OOP_GetMethodID(IID_Hidd_PlanarBM, moHidd_PlanarBM_SetBitMap);
1892 p.mID = mid;
1893 p.bitMap = bitMap;
1895 return (BOOL)OOP_DoMethod(obj, (OOP_Msg)msg);
1899 /********* ColorMap *********************************/
1901 BOOL HIDD_CM_SetColors(OOP_Object *obj, HIDDT_Color *colors, ULONG firstColor, ULONG numColors, OOP_Object *pixFmt)
1903 STATIC_MID;
1904 struct pHidd_ColorMap_SetColors p, *msg = &p;
1906 if(!mid) mid = OOP_GetMethodID(IID_Hidd_ColorMap, moHidd_ColorMap_SetColors);
1908 p.mID = mid;
1909 p.colors = colors;
1910 p.firstColor = firstColor;
1911 p.numColors = numColors;
1912 p.pixFmt = pixFmt;
1914 return OOP_DoMethod(obj, (OOP_Msg)msg);
1917 HIDDT_Pixel HIDD_CM_GetPixel(OOP_Object *obj, ULONG pixelNo) /* Starts at 0 */
1919 STATIC_MID;
1920 struct pHidd_ColorMap_GetPixel p, *msg = &p;
1922 if(!mid) mid = OOP_GetMethodID(IID_Hidd_ColorMap, moHidd_ColorMap_GetPixel);
1924 p.mID = mid;
1925 p.pixelNo = pixelNo;
1927 return (HIDDT_Pixel)OOP_DoMethod(obj, (OOP_Msg)msg);
1931 BOOL HIDD_CM_GetColor(OOP_Object *obj, ULONG colorNo, HIDDT_Color *colorReturn) /* Starts at 0 */
1933 STATIC_MID;
1934 struct pHidd_ColorMap_GetColor p, *msg = &p;
1936 if(!mid) mid = OOP_GetMethodID(IID_Hidd_ColorMap, moHidd_ColorMap_GetColor);
1938 p.mID = mid;
1939 p.colorNo = colorNo;
1940 p.colorReturn = colorReturn;
1942 return (BOOL)OOP_DoMethod(obj, (OOP_Msg)msg);