Revision 3873e8e6
Added by Leszek Koltunski almost 9 years ago
| src/main/java/org/distorted/examples/mirror/MirrorRenderer.java | ||
|---|---|---|
| 43 | 43 |
|
| 44 | 44 |
class MirrorRenderer implements GLSurfaceView.Renderer |
| 45 | 45 |
{
|
| 46 |
private static final float MIRROR_SCALE = 0.60f; // each next mirror will be 60% of the size or the previous
|
|
| 46 |
private static final float MIRROR_SCALE = 0.70f; // each next mirror will be 70% of the size or the previous
|
|
| 47 | 47 |
private static final float HEAD_SCALE = 0.30f; // Head's height will be 30% of the height of the mirror |
| 48 | 48 |
private static final float MIRROR_MARGIN= 0.11f; // The frame of the mirror takes up 11% of its width |
| 49 |
private static final float MIRROR_MOVE = 0.13f; // Each next mirror is moved to the right by 13% of
|
|
| 49 |
private static final float MIRROR_MOVE = 0.12f; // Each next mirror is moved to the right by 12% of
|
|
| 50 | 50 |
// the length of the previous one |
| 51 | 51 |
|
| 52 | 52 |
private GLSurfaceView mView; |
| src/main/java/org/distorted/examples/sink/SinkRenderer.java | ||
|---|---|---|
| 36 | 36 |
import org.distorted.library.type.Dynamic1D; |
| 37 | 37 |
import org.distorted.library.type.Static1D; |
| 38 | 38 |
import org.distorted.library.type.Static3D; |
| 39 |
import org.distorted.library.type.Static4D; |
|
| 40 | 39 |
|
| 41 | 40 |
import android.graphics.Bitmap; |
| 42 | 41 |
import android.graphics.BitmapFactory; |
Also available in: Unified diff
Minor