[comp.sys.amiga.tech] SetDrPt

gregr@ncoast.UUCP (Gregory Roberts) (07/25/88)

   I was poking about today with a little program to do a *large* raster,
and I wanted to draw something in it real quick to make sure everything was
okey-dokey.  I happened across this routine (SetDrPt) in the RKM manual, so
I thought I'd spice things up a bit.  (it's s'posed to make patterened
lines)
 
   Turns out, the system knows nothing about this routine.  In fact, the
only place I can find it is on page 38 of the '86 RKM.   It's not listed in
Appendix A (where all the fun routines are listed).

    It's not real important that I have this routine, but it's made me
curious.  Is there such a routine?  If so, what's it's name, and how do I
use it.   I also noticed no mention of it in the enhancer update, so I'm
wondering. 

    Sorry if this has been asked before, and if you don't think the answer
is of general interest, just e-mail me.  (Hope the feed system don't go
down again!  :-)

    Thanks....

-- 
**  Gregory Roberts II       ...!uunet!marque!ncoast!gregr
     : 
    ** My fingers are responsible, not me! **

haitex@pnet01.cts.com (Wade Bickel) (07/26/88)

  Hi,

       In my Benchmark Modula-2 manual the SetDrPt() function is part
     of the Drawing module in the support library, which in this case
     is a just a set of stubs providing redirection to the ROM routines.

       According to the comments included in the module this routine
     corresponds to the following C *MACRO*:
        #define SetDrPt(w,p)
                  {(w)->LinePtrn = p;(w)->Flags |= FRST_DOT;
                   (w)->linepatcnt=15;}


        This is probably a 1.2 function, and thus is not documented in
      many of the common referances.


                                                Good Luck,


                                                                Wade.

UUCP: {cbosgd, hplabs!hp-sdd, sdcsvax, nosc}!crash!pnet01!haitex
ARPA: crash!pnet01!haitex@nosc.mil
INET: haitex@pnet01.CTS.COM

louie@trantor.umd.edu (Louis A. Mamakos) (07/26/88)

SetDrPt is a macro; look in graphics/gfxmacros.





Louis A. Mamakos  WA3YMH    Internet: louie@TRANTOR.UMD.EDU
University of Maryland, Computer Science Center - Systems Programming

cunniff@hpfcdc.HP.COM (Ross Cunniff) (07/26/88)

In article <11950@ncoast.UUCP>, gregr@ncoast.UUCP (Gregory Roberts) writes:
>    I was poking about today with a little program to do a *large* raster,
> and I wanted to draw something in it real quick to make sure everything was
> okey-dokey.  I happened across this routine (SetDrPt) in the RKM manual, so
> I thought I'd spice things up a bit.  (it's s'posed to make patterened
> lines)
> 
>    Turns out, the system knows nothing about this routine.  In fact, the
> only place I can find it is on page 38 of the '86 RKM.   It's not listed in
> Appendix A (where all the fun routines are listed).
>
>     It's not real important that I have this routine, but it's made me
> curious.  Is there such a routine?  If so, what's it's name, and how do I
> use it.   I also noticed no mention of it in the enhancer update, so I'm
> wondering. 

SetDrPt is (like its cousins SetAfPt, SetOPen, and SetWrMsk) a macro,
found in <graphics/gfxmacros.h>.  Just #include this header in the
source file(s) where you want to SetDrPt, up next to all your other
#include's.

> **  Gregory Roberts II       ...!uunet!marque!ncoast!gregr

					Ross Cunniff
					Hewlett-Packard Colorado Languages Lab
					...{ucbvax,hplabs}!hpda!cunniff
					cunniff%hpda@hplabs.ARPA