| 1 | //************************************ bs::framework - Copyright 2018 Marko Pintera **************************************// |
| 2 | //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// |
| 3 | #pragma once |
| 4 | |
| 5 | #if BS_PLATFORM == BS_PLATFORM_WIN32 |
| 6 | |
| 7 | #include "Win32/BsWin32GLSupport.h" |
| 8 | #include "Win32/BsWin32VideoModeInfo.h" |
| 9 | |
| 10 | namespace bs { namespace ct |
| 11 | { |
| 12 | /** @addtogroup GL |
| 13 | * @{ |
| 14 | */ |
| 15 | |
| 16 | /** Helper method that returns a platform specific GL support object. */ |
| 17 | GLSupport* getGLSupport() |
| 18 | { |
| 19 | return bs_new<Win32GLSupport>(); |
| 20 | } |
| 21 | |
| 22 | /** @} */ |
| 23 | }} |
| 24 | |
| 25 | #elif BS_PLATFORM == BS_PLATFORM_LINUX |
| 26 | |
| 27 | #include "Linux/BsLinuxGLSupport.h" |
| 28 | |
| 29 | namespace bs { namespace ct |
| 30 | { |
| 31 | /** @addtogroup GL |
| 32 | * @{ |
| 33 | */ |
| 34 | |
| 35 | /** Helper method that returns a platform specific GL support object. */ |
| 36 | GLSupport* getGLSupport() |
| 37 | { |
| 38 | return bs_new<LinuxGLSupport>(); |
| 39 | } |
| 40 | |
| 41 | /** @} */ |
| 42 | }} |
| 43 | |
| 44 | #elif BS_PLATFORM == BS_PLATFORM_OSX |
| 45 | |
| 46 | #include "MacOS/BsMacOSGLSupport.h" |
| 47 | |
| 48 | namespace bs::ct |
| 49 | { |
| 50 | /** @addtogroup GL |
| 51 | * @{ |
| 52 | */ |
| 53 | |
| 54 | /** Helper method that returns a platform specific GL support object. */ |
| 55 | GLSupport* getGLSupport() |
| 56 | { |
| 57 | return bs_new<MacOSGLSupport>(); |
| 58 | } |
| 59 | |
| 60 | /** @} */ |
| 61 | } |
| 62 | #endif |