BsGLUtil.h 915 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. namespace bs { namespace ct
  21. {
  22. /** @addtogroup GL
  23. * @{
  24. */
  25. /** Helper method that returns a platform specific GL support object. */
  26. GLSupport* getGLSupport()
  27. {
  28. assert(false);
  29. // TODOPORT - Not implemented
  30. return nullptr;
  31. }
  32. /** @} */
  33. }}
  34. #endif