4 * Copyright (C) 2011-2013 Team XBMC
7 * This Program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2, or (at your option)
12 * This Program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with XBMC; see the file COPYING. If not, see
19 * <http://www.gnu.org/licenses/>.
23 #include "EGLNativeType.h"
24 class CEGLNativeTypeAndroid : public CEGLNativeType
27 CEGLNativeTypeAndroid();
28 virtual ~CEGLNativeTypeAndroid();
29 virtual std::string GetNativeName() const { return "android"; };
30 virtual bool CheckCompatibility();
31 virtual void Initialize();
32 virtual void Destroy();
33 virtual int GetQuirks() { return EGL_QUIRK_NEED_WINDOW_FOR_RES | EGL_QUIRK_DESTROY_NATIVE_WINDOW_WITH_SURFACE; };
35 virtual bool CreateNativeDisplay();
36 virtual bool CreateNativeWindow();
37 virtual bool GetNativeDisplay(XBNativeDisplayType **nativeDisplay) const;
38 virtual bool GetNativeWindow(XBNativeWindowType **nativeWindow) const;
40 virtual bool DestroyNativeWindow();
41 virtual bool DestroyNativeDisplay();
43 virtual bool GetNativeResolution(RESOLUTION_INFO *res) const;
44 virtual bool SetNativeResolution(const RESOLUTION_INFO &res);
45 virtual bool ProbeResolutions(std::vector<RESOLUTION_INFO> &resolutions);
46 virtual bool GetPreferredResolution(RESOLUTION_INFO *res) const;
48 virtual bool ShowWindow(bool show);