1 |
8426bd6a
|
Leszek Koltunski
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
2 |
|
|
// Copyright 2016 Leszek Koltunski //
|
3 |
|
|
// //
|
4 |
|
|
// This file is part of Distorted. //
|
5 |
|
|
// //
|
6 |
|
|
// Distorted is free software: you can redistribute it and/or modify //
|
7 |
|
|
// it under the terms of the GNU General Public License as published by //
|
8 |
|
|
// the Free Software Foundation, either version 2 of the License, or //
|
9 |
|
|
// (at your option) any later version. //
|
10 |
|
|
// //
|
11 |
|
|
// Distorted 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 Distorted. If not, see <http://www.gnu.org/licenses/>. //
|
18 |
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
19 |
|
|
|
20 |
|
|
package org.distorted.library;
|
21 |
|
|
|
22 |
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
23 |
|
|
/**
|
24 |
|
|
* A list of quality levels.
|
25 |
|
|
* <p>
|
26 |
|
|
* One can set quality of a Postprocessing Effect to one of those. The lower the quality, the faster
|
27 |
|
|
* the rendering will be.
|
28 |
|
|
*
|
29 |
|
|
* @see DistortedEffectsPostprocess
|
30 |
|
|
*/
|
31 |
|
|
public enum EffectQuality
|
32 |
|
|
{
|
33 |
|
|
HIGHEST ( 0 ), // has to start from 0
|
34 |
|
|
HIGH ( 1 ),
|
35 |
|
|
MEDIUM ( 2 ),
|
36 |
|
|
LOW ( 3 );
|
37 |
|
|
|
38 |
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
39 |
|
|
|
40 |
472e51e1
|
Leszek Koltunski
|
final static float MULTIPLIER = 0.5f; // each next Quality level renders into 1/0.5 smaller buffers
|
41 |
8426bd6a
|
Leszek Koltunski
|
final static int LENGTH = values().length;
|
42 |
|
|
|
43 |
|
|
final int level;
|
44 |
|
|
|
45 |
|
|
EffectQuality(int level)
|
46 |
|
|
{
|
47 |
|
|
this.level = level;
|
48 |
|
|
}
|
49 |
|
|
}
|