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.

38 lines
1.2 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. #ifndef VERTEXDECL_H
  9. #define VERTEXDECL_H
  10. #ifdef _WIN32
  11. #pragma once
  12. #endif
  13. #include "locald3dtypes.h"
  14. #include "materialsystem/imaterial.h"
  15. //
  16. // VertexStreamSpec_t *pStreamSpec
  17. // is an array of stream specifications terminated with an entry {VERTEX_FORMAT_UNKNOWN, STREAM_DEFAULT}
  18. // or NULL if all the streams should be mapped in a default manner
  19. //
  20. //-----------------------------------------------------------------------------
  21. // Gets the declspec associated with a vertex format
  22. //-----------------------------------------------------------------------------
  23. IDirect3DVertexDeclaration9 *FindOrCreateVertexDecl( VertexFormat_t fmt, bool bStaticLit, bool bUsingFlex, bool bUsingMorph, bool bUsingPreTessPatch, VertexStreamSpec_t *pStreamSpec );
  24. //-----------------------------------------------------------------------------
  25. // Clears out all declspecs
  26. //-----------------------------------------------------------------------------
  27. void ReleaseAllVertexDecl( );
  28. #endif // VERTEXDECL_H