BsGLUtil.h 917 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #if BS_PLATFORM == BS_PLATFORM_WIN32
  5. #include "Win32/BsWin32GLSupport.h"
  6. #include "Win32/BsWin32VideoModeInfo.h"
  7. namespace bs { namespace ct
  8. {
  9. /** @addtogroup GL
  10. * @{
  11. */
  12. /** Helper method that returns a platform specific GL support object. */
  13. GLSupport* getGLSupport()
  14. {
  15. return bs_new<Win32GLSupport>();
  16. }
  17. /** @} */
  18. }}
  19. #elif BS_PLATFORM == BS_PLATFORM_LINUX
  20. #include "Linux/BsLinuxGLSupport.h"
  21. namespace bs { namespace ct
  22. {
  23. /** @addtogroup GL
  24. * @{
  25. */
  26. /** Helper method that returns a platform specific GL support object. */
  27. GLSupport* getGLSupport()
  28. {
  29. return bs_new<LinuxGLSupport>();
  30. }
  31. /** @} */
  32. }}
  33. #endif