Revision f988589e
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/examples/sink/SinkRenderer.java | ||
---|---|---|
84 | 84 |
float factor = (float)height/bmpHeight; |
85 | 85 |
|
86 | 86 |
sinkBmp.move( new Static3D((width-w)/2,0,0) ); |
87 |
sinkBmp.scale( new Static3D(factor,factor,factor) );
|
|
87 |
sinkBmp.scale( factor );
|
|
88 | 88 |
} |
89 | 89 |
else |
90 | 90 |
{ |
... | ... | |
92 | 92 |
float factor = (float)width/bmpWidth; |
93 | 93 |
|
94 | 94 |
sinkBmp.move( new Static3D(0,(height-h)/2,0) ); |
95 |
sinkBmp.scale( new Static3D(factor,factor,factor) );
|
|
95 |
sinkBmp.scale( factor );
|
|
96 | 96 |
} |
97 | 97 |
|
98 | 98 |
Distorted.onSurfaceChanged(width, height); |
... | ... | |
121 | 121 |
bmpHeight = bitmap.getHeight(); |
122 | 122 |
bmpWidth = bitmap.getWidth(); |
123 | 123 |
|
124 |
Dynamic1D dSink = new Dynamic1D(); |
|
125 |
dSink.setDuration(2000); |
|
126 |
dSink.setCount(0); |
|
124 |
Dynamic1D dSink = new Dynamic1D(2000,0.0f); |
|
127 | 125 |
dSink.add(new Static1D( 1)); |
128 | 126 |
dSink.add(new Static1D(10)); |
129 | 127 |
|
Also available in: Unified diff
Further reduce the distortedObject's API - now only 26 methods, 1/4 of the 104 before the reorganization.