home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1994 June / NEBULA_SE.ISO / SourceCode / Cookbook / 07.PSWrap / sym / circle.c next >
Encoding:
C/C++ Source or Header  |  1993-06-24  |  1.7 KB  |  56 lines

  1. /* ./sym/circle.c generated from circle.psw
  2.    by unix pswrap V1.009  Wed Apr 19 17:50:24 PDT 1989
  3.  */
  4.  
  5. #include <dpsclient/dpsfriends.h>
  6. #include <string.h>
  7.  
  8. #line 1 "circle.psw"
  9. #line 10 "./sym/circle.c"
  10. void drawCircle(float radius, float shade)
  11. {
  12.   typedef struct {
  13.     unsigned char tokenType;
  14.     unsigned char topLevelCount;
  15.     unsigned short nBytes;
  16.  
  17.     DPSBinObjGeneric obj0;
  18.     DPSBinObjGeneric obj1;
  19.     DPSBinObjGeneric obj2;
  20.     DPSBinObjReal obj3;
  21.     DPSBinObjGeneric obj4;
  22.     DPSBinObjGeneric obj5;
  23.     DPSBinObjGeneric obj6;
  24.     DPSBinObjReal obj7;
  25.     DPSBinObjGeneric obj8;
  26.     DPSBinObjGeneric obj9;
  27.     DPSBinObjGeneric obj10;
  28.     } _dpsQ;
  29.   static const _dpsQ _dpsStat = {
  30.     DPS_DEF_TOKENTYPE, 11, 92,
  31.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 78},    /* gsave */
  32.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 40},    /* currentpoint */
  33.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 111},    /* newpath */
  34.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: radius */
  35.     {DPS_LITERAL|DPS_INT, 0, 0, 0},
  36.     {DPS_LITERAL|DPS_INT, 0, 0, 360},
  37.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 5},    /* arc */
  38.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: shade */
  39.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150},    /* setgray */
  40.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 66},    /* fill */
  41.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 77},    /* grestore */
  42.     }; /* _dpsQ */
  43.   _dpsQ _dpsF;    /* local copy  */
  44.   register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
  45.   char pad[3];
  46.   register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
  47.   _dpsF = _dpsStat;    /* assign automatic variable */
  48.  
  49.   _dpsP[3].val.realVal = radius;
  50.   _dpsP[7].val.realVal = shade;
  51.   DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,92);
  52.   if (0) *pad = 0;    /* quiets compiler warnings */
  53. }
  54. #line 10 "circle.psw"
  55.  
  56.