Revision e3900503
Added by Leszek Koltunski about 5 years ago
src/main/java/org/distorted/examples/check/CheckRenderer.java | ||
---|---|---|
1 | 1 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
2 | 2 |
// Copyright 2016 Leszek Koltunski // |
3 | 3 |
// // |
4 |
// This file is part of Distorted. // |
|
4 |
// This file is part of DistortedLibrary. //
|
|
5 | 5 |
// // |
6 |
// Distorted is free software: you can redistribute it and/or modify // |
|
6 |
// DistortedLibrary is free software: you can redistribute it and/or modify //
|
|
7 | 7 |
// it under the terms of the GNU General Public License as published by // |
8 | 8 |
// the Free Software Foundation, either version 2 of the License, or // |
9 | 9 |
// (at your option) any later version. // |
10 | 10 |
// // |
11 |
// Distorted is distributed in the hope that it will be useful, // |
|
11 |
// DistortedLibrary is distributed in the hope that it will be useful, //
|
|
12 | 12 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of // |
13 | 13 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // |
14 | 14 |
// GNU General Public License for more details. // |
15 | 15 |
// // |
16 | 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/>. // |
|
17 |
// along with DistortedLibrary. If not, see <http://www.gnu.org/licenses/>. //
|
|
18 | 18 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
19 | 19 |
|
20 | 20 |
package org.distorted.examples.check; |
... | ... | |
33 | 33 |
import org.distorted.library.effect.MatrixEffectScale; |
34 | 34 |
import org.distorted.library.effect.VertexEffectDeform; |
35 | 35 |
import org.distorted.library.effect.VertexEffectSwirl; |
36 |
import org.distorted.library.main.Distorted; |
|
36 |
import org.distorted.library.main.DistortedLibrary;
|
|
37 | 37 |
import org.distorted.library.main.DistortedEffects; |
38 | 38 |
import org.distorted.library.main.DistortedScreen; |
39 | 39 |
import org.distorted.library.main.DistortedTexture; |
... | ... | |
77 | 77 |
|
78 | 78 |
CheckActivity act = (CheckActivity)mView.getContext(); |
79 | 79 |
|
80 |
Distorted.setMax(EffectType.VERTEX ,act.getMaxV()); |
|
81 |
Distorted.setMax(EffectType.FRAGMENT,act.getMaxF()); |
|
80 |
DistortedLibrary.setMax(EffectType.VERTEX ,act.getMaxV());
|
|
81 |
DistortedLibrary.setMax(EffectType.FRAGMENT,act.getMaxF());
|
|
82 | 82 |
|
83 | 83 |
VertexEffectSwirl.enable(); |
84 | 84 |
VertexEffectDeform.enable(); |
... | ... | |
197 | 197 |
|
198 | 198 |
try |
199 | 199 |
{ |
200 |
Distorted.onCreate(mView.getContext()); |
|
200 |
DistortedLibrary.onCreate(mView.getContext());
|
|
201 | 201 |
} |
202 | 202 |
catch(Exception ex) |
203 | 203 |
{ |
Also available in: Unified diff
Rename all the classes that are not exported to application to 'Internal'