Revision be169c10
Added by Leszek Koltunski over 6 years ago
build.gradle | ||
---|---|---|
5 | 5 |
|
6 | 6 |
defaultConfig { |
7 | 7 |
applicationId "org.distorted.examples" |
8 |
minSdkVersion 18
|
|
8 |
minSdkVersion 21
|
|
9 | 9 |
targetSdkVersion 27 |
10 | 10 |
} |
11 | 11 |
|
src/main/AndroidManifest.xml | ||
---|---|---|
4 | 4 |
android:versionCode="1" |
5 | 5 |
android:versionName="1.0" > |
6 | 6 |
|
7 |
<uses-sdk android:minSdkVersion="11" android:targetSdkVersion="23" />
|
|
7 |
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="23" />
|
|
8 | 8 |
<uses-feature android:glEsVersion="0x00030000" android:required="true" /> |
9 | 9 |
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> |
10 | 10 |
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> |
src/main/java/org/distorted/examples/glow/GlowRenderer.java | ||
---|---|---|
66 | 66 |
|
67 | 67 |
mRootW = LEAF_SIZE; |
68 | 68 |
mRootH = LEAF_SIZE; |
69 |
mLeaf = new DistortedTexture(LEAF_SIZE,LEAF_SIZE);
|
|
69 |
mLeaf = new DistortedTexture(mRootW,mRootH);
|
|
70 | 70 |
mMove = new Static3D(0,0,0); |
71 | 71 |
mScale = new Static3D(1,1,1); |
72 | 72 |
mRadius= new Static1D(25); |
... | ... | |
123 | 123 |
{ |
124 | 124 |
float qw = (float)width /mRootW; |
125 | 125 |
float qh = (float)height/mRootH; |
126 |
float factor = 0.5f* (qw<qh ? qw:qh);
|
|
126 |
float factor = 0.8f* (qw<qh ? qw:qh);
|
|
127 | 127 |
int w = (int)(factor*mRootW); |
128 | 128 |
int h = (int)(factor*mRootH); |
129 | 129 |
|
Also available in: Unified diff
Minor.