Revision d9c55dbe
Added by Leszek Koltunski over 7 years ago
| src/main/AndroidManifest.xml | ||
|---|---|---|
| 36 | 36 |
<activity android:name=".quaternion.QuaternionActivity" /> |
| 37 | 37 |
<activity android:name=".matrix3d.Matrix3DActivity" /> |
| 38 | 38 |
<activity android:name=".effects3d.Effects3DActivity" /> |
| 39 |
<activity android:name=".effects3d.Effects3DActivity2" android:theme="@style/Theme.AppCompat.NoActionBar"/>
|
|
| 39 |
<activity android:name=".effects3d.Effects3DActivity2"/> |
|
| 40 | 40 |
<activity android:name=".plainmonalisa.PlainMonaLisaActivity" /> |
| 41 | 41 |
<activity android:name=".save.SaveActivity"/> |
| 42 | 42 |
<activity android:name=".flag.FlagActivity"/> |
| src/main/java/org/distorted/examples/effects3d/Effects3DActivity2.java | ||
|---|---|---|
| 80 | 80 |
{
|
| 81 | 81 |
super.onCreate(savedState); |
| 82 | 82 |
|
| 83 |
setTheme(R.style.CustomActivityThemeNoActionBar); |
|
| 84 |
|
|
| 83 | 85 |
mTab = new Effects3DTab[NUM_TABS]; |
| 84 | 86 |
|
| 85 | 87 |
Bundle b = getIntent().getExtras(); |
| src/main/java/org/distorted/examples/effects3d/Effects3DEffect.java | ||
|---|---|---|
| 96 | 96 |
private View mButton, mEffect, mCenter, mRegion; |
| 97 | 97 |
private long mId; |
| 98 | 98 |
|
| 99 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
| 100 |
// requires knowledge about effect nature |
|
| 101 |
|
|
| 102 |
static void enableAllEffects() |
|
| 103 |
{
|
|
| 104 |
VertexEffectDeform.enable(); |
|
| 105 |
VertexEffectDistort.enable(); |
|
| 106 |
VertexEffectPinch.enable(); |
|
| 107 |
VertexEffectSink.enable(); |
|
| 108 |
VertexEffectSwirl.enable(); |
|
| 109 |
VertexEffectWave.enable(); |
|
| 110 |
|
|
| 111 |
FragmentEffectAlpha.enable(); |
|
| 112 |
FragmentEffectBrightness.enable(); |
|
| 113 |
FragmentEffectChroma.enable(); |
|
| 114 |
FragmentEffectContrast.enable(); |
|
| 115 |
FragmentEffectSaturation.enable(); |
|
| 116 |
|
|
| 117 |
PostprocessEffectBlur.enable(); |
|
| 118 |
PostprocessEffectGlow.enable(); |
|
| 119 |
} |
|
| 120 |
|
|
| 99 | 121 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
| 100 | 122 |
// requires knowledge about effect nature |
| 101 | 123 |
|
| src/main/java/org/distorted/examples/effects3d/Effects3DRenderer.java | ||
|---|---|---|
| 290 | 290 |
mCenterTexture.setTexture(bitmapC); |
| 291 | 291 |
mRegionTexture.setTexture(bitmapR); |
| 292 | 292 |
|
| 293 |
VertexEffectDeform.enable(); |
|
| 294 |
VertexEffectDistort.enable(); |
|
| 295 |
VertexEffectPinch.enable(); |
|
| 296 |
VertexEffectSink.enable(); |
|
| 297 |
VertexEffectSwirl.enable(); |
|
| 298 |
VertexEffectWave.enable(); |
|
| 299 |
|
|
| 300 |
FragmentEffectAlpha.enable(); |
|
| 301 |
FragmentEffectBrightness.enable(); |
|
| 302 |
FragmentEffectChroma.enable(); |
|
| 303 |
FragmentEffectContrast.enable(); |
|
| 304 |
FragmentEffectSaturation.enable(); |
|
| 305 |
|
|
| 306 |
PostprocessEffectBlur.enable(); |
|
| 307 |
PostprocessEffectGlow.enable(); |
|
| 293 |
Effects3DEffect.enableAllEffects(); |
|
| 308 | 294 |
|
| 309 | 295 |
try |
| 310 | 296 |
{
|
| src/main/res/values/styles.xml | ||
|---|---|---|
| 14 | 14 |
|
| 15 | 15 |
<!-- |
| 16 | 16 |
Theme for a wallpaper's setting activity that is designed to be on |
| 17 |
top of a light background. |
|
| 17 |
top of a light background. |
|
| 18 |
|
|
| 18 | 19 |
--> |
| 19 | 20 |
<style name="WallpaperSettingsLight" parent="@android:style/Theme.Light"> |
| 20 | 21 |
<item name="android:windowBackground">@android:drawable/screen_background_light_transparent</item> |
| ... | ... | |
| 23 | 24 |
<item name="android:windowAnimationStyle">@android:style/Animation.Translucent</item> |
| 24 | 25 |
</style> |
| 25 | 26 |
|
| 27 |
<style name="CustomActivityThemeNoActionBar" parent="@style/Theme.AppCompat.NoActionBar"> |
|
| 28 |
<item name="android:windowNoTitle">true</item> |
|
| 29 |
<item name="android:windowActionBar">false</item> |
|
| 30 |
<item name="android:windowFullscreen">true</item> |
|
| 31 |
<item name="android:windowContentOverlay">@null</item> |
|
| 32 |
</style> |
|
| 33 |
|
|
| 26 | 34 |
</resources> |
Also available in: Unified diff
Progress with Effects3D app.