home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / lib / mathlib / libfft / fft2 / draw.c next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  1.5 KB  |  53 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,y_size,x_size);
  36.  
  37.     cpack(oWHITE);
  38.     rect(-1,-1,y_size,x_size);
  39. /*
  40.     bgnpoint();
  41.     for( ptc = mycolors, j = 0 ; j < x_size ; j++, ptc += lda) {
  42.     v[0] = j;
  43.     for ( i = 0 , v[1] = 0; i < y_size ; i ++, v[1] += 1.){
  44.         cpack(ptc[i]);
  45.         v2f(v);
  46.     }
  47.     }
  48.     endpoint();
  49. */
  50.     lrectwrite(y_0+1,x_0+1,y_0+y_size, x_0+x_size, mycolors);
  51. }
  52.  
  53.