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.5 KiB

  1. //===== Copyright � 1996-2005, Valve Corporation, All rights reserved. ======//
  2. //
  3. // Purpose: NOTE: This file is for backward compat!
  4. // We'll get rid of it soon. Most of the contents of this file were moved
  5. // into shaderpi/ishadershadow.h, shaderapi/ishaderdynamic.h, or
  6. // shaderapi/shareddefs.h
  7. //
  8. // $NoKeywords: $
  9. //
  10. //===========================================================================//
  11. #ifndef ISHADERAPI_MS_H
  12. #define ISHADERAPI_MS_H
  13. #ifdef _WIN32
  14. #pragma once
  15. #endif
  16. #include <shaderapi/shareddefs.h>
  17. #include <shaderapi/ishadershadow.h>
  18. #include <shaderapi/ishaderdynamic.h>
  19. //-----------------------------------------------------------------------------
  20. // forward declarations
  21. //-----------------------------------------------------------------------------
  22. class IMaterialVar;
  23. //-----------------------------------------------------------------------------
  24. // Methods that can be called from the SHADER_INIT blocks of shaders
  25. //-----------------------------------------------------------------------------
  26. abstract_class IShaderInit
  27. {
  28. public:
  29. // Loads up a texture
  30. virtual void LoadTexture( IMaterialVar *pTextureVar, const char *pTextureGroupName, int nAdditionalCreationFlags = 0 ) = 0;
  31. virtual void LoadBumpMap( IMaterialVar *pTextureVar, const char *pTextureGroupName, int nAdditionalCreationFlags = 0 ) = 0;
  32. virtual void LoadCubeMap( IMaterialVar **ppParams, IMaterialVar *pTextureVar, int nAdditionalCreationFlags = 0 ) = 0;
  33. };
  34. #endif // ISHADERAPI_MS_H