Revision f988589e
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/examples/save/SaveRenderer.java | ||
---|---|---|
80 | 80 |
|
81 | 81 |
s0 = new Static1D(boobsSink); |
82 | 82 |
|
83 |
diSink = new Dynamic1D(); |
|
84 |
diSink.setCount(0.5f); |
|
85 |
diSink.setDuration(0); |
|
83 |
diSink = new Dynamic1D(0,0.5f); |
|
86 | 84 |
diSink.add(s0); |
87 | 85 |
} |
88 | 86 |
|
... | ... | |
170 | 168 |
float factor = (float)height/bmpHeight; |
171 | 169 |
|
172 | 170 |
mGirl.move( new Static3D((width-w)/2,0,0) ); |
173 |
mGirl.scale( new Static3D(factor,factor,factor) );
|
|
171 |
mGirl.scale(factor);
|
|
174 | 172 |
} |
175 | 173 |
else |
176 | 174 |
{ |
... | ... | |
178 | 176 |
float factor = (float)width/bmpWidth; |
179 | 177 |
|
180 | 178 |
mGirl.move( new Static3D(0,(height-h)/2,0) ); |
181 |
mGirl.scale(new Static3D(factor,factor,factor));
|
|
179 |
mGirl.scale(factor);
|
|
182 | 180 |
} |
183 | 181 |
|
184 | 182 |
Distorted.onSurfaceChanged(width, height); |
Also available in: Unified diff
Further reduce the distortedObject's API - now only 26 methods, 1/4 of the 104 before the reorganization.