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.

40 lines
1.3 KiB

  1. //========= Copyright (c) 1996-2006, Valve Corporation, All rights reserved. ============//
  2. #ifndef PROTO_ICE_HELPER_H
  3. #define PROTO_ICE_HELPER_H
  4. #ifdef _WIN32
  5. #pragma once
  6. #endif
  7. #include <string.h>
  8. //-----------------------------------------------------------------------------
  9. // Forward declarations
  10. //-----------------------------------------------------------------------------
  11. class CBaseVSShader;
  12. class IMaterialVar;
  13. class IShaderDynamicAPI;
  14. class IShaderShadow;
  15. //-----------------------------------------------------------------------------
  16. // Init params/ init/ draw methods
  17. //-----------------------------------------------------------------------------
  18. struct ProtoIceVars_t
  19. {
  20. ProtoIceVars_t() { memset( this, 0xFF, sizeof(ProtoIceVars_t) ); }
  21. int m_nBaseTexture;
  22. int m_nBaseTextureFrame;
  23. int m_nBumpmap;
  24. int m_nBumpFrame;
  25. int m_nSsBump;
  26. };
  27. void InitParamsProtoIce( CBaseVSShader *pShader, IMaterialVar** params, const char *pMaterialName, ProtoIceVars_t &info );
  28. void InitProtoIce( CBaseVSShader *pShader, IMaterialVar** params, ProtoIceVars_t &info );
  29. void DrawProtoIce( CBaseVSShader *pShader, IMaterialVar** params, IShaderDynamicAPI *pShaderAPI,
  30. IShaderShadow* pShaderShadow, ProtoIceVars_t &info, VertexCompressionType_t vertexCompression );
  31. #endif // PROTO_ICE_HELPER_H