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#include "BsGLRenderWindowManager.h"
4#include "BsGLRenderAPI.h"
5#include "BsGLSupport.h"
6#include "Threading/BsAsyncOp.h"
7
8namespace bs
9{
10 GLRenderWindowManager::GLRenderWindowManager(ct::GLRenderAPI* renderSystem)
11 :mRenderSystem(renderSystem)
12 {
13 assert(mRenderSystem != nullptr);
14 }
15
16 SPtr<RenderWindow> GLRenderWindowManager::createImpl(RENDER_WINDOW_DESC& desc, UINT32 windowId,
17 const SPtr<RenderWindow>& parentWindow)
18 {
19 ct::GLSupport* glSupport = mRenderSystem->getGLSupport();
20
21 // Create the window
22 return glSupport->newWindow(desc, windowId, parentWindow);
23 }
24}