dave@heurikon.UUCP (Dave Scidmore) (03/07/86)
The routines "SetOpen()", "SetAfPt()" and "SetDrPt()" which are mentioned in the ROM Kernel Manual volume 1, don't seem to appear in volume 2. If I attempt to use them the linker says they are undefined. Does anyone know what goes? If the routines do not exist how should a programmer get at the functions supported by these routines? Are there any other routines mentioned in volume one which do not in fact exist? Any help would be appreciated and I apologize in advance if this subject has already appeared on the net. Dave Scidmore
farren@well.UUCP (Mike Farren) (03/08/86)
In article <154@heurikon.UUCP> dave@heurikon.UUCP (Dave Scidmore) writes: >The routines "SetOpen()", "SetAfPt()" and "SetDrPt()" which are mentioned >in the ROM Kernel Manual volume 1, don't seem to appear in volume 2. If I >attempt to use them the linker says they are undefined. They are found in the include file <gfxmacros.h>, where they are defined as macros, rather than as function calls. Looks to me like they may have started out as function calls, but have been translated into macros somewhere along the way. -- Mike Farren uucp: {your favorite backbone site}!hplabs!well!farren Fido: Sci-Fido, Fidonode 125/84, (415)655-0667
dale@amiga.UUCP (03/09/86)
In article <154@heurikon.UUCP> dave@heurikon.UUCP (Dave Scidmore) writes: >The routines "SetOpen()", "SetAfPt()" and "SetDrPt()" which are mentioned >in the ROM Kernel Manual volume 1, don't seem to appear in volume 2. These routines are currently implemented as macros. Look in gfxmacros.h There was a bug in 1.1 gfxmacros.h You might want to compare this one with the one you have. ----------------------Cut here---------------------------------- #ifndef GRAPHICS_GFXMACROS_H #define GRAPHICS_GFXMACROS_H /****** gfxmacros.h *************************************************/ /* */ /* Commodore-Amiga, Inc. */ /* */ /* Modification History */ /* date : author : Comments */ /* ------- ------ --------------------------------------- */ /* 8-24-84 Dale added this header file */ /* 9-06-84 Dale fixed macros using w-> to use (w)-> */ /* 9-07-84 Dale fixed macros to use new RastPort */ /* */ /********************************************************************/ #ifndef GRAPHICS_RASTPORT_H #include <graphics/rastport.h> #endif #define ON_DISPLAY custom.dmacon = BITSET|DMAF_RASTER; #define OFF_DISPLAY custom.dmacon = BITCLR|DMAF_RASTER; #define ON_SPRITE custom.dmacon = BITSET|DMAF_SPRITE; #define OFF_SPRITE custom.dmacon = BITCLR|DMAF_SPRITE; #define ON_VBLANK custom.intena = BITSET|INTF_VERTB #define OFF_VBLANK custom.intena = BITCLR|INTF_VERTB #define SetOPen(w,c) {(w)->AOlPen = c;(w)->Flags |= AREAOUTLINE;} #define SetDrPt(w,p) {(w)->LinePtrn = p;(w)->Flags |= FRST_DOT;(w)->linpatcnt=15;} #define SetWrMsk(w,m) {(w)->Mask = m;} #define SetAfPt(w,p,n) {(w)->AreaPtrn = p;(w)->AreaPtSz = n;} #define BNDRYOFF(w) {(w)->Flags &= ~AREAOUTLINE;} #define CINIT(c,n) { UCopperListInit(c,n); } #define CMOVE(c,a,b) { CMove(c,&a,b);CBump(c); } #define CWAIT(c,a,b) { CWait(c,a,b);CBump(c); } #define CEND(c) { CWAIT(c,10000,255); } #endif ---------------------end of gfxmacros.h, cut here too-------