Revision f988589e
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/examples/monalisa/MonaLisaRenderer.java | ||
---|---|---|
63 | 63 |
rLeft = new Static4D(-10,-10,25,25); |
64 | 64 |
rRight= new Static4D( 10, -5,25,25); |
65 | 65 |
|
66 |
dLeft = new Dynamic3D(); |
|
67 |
dRight= new Dynamic3D(); |
|
68 |
|
|
69 |
dLeft.setDuration(1000); |
|
70 |
dRight.setDuration(1000); |
|
71 |
|
|
72 |
dLeft.setCount(0); |
|
73 |
dRight.setCount(0); |
|
66 |
dLeft = new Dynamic3D(1000,0.0f); |
|
67 |
dRight= new Dynamic3D(1000,0.0f); |
|
74 | 68 |
|
75 | 69 |
dLeft.add( new Static3D( 0, 0,0) ); |
76 | 70 |
dLeft.add( new Static3D(-20,-20,0) ); |
... | ... | |
101 | 95 |
float factor = (float)height/bmpHeight; |
102 | 96 |
|
103 | 97 |
monaLisa.move( new Static3D((width-w)/2,0,0) ); |
104 |
monaLisa.scale( new Static3D(factor,factor,factor) );
|
|
98 |
monaLisa.scale(factor);
|
|
105 | 99 |
} |
106 | 100 |
else |
107 | 101 |
{ |
... | ... | |
109 | 103 |
float factor = (float)width/bmpWidth; |
110 | 104 |
|
111 | 105 |
monaLisa.move( new Static3D(0,(height-h)/2,0) ); |
112 |
monaLisa.scale( new Static3D(factor,factor,factor) );
|
|
106 |
monaLisa.scale(factor);
|
|
113 | 107 |
} |
114 | 108 |
|
115 | 109 |
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.