1 /***************************************************************************
3 * Copyright 2010,2011 BMW Car IT GmbH
4 * Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
19 ****************************************************************************/
21 #ifndef _BASEWINDOWSYSTEM_H_
22 #define _BASEWINDOWSYSTEM_H_
26 class BaseWindowSystem
29 BaseWindowSystem(Scene* pScene, InputManager* pInputManager )
31 : m_pInputManager(pInputManager)
34 , m_forceComposition(false)
38 virtual ~BaseWindowSystem()
42 virtual bool start() = 0;
43 virtual void stop() = 0;
44 virtual void allocatePlatformSurface(Surface *surface) = 0;
45 virtual void doScreenShot(std::string fileName) = 0;
46 virtual void doScreenShotOfLayer(std::string fileName, const uint id) = 0;
47 virtual void doScreenShotOfSurface(std::string fileName, const uint id, const uint layer_id) = 0;
49 unsigned long int mThreadId; // TODO: remove
51 virtual void ClearDamage();
52 InputManager* m_pInputManager;
57 bool m_forceComposition;
60 #endif /* _BASEWINDOWSYSTEM_H_ */