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.

78 lines
2.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. // $NoKeywords: $
  8. //===========================================================================//
  9. #ifndef GL_SHADER_H
  10. #define GL_SHADER_H
  11. #ifdef _WIN32
  12. #pragma once
  13. #endif
  14. void Shader_BeginRendering ();
  15. bool Shader_Connect( bool bSetProxyFactory );
  16. void Shader_Disconnect();
  17. void Shader_SwapBuffers();
  18. #include "mathlib/vector.h"
  19. #include "convar.h"
  20. extern Vector modelorg;
  21. extern VMatrix g_BrushToWorldMatrix;
  22. //
  23. // screen size info
  24. //
  25. class IMaterial;
  26. extern IMaterial* g_materialEmpty;
  27. extern IMaterial* g_materialWireframe;
  28. extern IMaterial* g_materialTranslucentSingleColor;
  29. extern IMaterial* g_materialTranslucentVertexColor;
  30. extern IMaterial* g_materialWorldWireframe;
  31. extern IMaterial* g_materialWorldWireframeZBuffer;
  32. extern IMaterial* g_materialBrushWireframe;
  33. extern IMaterial* g_materialDecalWireframe;
  34. extern IMaterial* g_materialDebugLightmap;
  35. extern IMaterial* g_materialDebugLightmapZBuffer;
  36. extern IMaterial* g_materialDebugLuxels;
  37. extern IMaterial* g_materialLeafVisWireframe;
  38. extern IMaterial* g_pMaterialWireframeVertexColor;
  39. extern IMaterial* g_pMaterialWireframeVertexColorIgnoreZ;
  40. extern IMaterial* g_pMaterialLightSprite;
  41. extern IMaterial* g_pMaterialShadowBuild;
  42. extern IMaterial* g_pMaterialMRMWireframe;
  43. extern IMaterial* g_pMaterialWriteZ;
  44. extern IMaterial* g_pMaterialWaterDuDv;
  45. extern IMaterial* g_pMaterialWaterFirstPass;
  46. extern IMaterial* g_pMaterialWaterSecondPass;
  47. extern IMaterial* g_pMaterialAmbientCube;
  48. extern IMaterial* g_pMaterialDebugFlat;
  49. extern IMaterial* g_pMaterialDepthWrite[2][2];
  50. extern IMaterial* g_pMaterialSSAODepthWrite[2][2];
  51. extern ConVar r_norefresh;
  52. extern ConVar r_lightmapcolorscale;
  53. extern ConVar r_decals;
  54. extern ConVar mp_decals;
  55. extern ConVar r_lightmap;
  56. extern ConVar r_lightstyle;
  57. extern ConVar r_dynamic;
  58. extern ConVar r_unloadlightmaps;
  59. extern ConVar r_lod_noupdate;
  60. extern ConVar mat_fullbright;
  61. extern ConVar mat_drawflat;
  62. extern ConVar mat_reversedepth;
  63. extern ConVar mat_norendering;
  64. #endif // GL_SHADER_H