1 /*
2  * Stellarium Scenery3d Plug-in
3  *
4  * Copyright (C) 2014 Simon Parzer, Peter Neubauer, Georg Zotti, Andrei Borza, Florian Schaukowitsch
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA  02110-1335, USA.
19  */
20 
21 #ifndef S3DENUM_HPP
22 #define S3DENUM_HPP
23 
24 #include <QObject>
25 
26 //! @file This file contains some enums useful throughout the Scenery3d plugin (settings, etc)
27 
28 struct S3DEnum
29 {
30 	Q_GADGET
31 
32 public:
33 	//! Determines the method used for cubemap creation
34 	enum CubemappingMode
35 	{
36 		//! Uses 6 textures, one for each side of the cube. Seems to be the best for old Intel drivers.
37 		CM_TEXTURES,
38 		//! Uses a single GL_TEXTURE_CUBEMAP, seems to work a bit better on "modern" GPUs
39 		CM_CUBEMAP,
40 		//! Uses a single GL_TEXTURE_CUBEMAP and a geometry shader to render all 6 sides in one pass.
41 		CM_CUBEMAP_GSACCEL
42 	};
43 	Q_ENUM(CubemappingMode)
44 
45 	//! Contains different shadow filter settings
46 	enum ShadowFilterQuality
47 	{
48 		//! Disables shadow filtering completely
49 		SFQ_OFF,
50 		//! Enables OpenGL hardware shadow filtering
51 		SFQ_HARDWARE,
52 		//! Uses a 16-tap Poisson disk
53 		SFQ_LOW,
54 		//! Uses a 16-tap Poisson disk + hardware filtering
55 		SFQ_LOW_HARDWARE,
56 		//! Uses a 64-tap Poisson disk
57 		SFQ_HIGH,
58 		//! Uses a 64-tap Poisson disk + hardware filtering
59 		SFQ_HIGH_HARDWARE
60 	};
61 	Q_ENUM(ShadowFilterQuality)
62 };
63 
64 #endif
65