Revision efa8aa48
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/objects/RubikCube.java | ||
---|---|---|
33 | 33 |
import org.distorted.library.main.DistortedTexture; |
34 | 34 |
import org.distorted.library.mesh.MeshBase; |
35 | 35 |
import org.distorted.library.mesh.MeshJoined; |
36 |
import org.distorted.library.mesh.MeshRectangles;
|
|
36 |
import org.distorted.library.mesh.MeshSquare;
|
|
37 | 37 |
import org.distorted.library.type.Static1D; |
38 | 38 |
import org.distorted.library.type.Static3D; |
39 | 39 |
import org.distorted.library.type.Static4D; |
... | ... | |
114 | 114 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
115 | 115 |
|
116 | 116 |
RubikCube(int size, Static4D quat, DistortedTexture texture, |
117 |
MeshRectangles mesh, DistortedEffects effects, int[][] moves, Resources res, int scrWidth)
|
|
117 |
MeshSquare mesh, DistortedEffects effects, int[][] moves, Resources res, int scrWidth)
|
|
118 | 118 |
{ |
119 | 119 |
super(size, 60, quat, texture, mesh, effects, moves, RubikObjectList.CUBE, res, scrWidth); |
120 | 120 |
} |
... | ... | |
223 | 223 |
{ |
224 | 224 |
final int MESHES=6; |
225 | 225 |
int association = 1; |
226 |
MeshBase[] meshes = new MeshRectangles[MESHES];
|
|
227 |
meshes[0] = new MeshRectangles(loc,loc);
|
|
226 |
MeshBase[] meshes = new MeshSquare[MESHES];
|
|
227 |
meshes[0] = new MeshSquare(loc,loc);
|
|
228 | 228 |
meshes[0].setEffectAssociation(0,association,0); |
229 | 229 |
|
230 | 230 |
for(int i=1; i<MESHES; i++) |
Also available in: Unified diff
Rename Meshes.