home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / b / bgi256-3.zip / WRMODE.PAS < prev   
Pascal/Delphi Source File  |  1992-12-27  |  3KB  |  80 lines

  1.  
  2. { WRMODE.PAS - write mode definitions }
  3. { Written by Michael Day as of 15 Dec 92 }
  4.  
  5. {Usage:    SetWriteMode(Selection+Function); }
  6. {Example:  SetWriteMode(FloodFillMode+SeedFill); }
  7.  
  8. unit WRMODE;
  9. interface
  10.  
  11.       {graphics mode selections available}
  12. const Mode200  = 0;  {320x200x256}
  13.       Mode400  = 1;  {640x400x256}
  14.       Mode480  = 2;  {640x480x256}
  15.       Mode600  = 3;  {800x600x256}
  16.       Mode768  = 4;  {1024x768x256}
  17.       Mode1024 = 5;  {2048x1024x256}
  18.  
  19.       {SetWriteMode selection commands}
  20. const LineMode      = $00;  {line drawing write style} 
  21.       PixelMode     = $20;  {pixel drawing write style}
  22.       FillMode      = $40;  {fill write style}
  23.       FloodFillType = $60;  {floodfill option selection}
  24.       TextMode      = $80;  {bitmapped text write style}
  25.       MiscCommand   = $E0;  {misc BGI driver commands}
  26.  
  27.       {Write mode functions}
  28.       MoveWrite  = 0;        {foreground and background drawing}
  29.       XorWrite   = 1;
  30.       OrWrite    = 2;
  31.       AndWrite   = 3;
  32.       NotMoveWrite = 4;
  33.       NotXorWrite  = 5;
  34.       NotOrWrite   = 6;
  35.       NotAndWrite  = 7;
  36.       ForeMoveWrite = 8;     {foreground only drawing}
  37.       ForeXorWrite  = 9;
  38.       ForeOrWrite   = 10;
  39.       ForeAndWrite  = 11;
  40.       ForeNotMoveWrite = 12;
  41.       ForeNotXorWrite  = 13;
  42.       ForeNotOrWrite   = 14;
  43.       ForeNotAndWrite  = 15;
  44.       BackMoveWrite    = 16; {background only drawing}
  45.       BackXorWrite     = 17;
  46.       BackOrWrite      = 18;
  47.       BackAndWrite     = 19;
  48.       BackNotMoveWrite = 20;
  49.       BackNotXorWrite  = 21;
  50.       BackNotOrWrite   = 22;
  51.       BackNotAndWrite  = 23;
  52.       SetBackColor     = 24; {set the background color for draw method}
  53.       GetWriteMode     = 30; {return selected write mode on GetMaxMode call}
  54.       GetBackColor     = 31; {return background color on GetMaxMode call}
  55.  
  56.       {FloodFillType functions}
  57.       BorderFill      = 0;  {use border floodfill method - default}
  58.       SeedFill        = 1;  {use seed floodfill method}
  59.       AutoFill        = 8;  {auto-select simplex or complex fill - default}
  60.       ComplexFill     = 9;  {force complex floodfill always}
  61.       FillCompressOff = 10; {use standard floodfill stack - default}
  62.       FillCompressOn  = 11; {use compressed floodfill stack}
  63.       FillDelayOff    = 12; {fill area while searching - default}
  64.       FillDelayOn     = 13; {delay fill to after search, not active in simplex}
  65.       FillTracerOff   = 14; {no tracing of search path - default}
  66.       FillTracerOn    = 15; {show search path as it is processed}
  67.       GetFloodFillOpt = 31; {ret FF option flags in next GetMaxMode call}
  68.  
  69.       {Misc Command functions}
  70.       {These functions modify the return value of the next call to GetMaxMode}
  71.       SetPutImgBackColor = 24; {set new putimage background color}
  72.       GetCurrentMode     = 25; {ret actual graph mode in use}
  73.       GetXYStackPeak     = 26; {ret last peak val of fill XYstack}
  74.       GetXYStackFree     = 27; {ret last val of free XYstack space}
  75.       GetPutImgWriteMode = 30; {ret last write mode used by PutImage}
  76.       GetPutImgBackColor = 31; {ret background color used by PutImage}
  77.  
  78. implementation
  79. end.
  80.