home *** CD-ROM | disk | FTP | other *** search
/ Monster Disc 2: The Best of 1992 / MONSTER2.ISO / prog / djgpp / cbgrx102.a01 / CONTRIB / LIBGRX / SRC / _TODO.C next >
Encoding:
C/C++ Source or Header  |  1992-08-12  |  6.0 KB  |  159 lines

  1. /**
  2.  ** _TODO.C
  3.  **
  4.  **  Copyright (C) 1992, Csaba Biegl
  5.  **    820 Stirrup Dr, Nashville, TN, 37221
  6.  **    csaba@vuse.vanderbilt.edu
  7.  **
  8.  **  This file is distributed under the terms listed in the document
  9.  **  "copying.cb", available from the author at the address above.
  10.  **  A copy of "copying.cb" should accompany this file; if not, a copy
  11.  **  should be available from where this file was obtained.  This file
  12.  **  may not be distributed without a verbatim copy of "copying.cb".
  13.  **  You should also have received a copy of the GNU General Public
  14.  **  License along with this program (it is in the file "copying");
  15.  **  if not, write to the Free Software Foundation, Inc., 675 Mass Ave,
  16.  **  Cambridge, MA 02139, USA.
  17.  **
  18.  **  This program is distributed in the hope that it will be useful,
  19.  **  but WITHOUT ANY WARRANTY; without even the implied warranty of
  20.  **  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  21.  **  GNU General Public License for more details.
  22.  **/
  23.  
  24. #include "grx.h"
  25. #include "mousex.h"
  26. #include <stdio.h>
  27.  
  28. #ifdef  __TURBOC__
  29. #pragma warn -par
  30. #endif
  31.  
  32. /* ================================================================== */
  33. /*          THICK AND DASHED LINE DRAWING PRIMITIVES              */
  34. /* ================================================================== */
  35.  
  36. void GrCustomLine(int x1,int y1,int x2,int y2,GrLineOption *o)
  37. {
  38.     GrLine(x1,y1,x2,y2,o->lno_color);
  39. }
  40.  
  41. void GrCustomBox(int x1,int y1,int x2,int y2,GrLineOption *o)
  42. {
  43.     GrBox(x1,y1,x2,y2,o->lno_color);
  44. }
  45.  
  46. void GrCustomCircle(int xc,int yc,int r,GrLineOption *o)
  47. {
  48.     GrCircle(xc,yc,r,o->lno_color);
  49. }
  50.  
  51. void GrCustomEllipse(int xc,int yc,int xa,int ya,GrLineOption *o)
  52. {
  53.     GrEllipse(xc,yc,xa,ya,o->lno_color);
  54. }
  55.  
  56. void GrCustomCircleArc(int xc,int yc,int r,int start,int end,GrLineOption *o)
  57. {
  58.     GrCircleArc(xc,yc,r,start,end,o->lno_color);
  59. }
  60.  
  61. void GrCustomEllipseArc(int xc,int yc,int xa,int ya,int start,int end,GrLineOption *o)
  62. {
  63.     GrEllipseArc(xc,yc,xa,ya,start,end,o->lno_color);
  64. }
  65.  
  66. void GrCustomPolyLine(int numpts,int points[][2],GrLineOption *o)
  67. {
  68.     GrPolyLine(numpts,points,o->lno_color);
  69. }
  70.  
  71. void    GrCustomPolygon(int numpts,int points[][2],GrLineOption *o)
  72. {
  73.     GrPolygon(numpts,points,o->lno_color);
  74. }
  75.  
  76.  
  77.  
  78. /* ================================================================== */
  79. /*           PATTERNED DRAWING AND FILLING PRIMITIVES              */
  80. /* ================================================================== */
  81.  
  82. GrPattern *GrLoadBitmap(char *filename,int fg,int bg) { return(NULL); }
  83. GrPattern *GrLoadPixmap(char *filename,GrColorTableP colors) { return(NULL); }
  84. GrPattern *GrLoadIcon(char *filename) { return(NULL); }
  85.  
  86. void    GrPatternedLine(int x1,int y1,int x2,int y2,GrLinePattern *lp)
  87. {
  88.     GrLine(x1,y1,x2,y2,lp->lnp_option->lno_color);
  89. }
  90.  
  91. void    GrPatternedBox(int x1,int y1,int x2,int y2,GrLinePattern *lp)
  92. {
  93.     GrBox(x1,y1,x2,y2,lp->lnp_option->lno_color);
  94. }
  95.  
  96. void    GrPatternedCircle(int xc,int yc,int r,GrLinePattern *lp) {}
  97. void    GrPatternedEllipse(int xc,int yc,int xa,int ya,GrLinePattern *lp) {}
  98. void    GrPatternedCircleArc
  99.     (int xc,int yc,int r,int start,int end,GrLinePattern *lp) {}
  100. void    GrPatternedEllipseArc
  101.     (int xc,int yc,int xa,int ya,int start,int end,GrLinePattern *lp) {}
  102. void    GrPatternedPolyLine(int numpts,int points[][2],GrLinePattern *lp) {}
  103. void    GrPatternedPolygon(int numpts,int points[][2],GrLinePattern *lp) {}
  104.  
  105.  
  106. /* ================================================================== */
  107. /*         DRAWING IN USER WINDOW COORDINATES              */
  108. /* ================================================================== */
  109.  
  110. void    GrUsrCircleArc(int xc,int yc,int r,int start,int end,int c) {}
  111. void    GrUsrEllipseArc(int xc,int yc,int xa,int ya,int start,int end,int c) {}
  112. void    GrUsrPolyLine(int numpts,int points[][2],int c) {}
  113. void    GrUsrPolygon(int numpts,int points[][2],int c) {}
  114.  
  115. void    GrUsrFilledCircleArc(int xc,int yc,int r,int start,int end,int c) {}
  116. void    GrUsrFilledEllipseArc
  117.     (int xc,int yc,int xa,int ya,int start,int end,int c) {}
  118. void    GrUsrFilledPolygon(int numpts,int points[][2],int c) {}
  119.  
  120. void    GrUsrCustomLine(int x1,int y1,int x2,int y2,GrLineOption *o) {}
  121. void    GrUsrCustomBox(int x1,int y1,int x2,int y2,GrLineOption *o) {}
  122. void    GrUsrCustomCircle(int xc,int yc,int r,GrLineOption *o) {}
  123. void    GrUsrCustomEllipse(int xc,int yc,int xa,int ya,GrLineOption *o) {}
  124. void    GrUsrCustomCircleArc
  125.     (int xc,int yc,int r,int start,int end,GrLineOption *o) {}
  126. void    GrUsrCustomEllipseArc
  127.     (int xc,int yc,int xa,int ya,int start,int end,GrLineOption *o) {}
  128. void    GrUsrCustomPolyLine(int numpts,int points[][2],GrLineOption *o) {}
  129. void    GrUsrCustomPolygon(int numpts,int points[][2],GrLineOption *o) {}
  130.  
  131. void    GrUsrPatternedLine(int x1,int y1,int x2,int y2,GrLinePattern *lp) {}
  132. void    GrUsrPatternedBox(int x1,int y1,int x2,int y2,GrLinePattern *lp) {}
  133. void    GrUsrPatternedCircle(int xc,int yc,int r,GrLinePattern *lp) {}
  134. void    GrUsrPatternedEllipse(int xc,int yc,int xa,int ya,GrLinePattern *lp) {}
  135. void    GrUsrPatternedCircleArc
  136.     (int xc,int yc,int r,int start,int end,GrLinePattern *lp) {}
  137. void    GrUsrPatternedEllipseArc
  138.     (int xc,int yc,int xa,int ya,int start,int end,GrLinePattern *lp) {}
  139. void    GrUsrPatternedPolyLine(int numpts,int points[][2],GrLinePattern *lp) {}
  140. void    GrUsrPatternedPolygon(int numpts,int points[][2],GrLinePattern *lp) {}
  141.  
  142. void    GrUsrPatternFilledPlot(int x,int y,GrPattern *p) {}
  143. void    GrUsrPatternFilledLine(int x1,int y1,int x2,int y2,GrPattern *p) {}
  144. void    GrUsrPatternFilledBox(int x1,int y1,int x2,int y2,GrPattern *p) {}
  145. void    GrUsrPatternFilledCircle(int xc,int yc,int r,GrPattern *p) {}
  146. void    GrUsrPatternFilledEllipse(int xc,int yc,int xa,int ya,GrPattern *p) {}
  147. void    GrUsrPatternFilledCircleArc
  148.     (int xc,int yc,int r,int start,int end,GrPattern *p) {}
  149. void    GrUsrPatternFilledEllipseArc
  150.     (int xc,int yc,int xa,int ya,int start,int end,GrPattern *p) {}
  151. void    GrUsrPatternFilledPolygon(int numpts,int points[][2],GrPattern *p) {}
  152.  
  153. /*
  154.  * FROM "mousex.h":
  155.  */
  156. GrCursor *GrLoadCursor(char *fname,GrColorTableP colors) { return(NULL); }
  157.  
  158.  
  159.