VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/VBox2DHelpers.h@ 82781

Last change on this file since 82781 was 76581, checked in by vboxsync, 5 years ago

Fe/QT: scm header guard alignment.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.2 KB
Line 
1/* $Id: VBox2DHelpers.h 76581 2019-01-01 06:24:57Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - 2D Video Acceleration helpers declarations.
4 */
5
6/*
7 * Copyright (C) 2006-2019 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#ifndef FEQT_INCLUDED_SRC_VBox2DHelpers_h
19#define FEQT_INCLUDED_SRC_VBox2DHelpers_h
20#ifndef RT_WITHOUT_PRAGMA_ONCE
21# pragma once
22#endif
23
24#if defined(VBOX_GUI_USE_QGL) || defined(VBOX_WITH_VIDEOHWACCEL)
25
26/* Qt includes: */
27#include <QtGlobal>
28
29/** 2D Video Acceleration Helpers */
30namespace VBox2DHelpers
31{
32 /** Returns whether 2D Video Acceleration is available. */
33 bool isAcceleration2DVideoAvailable();
34
35 /** Returns 2D offscreen video memory required for 2D Video Acceleration. */
36 quint64 required2DOffscreenVideoMemory();
37};
38
39#endif /* VBOX_GUI_USE_QGL || VBOX_WITH_VIDEOHWACCEL */
40
41#endif /* !FEQT_INCLUDED_SRC_VBox2DHelpers_h */
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use