VTB: release CVBuffer after it actually has been rendered
[xbmc.git] / xbmc / XBApplicationEx.h
blobf8b8c6deb053146a0b2e7981ce96ca28ca1e5b84
1 /*
2 * Copyright (C) 2005-2013 Team XBMC
3 * http://xbmc.org
5 * This Program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
8 * any later version.
10 * This Program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with XBMC; see the file COPYING. If not, see
17 * <http://www.gnu.org/licenses/>.
21 #ifndef XBAPPLICATIONEX_H
22 #define XBAPPLICATIONEX_H
24 #include "guilib/IWindowManagerCallback.h"
26 // Do not change the numbering, external scripts depend on them
27 enum {
28 EXITCODE_QUIT = 0,
29 EXITCODE_POWERDOWN = 64,
30 EXITCODE_RESTARTAPP= 65,
31 EXITCODE_REBOOT = 66,
34 class CXBApplicationEx : public IWindowManagerCallback
36 public:
37 CXBApplicationEx();
38 ~CXBApplicationEx();
40 // Variables for timing
41 bool m_bStop;
42 int m_ExitCode;
43 bool m_AppFocused;
44 bool m_renderGUI;
46 // Overridable functions for the 3D scene created by the app
47 virtual bool Initialize() { return true; }
48 virtual bool Cleanup() { return true; }
49 virtual void SetRenderGUI(bool renderGUI) {};
51 public:
52 INT Run();
53 VOID Destroy();
55 private:
58 #endif /* XBAPPLICATIONEX_H */