home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / lib / mathlib / psort / example / draw.c next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  1.2 KB  |  35 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 x_size, y_size;
  23. extern unsigned int *show_image;
  24.  
  25. DrawFast()
  26. {
  27.     cpack(oWHITE);
  28.     recti(BORDER-1, BORDER-1,  BORDER+ZOOM_FACTOR*x_size, BORDER+ZOOM_FACTOR*y_size);
  29.  
  30.     rectzoom(ZOOM_FACTOR,ZOOM_FACTOR);
  31.     lrectwrite(BORDER, BORDER, BORDER+x_size-1, BORDER+y_size-1,show_image);
  32. }
  33.  
  34.  
  35.