home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / lib / mathlib / libblas / ludec / draw.c next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  1.5 KB  |  66 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. extern int max_size, this_size;
  23.  
  24. DrawFast()
  25. {
  26.     int i,j ;
  27.     float v[2];
  28.  
  29.     color(oBLUE);
  30.     rectfi(0,0,max_size,max_size);
  31. /*
  32. this_size = random() % max_size;
  33. */
  34.     color(oRED);
  35.     rectfi(this_size,0,max_size,max_size - this_size);
  36.  
  37.     color(oWHITE);
  38.     for( i = 0; i <= max_size ; i += 50){
  39.     bgnline();
  40.     v[0] = (float)i;
  41.     v[1] = 0;
  42.     v2f(v);
  43.     v[1] = max_size;
  44.     v2f(v);
  45.     endline();
  46.  
  47.     bgnline();
  48.     v[1] = (float)i;
  49.     v[0] = 0;
  50.     v2f(v);
  51.     v[0] = max_size;
  52.     v2f(v);
  53.     endline();
  54.     }
  55.     bgnline();
  56.     v[0] = 0;
  57.     v[1] = max_size;
  58.     v2f(v);
  59.     v[0] = max_size;
  60.     v[1] = 0;
  61.     v2f(v);
  62.     endline();
  63.  
  64. }
  65.  
  66.