Counter Strike : Global Offensive Source Code
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.

43 lines
1.6 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. //-----------------------------------------------------------------------------
  9. // FILE: TRISTRIP.H
  10. //
  11. // Desc: tristrip header file
  12. //
  13. // Copyright (c) 1999-2000 Microsoft Corporation. All rights reserved.
  14. //-----------------------------------------------------------------------------
  15. typedef unsigned short WORD;
  16. //
  17. // Main Stripify routine. Returns number of strip indices contained
  18. // in ppstripindices. Caller must delete [] ppstripindices.
  19. //
  20. int Stripify(
  21. int numtris, // Number of triangles
  22. WORD *ptriangles, // triangle indices pointer
  23. int *pnumindices, // number of indices in ppstripindices (out)
  24. WORD **ppstripindices // triangle strip indices
  25. );
  26. //
  27. // Re-arrange vertices so that they occur in the order that they are first
  28. // used. This function doesn't actually move vertex data around, it returns
  29. // an array that specifies where in the new vertex array each old vertex
  30. // should go. It also re-maps the strip indices to use the new vertex
  31. // locations. Caller must delete [] pVertexPermutation.
  32. //
  33. void ComputeVertexPermutation
  34. (
  35. int numstripindices, // Number of strip indices
  36. WORD *pstripindices, // Strip indices
  37. int *pnumverts, // Number of verts (in and out)
  38. WORD **ppvertexpermutation // Map from orignal index to remapped index
  39. );