New bitmap method SetRGBConversionFunction which can be used to
[tangerine.git] / workbench / hidds / graphics / graphics_stubs.c
blob4b7d32513e417523ae6ccd8a61d4d1f8deb4c01a
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;
184 if(!mid) mid = OOP_GetMethodID(IID_Hidd_Gfx, moHidd_Gfx_GetMode);
186 p.mID = mid;
188 p.modeID = modeID;
189 p.syncPtr = syncPtr;
190 p.pixFmtPtr = pixFmtPtr;
192 return (BOOL)OOP_DoMethod(obj, (OOP_Msg) msg);
196 /***************************************************************/
197 HIDDT_ModeID HIDD_Gfx_NextModeID(OOP_Object *obj, HIDDT_ModeID modeID, OOP_Object **syncPtr, OOP_Object **pixFmtPtr)
199 STATIC_MID;
200 struct pHidd_Gfx_NextModeID p, *msg = &p;
202 if(!mid) mid = OOP_GetMethodID(IID_Hidd_Gfx, moHidd_Gfx_NextModeID);
204 p.mID = mid;
206 p.modeID = modeID;
207 p.syncPtr = syncPtr;
208 p.pixFmtPtr = pixFmtPtr;
210 return (HIDDT_ModeID)OOP_DoMethod(obj, (OOP_Msg) msg);
214 /***************************************************************/
216 BOOL HIDD_Gfx_SetCursorShape(OOP_Object *obj, OOP_Object *shape)
218 STATIC_MID;
219 struct pHidd_Gfx_SetCursorShape p, *msg = &p;
221 if(!mid) mid = OOP_GetMethodID(IID_Hidd_Gfx, moHidd_Gfx_SetCursorShape);
223 p.mID = mid;
224 p.shape = shape;
226 return (BOOL)OOP_DoMethod(obj, (OOP_Msg) msg);
230 /***************************************************************/
232 BOOL HIDD_Gfx_SetCursorPos(OOP_Object *obj, LONG x, LONG y)
234 STATIC_MID;
235 struct pHidd_Gfx_SetCursorPos p, *msg = &p;
237 if(!mid) mid = OOP_GetMethodID(IID_Hidd_Gfx, moHidd_Gfx_SetCursorPos);
239 p.mID = mid;
241 p.x = x;
242 p.y = y;
244 return (BOOL)OOP_DoMethod(obj, (OOP_Msg) msg);
248 /***************************************************************/
250 VOID HIDD_Gfx_SetCursorVisible(OOP_Object *obj, BOOL visible)
252 STATIC_MID;
253 struct pHidd_Gfx_SetCursorVisible p, *msg = &p;
255 if(!mid) mid = OOP_GetMethodID(IID_Hidd_Gfx, moHidd_Gfx_SetCursorVisible);
257 p.mID = mid;
259 p.visible = visible;
261 OOP_DoMethod(obj, (OOP_Msg) msg);
263 return;
267 /***************************************************************/
269 BOOL HIDD_Gfx_SetMode(OOP_Object *obj, HIDDT_ModeID modeID)
271 STATIC_MID;
272 struct pHidd_Gfx_SetMode p, *msg = &p;
274 if(!mid) mid = OOP_GetMethodID(IID_Hidd_Gfx, moHidd_Gfx_SetMode);
276 p.mID = mid;
278 p.modeID = modeID;
280 return (BOOL)OOP_DoMethod(obj, (OOP_Msg) msg);
285 /***************************************************************/
287 OOP_Object *HIDD_Gfx_Show(OOP_Object *obj, OOP_Object *bitMap, ULONG flags)
289 STATIC_MID;
290 struct pHidd_Gfx_Show p, *msg = &p;
292 if(!mid) mid = OOP_GetMethodID(IID_Hidd_Gfx, moHidd_Gfx_Show);
294 p.mID = mid;
296 p.bitMap = bitMap;
297 p.flags = flags;
299 return (OOP_Object *)OOP_DoMethod(obj, (OOP_Msg) msg);
303 /***************************************************************/
304 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)
306 STATIC_MID;
307 struct pHidd_Gfx_CopyBox p, *msg = &p;
309 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_Gfx_CopyBox);
311 p.mID = mid;
312 p.src = src;
313 p.srcX = srcX;
314 p.srcY = srcY;
315 p.dest = dest;
316 p.destX = destX;
317 p.destY = destY;
318 p.width = width;
319 p.height = height;
320 p.gc = gc;
322 OOP_DoMethod(obj, (OOP_Msg) msg);
326 /***************************************************************/
328 BOOL HIDD_BM_SetColors (OOP_Object *obj, HIDDT_Color *colors, ULONG firstColor, ULONG numColors)
330 STATIC_MID;
331 struct pHidd_BitMap_SetColors p, *msg = &p;
333 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_SetColors);
335 p.mID = mid;
336 p.colors = colors;
337 p.firstColor = firstColor;
338 p.numColors = numColors;
340 return OOP_DoMethod(obj, (OOP_Msg) msg);
344 /***************************************************************/
346 ULONG HIDD_BM_PutPixel(OOP_Object *obj, WORD x, WORD y, ULONG val)
348 STATIC_MID;
349 struct pHidd_BitMap_PutPixel p, *msg = &p;
351 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutPixel);
353 p.mID = mid;
354 p.x = x;
355 p.y = y;
356 p.pixel = val;
358 return(OOP_DoMethod(obj, (OOP_Msg) msg));
360 /***************************************************************/
362 ULONG HIDD_BM_DrawPixel(OOP_Object *obj, OOP_Object *gc, WORD x, WORD y)
364 STATIC_MID;
365 struct pHidd_BitMap_DrawPixel p, *msg = &p;
367 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_DrawPixel);
369 p.mID = mid;
370 p.gc = gc;
371 p.x = x;
372 p.y = y;
374 return(OOP_DoMethod(obj, (OOP_Msg) msg));
376 /***************************************************************/
378 ULONG HIDD_BM_GetPixel(OOP_Object *obj, WORD x, WORD y)
380 STATIC_MID;
381 struct pHidd_BitMap_GetPixel p, *msg = &p;
383 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_GetPixel);
385 p.mID = mid;
386 p.x = x;
387 p.y = y;
389 return(OOP_DoMethod(obj, (OOP_Msg) msg));
391 /***************************************************************/
393 VOID HIDD_BM_DrawLine(OOP_Object *obj, OOP_Object *gc, WORD x1, WORD y1, WORD x2, WORD y2)
395 STATIC_MID;
396 struct pHidd_BitMap_DrawLine p, *msg = &p;
398 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_DrawLine);
400 p.mID = mid;
401 p.gc = gc;
402 p.x1 = x1;
403 p.y1 = y1;
404 p.x2 = x2;
405 p.y2 = y2;
407 OOP_DoMethod(obj, (OOP_Msg) msg);
409 /***************************************************************/
412 VOID HIDD_BM_DrawRect (OOP_Object *obj, OOP_Object *gc, WORD minX, WORD minY, WORD maxX, WORD maxY)
414 STATIC_MID;
415 struct pHidd_BitMap_DrawRect p, *msg = &p;
417 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_DrawRect);
419 p.mID = mid;
420 p.gc = gc;
421 p.minX = minX;
422 p.minY = minY;
423 p.maxX = maxX;
424 p.maxY = maxY;
426 OOP_DoMethod(obj, (OOP_Msg) msg);
428 /***************************************************************/
430 VOID HIDD_BM_FillRect (OOP_Object *obj, OOP_Object *gc, WORD minX, WORD minY, WORD maxX, WORD maxY)
432 STATIC_MID;
433 struct pHidd_BitMap_DrawRect p, *msg = &p;
435 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_FillRect);
437 p.mID = mid;
438 p.gc = gc;
439 p.minX = minX;
440 p.minY = minY;
441 p.maxX = maxX;
442 p.maxY = maxY;
444 OOP_DoMethod(obj, (OOP_Msg) msg);
446 /***************************************************************/
448 VOID HIDD_BM_DrawEllipse (OOP_Object *obj, OOP_Object *gc, WORD x, WORD y, WORD rx, WORD ry)
450 STATIC_MID;
451 struct pHidd_BitMap_DrawEllipse p, *msg = &p;
453 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_DrawEllipse);
455 p.mID = mid;
456 p.gc = gc;
457 p.x = x;
458 p.y = y;
459 p.rx = rx;
460 p.ry = ry;
462 OOP_DoMethod(obj, (OOP_Msg) msg);
464 /***************************************************************/
466 VOID HIDD_BM_FillEllipse (OOP_Object *obj, OOP_Object *gc, WORD x, WORD y, WORD ry, WORD rx)
468 STATIC_MID;
469 struct pHidd_BitMap_DrawEllipse p, *msg = &p;
471 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_FillEllipse);
473 p.mID = mid;
474 p.gc = gc;
475 p.x = x;
476 p.y = y;
477 p.rx = rx;
478 p.ry = ry;
480 OOP_DoMethod(obj, (OOP_Msg) msg);
482 /***************************************************************/
484 VOID HIDD_BM_DrawPolygon (OOP_Object *obj, OOP_Object *gc, UWORD n, WORD *coords)
486 STATIC_MID;
487 struct pHidd_BitMap_DrawPolygon p, *msg = &p;
489 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_DrawPolygon);
491 p.mID = mid;
492 p.gc = gc;
493 p.n = n;
494 p.coords = coords;
496 OOP_DoMethod(obj, (OOP_Msg) msg);
498 /***************************************************************/
500 VOID HIDD_BM_FillPolygon (OOP_Object *obj, OOP_Object *gc, UWORD n, WORD *coords)
502 STATIC_MID;
503 struct pHidd_BitMap_DrawPolygon p, *msg = &p;
505 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_FillPolygon);
507 p.mID = mid;
508 p.gc = gc;
509 p.n = n;
510 p.coords = coords;
512 OOP_DoMethod(obj, (OOP_Msg) msg);
514 /***************************************************************/
516 VOID HIDD_BM_DrawText (OOP_Object *obj, OOP_Object *gc, WORD x, WORD y, STRPTR text, UWORD length)
518 STATIC_MID;
519 struct pHidd_BitMap_DrawText p, *msg = &p;
521 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_DrawText);
523 p.mID = mid;
524 p.gc = gc;
525 p.x = x;
526 p.y = y;
527 p.text = text;
528 p.length = length;
530 OOP_DoMethod(obj, (OOP_Msg) msg);
532 /***************************************************************/
534 VOID HIDD_BM_FillText (OOP_Object *obj, OOP_Object *gc, WORD x, WORD y, STRPTR text, UWORD length)
536 STATIC_MID;
537 struct pHidd_BitMap_DrawText p, *msg = &p;
539 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_FillText);
541 p.mID = mid;
542 p.gc = gc;
543 p.x = x;
544 p.y = y;
545 p.text = text;
546 p.length = length;
548 OOP_DoMethod(obj, (OOP_Msg) msg);
550 /***************************************************************/
552 VOID HIDD_BM_Clear (OOP_Object *obj, OOP_Object *gc)
554 STATIC_MID;
555 struct pHidd_BitMap_Clear p, *msg = &p;
557 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_Clear);
559 p.mID = mid;
560 p.gc = gc;
562 OOP_DoMethod(obj, (OOP_Msg) msg);
565 /***************************************************************/
567 VOID HIDD_BM_GetImage (OOP_Object *obj
568 , UBYTE *pixels
569 , ULONG modulo
570 , WORD x, WORD y
571 , WORD width, WORD height
572 , HIDDT_StdPixFmt pixFmt)
574 STATIC_MID;
575 struct pHidd_BitMap_GetImage p, *msg = &p;
577 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_GetImage);
579 p.mID = mid;
580 p.pixels = pixels;
581 p.modulo = modulo;
582 p.x = x;
583 p.y = y;
584 p.width = width;
585 p.height = height;
587 p.pixFmt = pixFmt;
591 OOP_DoMethod(obj, (OOP_Msg) msg);
594 /***************************************************************/
596 VOID HIDD_BM_PutImage (OOP_Object *obj
597 , OOP_Object *gc
598 , UBYTE *pixels
599 , ULONG modulo
600 , WORD x, WORD y
601 , WORD width, WORD height
602 , HIDDT_StdPixFmt pixFmt)
604 STATIC_MID;
605 struct pHidd_BitMap_PutImage p, *msg = &p;
607 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutImage);
609 p.mID = mid;
610 p.gc = gc;
611 p.pixels = pixels;
612 p.modulo = modulo;
613 p.x = x;
614 p.y = y;
615 p.width = width;
616 p.height = height;
617 p.pixFmt = pixFmt;
619 OOP_DoMethod(obj, (OOP_Msg) msg);
622 /***************************************************************/
624 VOID HIDD_BM_PutAlphaImage (OOP_Object *obj
625 , OOP_Object *gc
626 , UBYTE *pixels
627 , ULONG modulo
628 , WORD x, WORD y
629 , WORD width, WORD height)
631 STATIC_MID;
632 struct pHidd_BitMap_PutAlphaImage p, *msg = &p;
634 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutAlphaImage);
636 p.mID = mid;
637 p.gc = gc;
638 p.pixels = pixels;
639 p.modulo = modulo;
640 p.x = x;
641 p.y = y;
642 p.width = width;
643 p.height = height;
645 OOP_DoMethod(obj, (OOP_Msg) msg);
648 /***************************************************************/
650 VOID HIDD_BM_PutTemplate (OOP_Object *obj
651 , OOP_Object *gc
652 , UBYTE *template
653 , ULONG modulo
654 , WORD srcx
655 , WORD x, WORD y
656 , WORD width, WORD height
657 , BOOL inverttemplate)
659 STATIC_MID;
660 struct pHidd_BitMap_PutTemplate p, *msg = &p;
662 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutTemplate);
664 p.mID = mid;
665 p.gc = gc;
666 p.template = template;
667 p.modulo = modulo;
668 p.srcx = srcx;
669 p.x = x;
670 p.y = y;
671 p.width = width;
672 p.height = height;
673 p.inverttemplate = inverttemplate;
675 OOP_DoMethod(obj, (OOP_Msg) msg);
678 /***************************************************************/
680 VOID HIDD_BM_PutAlphaTemplate (OOP_Object *obj
681 , OOP_Object *gc
682 , UBYTE *alpha
683 , ULONG modulo
684 , WORD x, WORD y
685 , WORD width, WORD height
686 , BOOL invertalpha)
688 STATIC_MID;
689 struct pHidd_BitMap_PutAlphaTemplate p, *msg = &p;
691 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutAlphaTemplate);
693 p.mID = mid;
694 p.gc = gc;
695 p.alpha = alpha;
696 p.modulo = modulo;
697 p.x = x;
698 p.y = y;
699 p.width = width;
700 p.height = height;
701 p.invertalpha = invertalpha;
703 OOP_DoMethod(obj, (OOP_Msg) msg);
706 /***************************************************************/
708 VOID HIDD_BM_PutPattern(OOP_Object *obj, OOP_Object *gc, UBYTE *pattern,
709 WORD patternsrcx, WORD patternsrcy, WORD patternheight,
710 WORD patterndepth, HIDDT_PixelLUT *patternlut,
711 BOOL invertpattern, UBYTE *mask, ULONG maskmodulo,
712 WORD masksrcx, WORD x, WORD y, WORD width, WORD height)
714 STATIC_MID;
715 struct pHidd_BitMap_PutPattern p, *msg = &p;
717 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutPattern);
719 p.mID = mid;
720 p.gc = gc;
721 p.pattern = pattern;
722 p.patternsrcx = patternsrcx;
723 p.patternsrcy = patternsrcy;
724 p.patternheight = patternheight;
725 p.patterndepth = patterndepth;
726 p.patternlut = patternlut;
727 p.invertpattern = invertpattern;
728 p.mask = mask;
729 p.maskmodulo = maskmodulo;
730 p.masksrcx = masksrcx;
731 p.x = x;
732 p.y = y;
733 p.width = width;
734 p.height = height;
736 OOP_DoMethod(obj, (OOP_Msg) msg);
739 /***************************************************************/
741 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)
743 STATIC_MID;
744 struct pHidd_BitMap_BlitColorExpansion p, *msg = &p;
746 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_BlitColorExpansion);
748 p.mID = mid;
749 p.gc = gc;
750 p.srcBitMap = srcBitMap;
751 p.srcX = srcX;
752 p.srcY = srcY;
753 p.destX = destX;
754 p.destY = destY;
755 p.width = width;
756 p.height = height;
758 OOP_DoMethod(obj, (OOP_Msg) msg);
761 /***************************************************************/
763 HIDDT_Pixel HIDD_BM_MapColor(OOP_Object *obj, HIDDT_Color *color)
765 STATIC_MID;
766 struct pHidd_BitMap_MapColor p, *msg = &p;
768 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_MapColor);
770 p.mID = mid;
771 p.color = color;
774 return OOP_DoMethod(obj, (OOP_Msg)msg);
777 /***************************************************************/
779 VOID HIDD_BM_UnmapPixel(OOP_Object *obj, HIDDT_Pixel pixel, HIDDT_Color *color)
781 STATIC_MID;
782 struct pHidd_BitMap_UnmapPixel p, *msg = &p;
784 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_UnmapPixel);
786 p.mID = mid;
787 p.pixel = pixel;
788 p.color = color;
790 OOP_DoMethod(obj, (OOP_Msg)msg);
794 /***************************************************************/
796 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)
798 STATIC_MID;
799 struct pHidd_BitMap_PutImageLUT p, *msg = &p;
801 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutImageLUT);
803 p.mID = mid;
804 p.gc = gc;
805 p.pixels = pixels;
806 p.modulo = modulo;
807 p.x = x;
808 p.y = y;
809 p.width = width;
810 p.height = height;
811 p.pixlut = pixlut;
813 OOP_DoMethod(obj, (OOP_Msg) msg);
816 /***************************************************************/
818 VOID HIDD_BM_PutTranspImageLUT (OOP_Object *obj, OOP_Object *gc, UBYTE *pixels,
819 ULONG modulo, WORD x, WORD y, WORD width, WORD height,
820 HIDDT_PixelLUT *pixlut, UBYTE transparent)
822 STATIC_MID;
823 struct pHidd_BitMap_PutTranspImageLUT p, *msg = &p;
825 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutTranspImageLUT);
827 p.mID = mid;
828 p.gc = gc;
829 p.pixels = pixels;
830 p.modulo = modulo;
831 p.x = x;
832 p.y = y;
833 p.width = width;
834 p.height = height;
835 p.pixlut = pixlut;
836 p.transparent = transparent;
838 OOP_DoMethod(obj, (OOP_Msg) msg);
842 /***************************************************************/
844 VOID HIDD_BM_GetImageLUT (OOP_Object *obj, UBYTE *pixels, ULONG modulo, WORD x, WORD y, WORD width, WORD height, HIDDT_PixelLUT *pixlut)
846 STATIC_MID;
847 struct pHidd_BitMap_GetImageLUT p, *msg = &p;
849 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_GetImageLUT);
851 p.mID = mid;
852 p.pixels = pixels;
853 p.modulo = modulo;
854 p.x = x;
855 p.y = y;
856 p.width = width;
857 p.height = height;
858 p.pixlut = pixlut;
860 OOP_DoMethod(obj, (OOP_Msg) msg);
864 ULONG HIDD_BM_BytesPerLine(OOP_Object *obj, HIDDT_StdPixFmt pixFmt, ULONG width)
866 STATIC_MID;
867 struct pHidd_BitMap_BytesPerLine p, *msg = &p;
869 if (!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_BytesPerLine);
871 p.mID = mid;
872 p.pixFmt = pixFmt;
873 p.width = width;
875 return OOP_DoMethod(obj, (OOP_Msg) msg);
879 /***************************************************************/
882 VOID HIDD_BM_ConvertPixels (OOP_Object *obj
883 , APTR *srcPixels
884 , HIDDT_PixelFormat *srcPixFmt
885 , ULONG srcMod
886 , APTR *dstBuf
887 , HIDDT_PixelFormat *dstPixFmt
888 , ULONG dstMod
889 , ULONG width, ULONG height
890 , HIDDT_PixelLUT *pixlut
893 STATIC_MID;
894 struct pHidd_BitMap_ConvertPixels p, *msg = &p;
896 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_ConvertPixels);
898 p.mID = mid;
899 p.srcPixFmt = srcPixFmt;
900 p.srcPixels = srcPixels;
902 p.srcMod = srcMod;
904 p.dstBuf = dstBuf;
905 p.dstPixFmt = dstPixFmt;
907 p.dstMod = dstMod;
909 p.width = width;
910 p.height = height;
912 p.pixlut = pixlut;
914 OOP_DoMethod(obj, (OOP_Msg) msg);
917 VOID HIDD_BM_FillMemRect8 (OOP_Object *obj
918 , APTR dstBuf
919 , WORD minX
920 , WORD minY
921 , WORD maxX
922 , WORD maxY
923 , ULONG dstMod
924 , UBYTE fill
927 STATIC_MID;
928 struct pHidd_BitMap_FillMemRect8 p, *msg = &p;
930 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_FillMemRect8);
932 p.mID = mid;
933 p.dstBuf = dstBuf;
934 p.minX = minX;
935 p.minY = minY;
936 p.maxX = maxX;
937 p.maxY = maxY;
938 p.dstMod = dstMod;
939 p.fill = fill;
941 OOP_DoMethod(obj, (OOP_Msg) msg);
944 VOID HIDD_BM_FillMemRect16(OOP_Object *obj
945 , APTR dstBuf
946 , WORD minX
947 , WORD minY
948 , WORD maxX
949 , WORD maxY
950 , ULONG dstMod
951 , UWORD fill
954 STATIC_MID;
955 struct pHidd_BitMap_FillMemRect16 p, *msg = &p;
957 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_FillMemRect16);
959 p.mID = mid;
960 p.dstBuf = dstBuf;
961 p.minX = minX;
962 p.minY = minY;
963 p.maxX = maxX;
964 p.maxY = maxY;
965 p.dstMod = dstMod;
966 p.fill = fill;
968 OOP_DoMethod(obj, (OOP_Msg) msg);
971 VOID HIDD_BM_FillMemRect24 (OOP_Object *obj
972 , APTR dstBuf
973 , WORD minX
974 , WORD minY
975 , WORD maxX
976 , WORD maxY
977 , ULONG dstMod
978 , ULONG fill
981 STATIC_MID;
982 struct pHidd_BitMap_FillMemRect24 p, *msg = &p;
984 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_FillMemRect24);
986 p.mID = mid;
987 p.dstBuf = dstBuf;
988 p.minX = minX;
989 p.minY = minY;
990 p.maxX = maxX;
991 p.maxY = maxY;
992 p.dstMod = dstMod;
993 p.fill = fill;
995 OOP_DoMethod(obj, (OOP_Msg) msg);
998 VOID HIDD_BM_FillMemRect32 (OOP_Object *obj
999 , APTR dstBuf
1000 , WORD minX
1001 , WORD minY
1002 , WORD maxX
1003 , WORD maxY
1004 , ULONG dstMod
1005 , ULONG fill
1008 STATIC_MID;
1009 struct pHidd_BitMap_FillMemRect32 p, *msg = &p;
1011 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_FillMemRect32);
1013 p.mID = mid;
1014 p.dstBuf = dstBuf;
1015 p.minX = minX;
1016 p.minY = minY;
1017 p.maxX = maxX;
1018 p.maxY = maxY;
1019 p.dstMod = dstMod;
1020 p.fill = fill;
1022 OOP_DoMethod(obj, (OOP_Msg) msg);
1026 VOID HIDD_BM_InvertMemRect(OOP_Object *obj
1027 , APTR dstBuf
1028 , WORD minX
1029 , WORD minY
1030 , WORD maxX
1031 , WORD maxY
1032 , ULONG dstMod
1035 STATIC_MID;
1036 struct pHidd_BitMap_InvertMemRect p, *msg = &p;
1038 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_InvertMemRect);
1040 p.mID = mid;
1041 p.dstBuf = dstBuf;
1042 p.minX = minX;
1043 p.minY = minY;
1044 p.maxX = maxX;
1045 p.maxY = maxY;
1046 p.dstMod = dstMod;
1048 OOP_DoMethod(obj, (OOP_Msg) msg);
1052 VOID HIDD_BM_CopyMemBox8(OOP_Object *obj
1053 , APTR src
1054 , WORD srcX
1055 , WORD srcY
1056 , APTR dst
1057 , WORD dstX
1058 , WORD dstY
1059 , UWORD width
1060 , UWORD height
1061 , ULONG srcMod
1062 , ULONG dstMod)
1064 STATIC_MID;
1065 struct pHidd_BitMap_CopyMemBox8 p, *msg = &p;
1067 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_CopyMemBox8);
1069 p.mID = mid;
1070 p.src = src;
1071 p.srcX = srcX;
1072 p.srcY = srcY;
1073 p.dst = dst;
1074 p.dstX = dstX;
1075 p.dstY = dstY;
1076 p.width = width;
1077 p.height = height;
1078 p.srcMod = srcMod;
1079 p.dstMod = dstMod;
1081 OOP_DoMethod(obj, (OOP_Msg) msg);
1084 VOID HIDD_BM_CopyMemBox16(OOP_Object *obj
1085 , APTR src
1086 , WORD srcX
1087 , WORD srcY
1088 , APTR dst
1089 , WORD dstX
1090 , WORD dstY
1091 , UWORD width
1092 , UWORD height
1093 , ULONG srcMod
1094 , ULONG dstMod)
1096 STATIC_MID;
1097 struct pHidd_BitMap_CopyMemBox16 p, *msg = &p;
1099 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_CopyMemBox16);
1101 p.mID = mid;
1102 p.src = src;
1103 p.srcX = srcX;
1104 p.srcY = srcY;
1105 p.dst = dst;
1106 p.dstX = dstX;
1107 p.dstY = dstY;
1108 p.width = width;
1109 p.height = height;
1110 p.srcMod = srcMod;
1111 p.dstMod = dstMod;
1113 OOP_DoMethod(obj, (OOP_Msg) msg);
1116 VOID HIDD_BM_CopyMemBox24(OOP_Object *obj
1117 , APTR src
1118 , WORD srcX
1119 , WORD srcY
1120 , APTR dst
1121 , WORD dstX
1122 , WORD dstY
1123 , UWORD width
1124 , UWORD height
1125 , ULONG srcMod
1126 , ULONG dstMod)
1128 STATIC_MID;
1129 struct pHidd_BitMap_CopyMemBox24 p, *msg = &p;
1131 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_CopyMemBox24);
1133 p.mID = mid;
1134 p.src = src;
1135 p.srcX = srcX;
1136 p.srcY = srcY;
1137 p.dst = dst;
1138 p.dstX = dstX;
1139 p.dstY = dstY;
1140 p.width = width;
1141 p.height = height;
1142 p.srcMod = srcMod;
1143 p.dstMod = dstMod;
1145 OOP_DoMethod(obj, (OOP_Msg) msg);
1148 VOID HIDD_BM_CopyMemBox32(OOP_Object *obj
1149 , APTR src
1150 , WORD srcX
1151 , WORD srcY
1152 , APTR dst
1153 , WORD dstX
1154 , WORD dstY
1155 , UWORD width
1156 , UWORD height
1157 , ULONG srcMod
1158 , ULONG dstMod)
1160 STATIC_MID;
1161 struct pHidd_BitMap_CopyMemBox32 p, *msg = &p;
1163 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_CopyMemBox32);
1165 p.mID = mid;
1166 p.src = src;
1167 p.srcX = srcX;
1168 p.srcY = srcY;
1169 p.dst = dst;
1170 p.dstX = dstX;
1171 p.dstY = dstY;
1172 p.width = width;
1173 p.height = height;
1174 p.srcMod = srcMod;
1175 p.dstMod = dstMod;
1177 OOP_DoMethod(obj, (OOP_Msg) msg);
1180 VOID HIDD_BM_CopyLUTMemBox16(OOP_Object *obj
1181 , APTR src
1182 , WORD srcX
1183 , WORD srcY
1184 , APTR dst
1185 , WORD dstX
1186 , WORD dstY
1187 , UWORD width
1188 , UWORD height
1189 , ULONG srcMod
1190 , ULONG dstMod
1191 , HIDDT_PixelLUT *pixlut)
1193 STATIC_MID;
1194 struct pHidd_BitMap_CopyLUTMemBox16 p, *msg = &p;
1196 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_CopyLUTMemBox16);
1198 p.mID = mid;
1199 p.src = src;
1200 p.srcX = srcX;
1201 p.srcY = srcY;
1202 p.dst = dst;
1203 p.dstX = dstX;
1204 p.dstY = dstY;
1205 p.width = width;
1206 p.height = height;
1207 p.srcMod = srcMod;
1208 p.dstMod = dstMod;
1209 p.pixlut = pixlut;
1211 OOP_DoMethod(obj, (OOP_Msg) msg);
1214 VOID HIDD_BM_CopyLUTMemBox24(OOP_Object *obj
1215 , APTR src
1216 , WORD srcX
1217 , WORD srcY
1218 , APTR dst
1219 , WORD dstX
1220 , WORD dstY
1221 , UWORD width
1222 , UWORD height
1223 , ULONG srcMod
1224 , ULONG dstMod
1225 , HIDDT_PixelLUT *pixlut)
1227 STATIC_MID;
1228 struct pHidd_BitMap_CopyLUTMemBox24 p, *msg = &p;
1230 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_CopyLUTMemBox24);
1232 p.mID = mid;
1233 p.src = src;
1234 p.srcX = srcX;
1235 p.srcY = srcY;
1236 p.dst = dst;
1237 p.dstX = dstX;
1238 p.dstY = dstY;
1239 p.width = width;
1240 p.height = height;
1241 p.srcMod = srcMod;
1242 p.dstMod = dstMod;
1243 p.pixlut = pixlut;
1245 OOP_DoMethod(obj, (OOP_Msg) msg);
1248 VOID HIDD_BM_CopyLUTMemBox32(OOP_Object *obj
1249 , APTR src
1250 , WORD srcX
1251 , WORD srcY
1252 , APTR dst
1253 , WORD dstX
1254 , WORD dstY
1255 , UWORD width
1256 , UWORD height
1257 , ULONG srcMod
1258 , ULONG dstMod
1259 , HIDDT_PixelLUT *pixlut)
1261 STATIC_MID;
1262 struct pHidd_BitMap_CopyLUTMemBox32 p, *msg = &p;
1264 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_CopyLUTMemBox32);
1266 p.mID = mid;
1267 p.src = src;
1268 p.srcX = srcX;
1269 p.srcY = srcY;
1270 p.dst = dst;
1271 p.dstX = dstX;
1272 p.dstY = dstY;
1273 p.width = width;
1274 p.height = height;
1275 p.srcMod = srcMod;
1276 p.dstMod = dstMod;
1277 p.pixlut = pixlut;
1279 OOP_DoMethod(obj, (OOP_Msg) msg);
1282 VOID HIDD_BM_PutMem32Image8(OOP_Object *obj,
1283 APTR src,
1284 APTR dst,
1285 WORD dstX,
1286 WORD dstY,
1287 UWORD width,
1288 UWORD height,
1289 ULONG srcMod,
1290 ULONG dstMod)
1292 STATIC_MID;
1293 struct pHidd_BitMap_PutMem32Image8 p, *msg = &p;
1295 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutMem32Image8);
1297 p.mID = mid;
1298 p.src = src;
1299 p.dst = dst;
1300 p.dstX = dstX;
1301 p.dstY = dstY;
1302 p.width = width;
1303 p.height = height;
1304 p.srcMod = srcMod;
1305 p.dstMod = dstMod;
1307 OOP_DoMethod(obj, (OOP_Msg) msg);
1310 VOID HIDD_BM_PutMem32Image16(OOP_Object *obj,
1311 APTR src,
1312 APTR dst,
1313 WORD dstX,
1314 WORD dstY,
1315 UWORD width,
1316 UWORD height,
1317 ULONG srcMod,
1318 ULONG dstMod)
1320 STATIC_MID;
1321 struct pHidd_BitMap_PutMem32Image16 p, *msg = &p;
1323 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutMem32Image16);
1325 p.mID = mid;
1326 p.src = src;
1327 p.dst = dst;
1328 p.dstX = dstX;
1329 p.dstY = dstY;
1330 p.width = width;
1331 p.height = height;
1332 p.srcMod = srcMod;
1333 p.dstMod = dstMod;
1335 OOP_DoMethod(obj, (OOP_Msg) msg);
1338 VOID HIDD_BM_PutMem32Image24(OOP_Object *obj,
1339 APTR src,
1340 APTR dst,
1341 WORD dstX,
1342 WORD dstY,
1343 UWORD width,
1344 UWORD height,
1345 ULONG srcMod,
1346 ULONG dstMod)
1348 STATIC_MID;
1349 struct pHidd_BitMap_PutMem32Image24 p, *msg = &p;
1351 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutMem32Image24);
1353 p.mID = mid;
1354 p.src = src;
1355 p.dst = dst;
1356 p.dstX = dstX;
1357 p.dstY = dstY;
1358 p.width = width;
1359 p.height = height;
1360 p.srcMod = srcMod;
1361 p.dstMod = dstMod;
1363 OOP_DoMethod(obj, (OOP_Msg) msg);
1366 VOID HIDD_BM_GetMem32Image8(OOP_Object *obj,
1367 APTR src,
1368 WORD srcX,
1369 WORD srcY,
1370 APTR dst,
1371 UWORD width,
1372 UWORD height,
1373 ULONG srcMod,
1374 ULONG dstMod)
1376 STATIC_MID;
1377 struct pHidd_BitMap_GetMem32Image8 p, *msg = &p;
1379 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_GetMem32Image8);
1381 p.mID = mid;
1382 p.src = src;
1383 p.srcX = srcX;
1384 p.srcY = srcY;
1385 p.dst = dst;
1386 p.width = width;
1387 p.height = height;
1388 p.srcMod = srcMod;
1389 p.dstMod = dstMod;
1391 OOP_DoMethod(obj, (OOP_Msg) msg);
1394 VOID HIDD_BM_GetMem32Image16(OOP_Object *obj,
1395 APTR src,
1396 WORD srcX,
1397 WORD srcY,
1398 APTR dst,
1399 UWORD width,
1400 UWORD height,
1401 ULONG srcMod,
1402 ULONG dstMod)
1404 STATIC_MID;
1405 struct pHidd_BitMap_GetMem32Image16 p, *msg = &p;
1407 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_GetMem32Image16);
1409 p.mID = mid;
1410 p.src = src;
1411 p.srcX = srcX;
1412 p.srcY = srcY;
1413 p.dst = dst;
1414 p.width = width;
1415 p.height = height;
1416 p.srcMod = srcMod;
1417 p.dstMod = dstMod;
1419 OOP_DoMethod(obj, (OOP_Msg) msg);
1422 VOID HIDD_BM_GetMem32Image24(OOP_Object *obj,
1423 APTR src,
1424 WORD srcX,
1425 WORD srcY,
1426 APTR dst,
1427 UWORD width,
1428 UWORD height,
1429 ULONG srcMod,
1430 ULONG dstMod)
1432 STATIC_MID;
1433 struct pHidd_BitMap_GetMem32Image24 p, *msg = &p;
1435 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_GetMem32Image24);
1437 p.mID = mid;
1438 p.src = src;
1439 p.srcX = srcX;
1440 p.srcY = srcY;
1441 p.dst = dst;
1442 p.width = width;
1443 p.height = height;
1444 p.srcMod = srcMod;
1445 p.dstMod = dstMod;
1447 OOP_DoMethod(obj, (OOP_Msg) msg);
1450 VOID HIDD_BM_PutMemTemplate8 (OOP_Object *obj,
1451 OOP_Object *gc,
1452 UBYTE *template,
1453 ULONG modulo,
1454 WORD srcx,
1455 APTR dst,
1456 ULONG dstMod,
1457 WORD x,
1458 WORD y,
1459 WORD width,
1460 WORD height,
1461 BOOL inverttemplate)
1463 STATIC_MID;
1464 struct pHidd_BitMap_PutMemTemplate8 p, *msg = &p;
1466 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutMemTemplate8);
1468 p.mID = mid;
1469 p.gc = gc;
1470 p.template = template;
1471 p.modulo = modulo;
1472 p.srcx = srcx;
1473 p.dst = dst;
1474 p.dstMod = dstMod;
1475 p.x = x;
1476 p.y = y;
1477 p.width = width;
1478 p.height = height;
1479 p.inverttemplate = inverttemplate;
1481 OOP_DoMethod(obj, (OOP_Msg) msg);
1484 VOID HIDD_BM_PutMemTemplate16(OOP_Object *obj,
1485 OOP_Object *gc,
1486 UBYTE *template,
1487 ULONG modulo,
1488 WORD srcx,
1489 APTR dst,
1490 ULONG dstMod,
1491 WORD x,
1492 WORD y,
1493 WORD width,
1494 WORD height,
1495 BOOL inverttemplate)
1497 STATIC_MID;
1498 struct pHidd_BitMap_PutMemTemplate16 p, *msg = &p;
1500 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutMemTemplate16);
1502 p.mID = mid;
1503 p.gc = gc;
1504 p.template = template;
1505 p.modulo = modulo;
1506 p.srcx = srcx;
1507 p.dst = dst;
1508 p.dstMod = dstMod;
1509 p.x = x;
1510 p.y = y;
1511 p.width = width;
1512 p.height = height;
1513 p.inverttemplate = inverttemplate;
1515 OOP_DoMethod(obj, (OOP_Msg) msg);
1518 VOID HIDD_BM_PutMemTemplate24(OOP_Object *obj,
1519 OOP_Object *gc,
1520 UBYTE *template,
1521 ULONG modulo,
1522 WORD srcx,
1523 APTR dst,
1524 ULONG dstMod,
1525 WORD x,
1526 WORD y,
1527 WORD width,
1528 WORD height,
1529 BOOL inverttemplate)
1531 STATIC_MID;
1532 struct pHidd_BitMap_PutMemTemplate24 p, *msg = &p;
1534 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutMemTemplate24);
1536 p.mID = mid;
1537 p.gc = gc;
1538 p.template = template;
1539 p.modulo = modulo;
1540 p.srcx = srcx;
1541 p.dst = dst;
1542 p.dstMod = dstMod;
1543 p.x = x;
1544 p.y = y;
1545 p.width = width;
1546 p.height = height;
1547 p.inverttemplate = inverttemplate;
1549 OOP_DoMethod(obj, (OOP_Msg) msg);
1552 VOID HIDD_BM_PutMemTemplate32(OOP_Object *obj,
1553 OOP_Object *gc,
1554 UBYTE *template,
1555 ULONG modulo,
1556 WORD srcx,
1557 APTR dst,
1558 ULONG dstMod,
1559 WORD x,
1560 WORD y,
1561 WORD width,
1562 WORD height,
1563 BOOL inverttemplate)
1565 STATIC_MID;
1566 struct pHidd_BitMap_PutMemTemplate32 p, *msg = &p;
1568 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutMemTemplate32);
1570 p.mID = mid;
1571 p.gc = gc;
1572 p.template = template;
1573 p.modulo = modulo;
1574 p.srcx = srcx;
1575 p.dst = dst;
1576 p.dstMod = dstMod;
1577 p.x = x;
1578 p.y = y;
1579 p.width = width;
1580 p.height = height;
1581 p.inverttemplate = inverttemplate;
1583 OOP_DoMethod(obj, (OOP_Msg) msg);
1586 VOID HIDD_BM_PutMemPattern8 (OOP_Object *obj,
1587 OOP_Object *gc,
1588 UBYTE *pattern,
1589 WORD patternsrcx,
1590 WORD patternsrcy,
1591 WORD patternheight,
1592 WORD patterndepth,
1593 HIDDT_PixelLUT *patternlut,
1594 BOOL invertpattern,
1595 UBYTE *mask,
1596 ULONG maskmodulo,
1597 WORD masksrcx,
1598 APTR dst,
1599 ULONG dstMod,
1600 WORD x,
1601 WORD y,
1602 WORD width,
1603 WORD height)
1605 STATIC_MID;
1606 struct pHidd_BitMap_PutMemPattern8 p, *msg = &p;
1608 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutMemPattern8);
1610 p.mID = mid;
1611 p.gc = gc;
1612 p.pattern = pattern;
1613 p.patternsrcx = patternsrcx;
1614 p.patternsrcy = patternsrcy;
1615 p.patternheight = patternheight;
1616 p.patterndepth = patterndepth;
1617 p.patternlut = patternlut;
1618 p.invertpattern = invertpattern;
1619 p.mask = mask;
1620 p.maskmodulo = maskmodulo;
1621 p.masksrcx = masksrcx;
1622 p.dst = dst;
1623 p.dstMod = dstMod;
1624 p.x = x;
1625 p.y = y;
1626 p.width = width;
1627 p.height = height;
1629 OOP_DoMethod(obj, (OOP_Msg) msg);
1632 VOID HIDD_BM_PutMemPattern16 (OOP_Object *obj,
1633 OOP_Object *gc,
1634 UBYTE *pattern,
1635 WORD patternsrcx,
1636 WORD patternsrcy,
1637 WORD patternheight,
1638 WORD patterndepth,
1639 HIDDT_PixelLUT *patternlut,
1640 BOOL invertpattern,
1641 UBYTE *mask,
1642 ULONG maskmodulo,
1643 WORD masksrcx,
1644 APTR dst,
1645 ULONG dstMod,
1646 WORD x,
1647 WORD y,
1648 WORD width,
1649 WORD height)
1651 STATIC_MID;
1652 struct pHidd_BitMap_PutMemPattern16 p, *msg = &p;
1654 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutMemPattern16);
1656 p.mID = mid;
1657 p.gc = gc;
1658 p.pattern = pattern;
1659 p.patternsrcx = patternsrcx;
1660 p.patternsrcy = patternsrcy;
1661 p.patternheight = patternheight;
1662 p.patterndepth = patterndepth;
1663 p.patternlut = patternlut;
1664 p.invertpattern = invertpattern;
1665 p.mask = mask;
1666 p.maskmodulo = maskmodulo;
1667 p.masksrcx = masksrcx;
1668 p.dst = dst;
1669 p.dstMod = dstMod;
1670 p.x = x;
1671 p.y = y;
1672 p.width = width;
1673 p.height = height;
1675 OOP_DoMethod(obj, (OOP_Msg) msg);
1678 VOID HIDD_BM_PutMemPattern24 (OOP_Object *obj,
1679 OOP_Object *gc,
1680 UBYTE *pattern,
1681 WORD patternsrcx,
1682 WORD patternsrcy,
1683 WORD patternheight,
1684 WORD patterndepth,
1685 HIDDT_PixelLUT *patternlut,
1686 BOOL invertpattern,
1687 UBYTE *mask,
1688 ULONG maskmodulo,
1689 WORD masksrcx,
1690 APTR dst,
1691 ULONG dstMod,
1692 WORD x,
1693 WORD y,
1694 WORD width,
1695 WORD height)
1697 STATIC_MID;
1698 struct pHidd_BitMap_PutMemPattern24 p, *msg = &p;
1700 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutMemPattern24);
1702 p.mID = mid;
1703 p.gc = gc;
1704 p.pattern = pattern;
1705 p.patternsrcx = patternsrcx;
1706 p.patternsrcy = patternsrcy;
1707 p.patternheight = patternheight;
1708 p.patterndepth = patterndepth;
1709 p.patternlut = patternlut;
1710 p.invertpattern = invertpattern;
1711 p.mask = mask;
1712 p.maskmodulo = maskmodulo;
1713 p.masksrcx = masksrcx;
1714 p.dst = dst;
1715 p.dstMod = dstMod;
1716 p.x = x;
1717 p.y = y;
1718 p.width = width;
1719 p.height = height;
1721 OOP_DoMethod(obj, (OOP_Msg) msg);
1724 VOID HIDD_BM_PutMemPattern32 (OOP_Object *obj,
1725 OOP_Object *gc,
1726 UBYTE *pattern,
1727 WORD patternsrcx,
1728 WORD patternsrcy,
1729 WORD patternheight,
1730 WORD patterndepth,
1731 HIDDT_PixelLUT *patternlut,
1732 BOOL invertpattern,
1733 UBYTE *mask,
1734 ULONG maskmodulo,
1735 WORD masksrcx,
1736 APTR dst,
1737 ULONG dstMod,
1738 WORD x,
1739 WORD y,
1740 WORD width,
1741 WORD height)
1743 STATIC_MID;
1744 struct pHidd_BitMap_PutMemPattern32 p, *msg = &p;
1746 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_PutMemPattern32);
1748 p.mID = mid;
1749 p.gc = gc;
1750 p.pattern = pattern;
1751 p.patternsrcx = patternsrcx;
1752 p.patternsrcy = patternsrcy;
1753 p.patternheight = patternheight;
1754 p.patterndepth = patterndepth;
1755 p.patternlut = patternlut;
1756 p.invertpattern = invertpattern;
1757 p.mask = mask;
1758 p.maskmodulo = maskmodulo;
1759 p.masksrcx = masksrcx;
1760 p.dst = dst;
1761 p.dstMod = dstMod;
1762 p.x = x;
1763 p.y = y;
1764 p.width = width;
1765 p.height = height;
1767 OOP_DoMethod(obj, (OOP_Msg) msg);
1770 OOP_Object * HIDD_BM_SetColorMap(OOP_Object *obj, OOP_Object *colorMap)
1772 STATIC_MID;
1773 struct pHidd_BitMap_SetColorMap p, *msg = &p;
1775 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_SetColorMap);
1777 p.mID = mid;
1778 p.colorMap = colorMap;
1780 return (OOP_Object *)OOP_DoMethod(obj, (OOP_Msg)msg);
1784 BOOL HIDD_BM_ObtainDirectAccess(OOP_Object *obj
1785 , UBYTE **addressReturn
1786 , ULONG *widthReturn
1787 , ULONG *heightReturn
1788 , ULONG *bankSizeReturn
1789 , ULONG *memSizeReturn )
1791 STATIC_MID;
1792 struct pHidd_BitMap_ObtainDirectAccess p, *msg = &p;
1794 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_ObtainDirectAccess);
1796 p.mID = mid;
1797 p.addressReturn = addressReturn;
1798 p.widthReturn = widthReturn;
1799 p.heightReturn = heightReturn;
1800 p.bankSizeReturn = bankSizeReturn;
1801 p.memSizeReturn = memSizeReturn;
1803 /* Clear this by default */
1804 *addressReturn = NULL;
1806 return (BOOL)OOP_DoMethod(obj, (OOP_Msg)msg);
1809 VOID HIDD_BM_ReleaseDirectAccess(OOP_Object *obj)
1811 STATIC_MID;
1812 struct pHidd_BitMap_ReleaseDirectAccess p, *msg = &p;
1814 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_ReleaseDirectAccess);
1816 p.mID = mid;
1818 OOP_DoMethod(obj, (OOP_Msg)msg);
1820 return;
1823 VOID HIDD_BM_BitMapScale(OOP_Object *obj, OOP_Object *src, OOP_Object *dest, struct BitScaleArgs * bsa, OOP_Object *gc)
1825 STATIC_MID;
1826 struct pHidd_BitMap_BitMapScale p, *msg = &p;
1828 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_BitMapScale);
1830 p.mID = mid;
1831 p.src = src;
1832 p.dst = dest;
1833 p.bsa = bsa;
1834 p.gc = gc;
1836 OOP_DoMethod(obj, (OOP_Msg) msg);
1839 HIDDT_RGBConversionFunction HIDD_BM_SetRGBConversionFunction(OOP_Object *obj, HIDDT_StdPixFmt srcPixFmt, HIDDT_StdPixFmt dstPixFmt,
1840 HIDDT_RGBConversionFunction function)
1842 STATIC_MID;
1843 struct pHidd_BitMap_SetRGBConversionFunction p, *msg = &p;
1845 if(!mid) mid = OOP_GetMethodID(IID_Hidd_BitMap, moHidd_BitMap_SetRGBConversionFunction);
1847 p.mID = mid;
1848 p.srcPixFmt = srcPixFmt;
1849 p.dstPixFmt = dstPixFmt;
1850 p.function = function;
1852 return (HIDDT_RGBConversionFunction) OOP_DoMethod(obj, (OOP_Msg) msg);
1855 /********* GC *****************************************/
1856 VOID HIDD_GC_SetClipRect(OOP_Object *obj, LONG x1, LONG y1, LONG x2, LONG y2)
1858 STATIC_MID;
1859 struct pHidd_GC_SetClipRect p, *msg = &p;
1861 if(!mid) mid = OOP_GetMethodID(IID_Hidd_GC, moHidd_GC_SetClipRect);
1863 p.mID = mid;
1864 p.x1 = x1;
1865 p.y1 = y1;
1866 p.x2 = x2;
1867 p.y2 = y2;
1869 OOP_DoMethod(obj, (OOP_Msg)msg);
1873 VOID HIDD_GC_UnsetClipRect(OOP_Object *obj)
1875 STATIC_MID;
1876 struct pHidd_GC_UnsetClipRect p, *msg = &p;
1878 if(!mid) mid = OOP_GetMethodID(IID_Hidd_GC, moHidd_GC_UnsetClipRect);
1880 p.mID = mid;
1882 OOP_DoMethod(obj, (OOP_Msg)msg);
1885 /********* PlanarBM **********************************/
1886 BOOL HIDD_PlanarBM_SetBitMap(OOP_Object *obj, struct BitMap *bitMap)
1888 STATIC_MID;
1889 struct pHidd_PlanarBM_SetBitMap p, *msg = &p;
1891 if(!mid) mid = OOP_GetMethodID(IID_Hidd_PlanarBM, moHidd_PlanarBM_SetBitMap);
1893 p.mID = mid;
1894 p.bitMap = bitMap;
1896 return (BOOL)OOP_DoMethod(obj, (OOP_Msg)msg);
1900 /********* ColorMap *********************************/
1902 BOOL HIDD_CM_SetColors(OOP_Object *obj, HIDDT_Color *colors, ULONG firstColor, ULONG numColors, OOP_Object *pixFmt)
1904 STATIC_MID;
1905 struct pHidd_ColorMap_SetColors p, *msg = &p;
1907 if(!mid) mid = OOP_GetMethodID(IID_Hidd_ColorMap, moHidd_ColorMap_SetColors);
1909 p.mID = mid;
1910 p.colors = colors;
1911 p.firstColor = firstColor;
1912 p.numColors = numColors;
1913 p.pixFmt = pixFmt;
1915 return OOP_DoMethod(obj, (OOP_Msg)msg);
1918 HIDDT_Pixel HIDD_CM_GetPixel(OOP_Object *obj, ULONG pixelNo) /* Starts at 0 */
1920 STATIC_MID;
1921 struct pHidd_ColorMap_GetPixel p, *msg = &p;
1923 if(!mid) mid = OOP_GetMethodID(IID_Hidd_ColorMap, moHidd_ColorMap_GetPixel);
1925 p.mID = mid;
1926 p.pixelNo = pixelNo;
1928 return (HIDDT_Pixel)OOP_DoMethod(obj, (OOP_Msg)msg);
1932 BOOL HIDD_CM_GetColor(OOP_Object *obj, ULONG colorNo, HIDDT_Color *colorReturn) /* Starts at 0 */
1934 STATIC_MID;
1935 struct pHidd_ColorMap_GetColor p, *msg = &p;
1937 if(!mid) mid = OOP_GetMethodID(IID_Hidd_ColorMap, moHidd_ColorMap_GetColor);
1939 p.mID = mid;
1940 p.colorNo = colorNo;
1941 p.colorReturn = colorReturn;
1943 return (BOOL)OOP_DoMethod(obj, (OOP_Msg)msg);