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.

73 lines
2.4 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. // TOGL CODE LICENSE
  3. //
  4. // Copyright 2011-2014 Valve Corporation
  5. // All Rights Reserved.
  6. //
  7. // Permission is hereby granted, free of charge, to any person obtaining a copy
  8. // of this software and associated documentation files (the "Software"), to deal
  9. // in the Software without restriction, including without limitation the rights
  10. // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  11. // copies of the Software, and to permit persons to whom the Software is
  12. // furnished to do so, subject to the following conditions:
  13. //
  14. // The above copyright notice and this permission notice shall be included in
  15. // all copies or substantial portions of the Software.
  16. //
  17. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  18. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  20. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  21. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  22. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  23. // THE SOFTWARE.
  24. //
  25. #ifndef RENDERMECHANISM_H
  26. #define RENDERMECHANISM_H
  27. #if defined(DX_TO_GL_ABSTRACTION)
  28. #undef PROTECTED_THINGS_ENABLE
  29. #include <GL/gl.h>
  30. #include <GL/glext.h>
  31. #include "tier0/basetypes.h"
  32. #include "tier0/platform.h"
  33. #include "togl/linuxwin/glmdebug.h"
  34. #include "togl/linuxwin/glbase.h"
  35. #include "togl/linuxwin/glentrypoints.h"
  36. #include "togl/linuxwin/glmdisplay.h"
  37. #include "togl/linuxwin/glmdisplaydb.h"
  38. #include "togl/linuxwin/glmgrbasics.h"
  39. #include "togl/linuxwin/glmgrext.h"
  40. #include "togl/linuxwin/cglmbuffer.h"
  41. #include "togl/linuxwin/cglmtex.h"
  42. #include "togl/linuxwin/cglmfbo.h"
  43. #include "togl/linuxwin/cglmprogram.h"
  44. #include "togl/linuxwin/cglmquery.h"
  45. #include "togl/linuxwin/glmgr.h"
  46. #include "togl/linuxwin/dxabstract_types.h"
  47. #include "togl/linuxwin/dxabstract.h"
  48. #else
  49. //USE_ACTUAL_DX
  50. #ifdef WIN32
  51. #ifdef _X360
  52. #include "d3d9.h"
  53. #include "d3dx9.h"
  54. #else
  55. #include <windows.h>
  56. #include "../../dx9sdk/include/d3d9.h"
  57. #include "../../dx9sdk/include/d3dx9.h"
  58. #endif
  59. typedef HWND VD3DHWND;
  60. #endif
  61. #define GLMPRINTF(args)
  62. #define GLMPRINTSTR(args)
  63. #define GLMPRINTTEXT(args)
  64. #endif // defined(DX_TO_GL_ABSTRACTION)
  65. #endif // RENDERMECHANISM_H