Team Fortress 2 Source Code as on 22/4/2020
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.4 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================
  7. #ifndef WORLDVERTEXTRANSITION_DX6_HELPER_H
  8. #define WORLDVERTEXTRANSITION_DX6_HELPER_H
  9. //-----------------------------------------------------------------------------
  10. // Forward declarations
  11. //-----------------------------------------------------------------------------
  12. class CBaseShader;
  13. class IMaterialVar;
  14. class IShaderDynamicAPI;
  15. class IShaderShadow;
  16. //-----------------------------------------------------------------------------
  17. // Init params/ init/ draw methods
  18. //-----------------------------------------------------------------------------
  19. struct WorldVertexTransition_DX6_Vars_t
  20. {
  21. WorldVertexTransition_DX6_Vars_t() { memset( this, 0xFF, sizeof(WorldVertexTransition_DX6_Vars_t) ); }
  22. int m_nBaseTextureVar;
  23. int m_nBaseTextureFrameVar;
  24. int m_nBaseTexture2Var;
  25. int m_nFlashlightTextureVar;
  26. };
  27. void InitParamsWorldVertexTransition_DX6( IMaterialVar** params, WorldVertexTransition_DX6_Vars_t &info );
  28. void InitWorldVertexTransition_DX6( CBaseShader *pShader, IMaterialVar** params, WorldVertexTransition_DX6_Vars_t &info );
  29. void DrawWorldVertexTransition_DX6( CBaseShader *pShader, IMaterialVar** params,
  30. IShaderDynamicAPI *pShaderAPI, IShaderShadow* pShaderShadow, WorldVertexTransition_DX6_Vars_t &info );
  31. #endif // WORLDVERTEXTRANSITION_DX6_HELPER_H