Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.2 KiB

  1. #ifndef __gluvarray_h_
  2. #define __gluvarray_h_
  3. /**************************************************************************
  4. * *
  5. * Copyright (C) 1992, Silicon Graphics, Inc. *
  6. * *
  7. * These coded instructions, statements, and computer programs contain *
  8. * unpublished proprietary information of Silicon Graphics, Inc., and *
  9. * are protected by Federal copyright law. They may not be disclosed *
  10. * to third parties or copied or duplicated in any form, in whole or *
  11. * in part, without the prior written consent of Silicon Graphics, Inc. *
  12. * *
  13. **************************************************************************/
  14. /*
  15. * varray.h - $Revision: 1.1 $
  16. */
  17. #include "types.h"
  18. class Arc;
  19. class Varray {
  20. public:
  21. Varray();
  22. ~Varray();
  23. long init( REAL, Arc *, Arc * );
  24. REAL * varray;
  25. REAL vval[1000];
  26. long voffset[1000];
  27. long numquads;
  28. private:
  29. long size;
  30. inline void update( Arc *, long[2], REAL );
  31. void grow( long );
  32. inline void append( REAL );
  33. };
  34. inline void
  35. Varray::append( REAL v )
  36. {
  37. if( v != vval[numquads] )
  38. vval[++numquads] = v;
  39. }
  40. #endif /* __gluvarray_h_ */