Revision ccf9fec5
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/objects/RubikCube.java | ||
---|---|---|
19 | 19 |
|
20 | 20 |
package org.distorted.objects; |
21 | 21 |
|
22 |
import android.content.res.Resources; |
|
22 | 23 |
import android.graphics.Canvas; |
23 | 24 |
import android.graphics.Paint; |
24 | 25 |
|
... | ... | |
98 | 99 |
|
99 | 100 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
100 | 101 |
|
101 |
RubikCube(int size, Static4D quatCur, Static4D quatAcc, DistortedTexture texture, MeshRectangles mesh, DistortedEffects effects, int[][] moves) |
|
102 |
RubikCube(int size, Static4D quatCur, Static4D quatAcc, DistortedTexture texture, |
|
103 |
MeshRectangles mesh, DistortedEffects effects, int[][] moves, Resources res) |
|
102 | 104 |
{ |
103 |
super(size, 60, quatCur,quatAcc,texture,mesh,effects,moves, RubikObjectList.CUBE); |
|
105 |
super(size, 60, quatCur,quatAcc,texture,mesh,effects,moves, RubikObjectList.CUBE, res);
|
|
104 | 106 |
} |
105 | 107 |
|
106 | 108 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Read the meshes from .dmesh files (rather than compute them dynamically).
This (along with single-mesh mode) hopefully makes the rendering much faster, while keeping the time needed for Object Change low.
The only downside: this increases the size of the release APK from 6 MB to 9.6 MB.