home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / lib / mathlib / libfft / fft1 / draw.c next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  1.3 KB  |  43 lines

  1. /* *****************************************************************************
  2. *
  3. * Copyright 1991, 1992, 1993, 1994, Silicon Graphics, Inc.
  4. * All Rights Reserved.
  5. *
  6. * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  7. * the contents of this file may not be disclosed to third parties, copied or
  8. * duplicated in any form, in whole or in part, without the prior written
  9. * permission of Silicon Graphics, Inc.
  10. *
  11. * RESTRICTED RIGHTS LEGEND:
  12. * Use, duplication or disclosure by the Government is subject to restrictions
  13. * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  14. * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  15. * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  16. * rights reserved under the Copyright Laws of the United States.
  17. *
  18. ***************************************************************************** */
  19. #include <gl.h>
  20. #include "fast.h"
  21.  
  22. #define ABS(a) ( ( (a) < 0 ) ? -(a) : a)
  23. #define MIN(a,b) ( ((a) < (b)) ? (a) : (b))
  24.  
  25. extern int x_size, y_size, lda, x_0, y_0;
  26. extern unsigned int *mycolors;
  27.  
  28. DrawFast()
  29. {
  30.     int i,j , blue, green, red;
  31.     float v[2];
  32.     int * ptc;
  33.  
  34.     cpack(oBLACK);
  35.     rectfi(-1,-1,x_size,y_size);
  36.  
  37.     cpack(oWHITE);
  38.     rect(-1,-1,x_size,y_size);
  39.  
  40.     lrectwrite(x_0+1,y_0+1,x_0+x_size, y_0+y_size, mycolors);
  41. }
  42.  
  43.