Revision f988589e
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/examples/plainmonalisa/RenderThread.java | ||
---|---|---|
84 | 84 |
rLeft = new Static4D(-10,-10,25,25); |
85 | 85 |
rRight= new Static4D( 10, -5,25,25); |
86 | 86 |
|
87 |
dLeft = new Dynamic3D(); |
|
88 |
dRight= new Dynamic3D(); |
|
89 |
|
|
90 |
dLeft.setDuration(1000); |
|
91 |
dRight.setDuration(1000); |
|
92 |
|
|
93 |
dLeft.setCount(0); |
|
94 |
dRight.setCount(0); |
|
87 |
dLeft = new Dynamic3D(1000,0.0f); |
|
88 |
dRight= new Dynamic3D(1000,0.0f); |
|
95 | 89 |
|
96 | 90 |
dLeft.add( new Static3D( 0, 0,0) ); |
97 | 91 |
dLeft.add( new Static3D(-20,-20,0) ); |
... | ... | |
225 | 219 |
float factor = (float)height/bmpHeight; |
226 | 220 |
|
227 | 221 |
monaLisa.move( new Static3D((width-w)/2,0,0) ); |
228 |
monaLisa.scale( new Static3D(factor,factor,factor) );
|
|
222 |
monaLisa.scale( factor );
|
|
229 | 223 |
} |
230 | 224 |
else |
231 | 225 |
{ |
... | ... | |
233 | 227 |
float factor = (float)width/bmpWidth; |
234 | 228 |
|
235 | 229 |
monaLisa.move( new Static3D(0,(height-h)/2,0) ); |
236 |
monaLisa.scale( new Static3D(factor,factor,factor) );
|
|
230 |
monaLisa.scale( factor );
|
|
237 | 231 |
} |
238 | 232 |
|
239 | 233 |
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.