Revision efa8aa48
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/objects/RubikPyraminx.java | ||
---|---|---|
32 | 32 |
import org.distorted.library.main.DistortedTexture; |
33 | 33 |
import org.distorted.library.mesh.MeshBase; |
34 | 34 |
import org.distorted.library.mesh.MeshJoined; |
35 |
import org.distorted.library.mesh.MeshRectangles;
|
|
36 |
import org.distorted.library.mesh.MeshTriangles;
|
|
35 |
import org.distorted.library.mesh.MeshSquare;
|
|
36 |
import org.distorted.library.mesh.MeshTriangle; |
|
37 | 37 |
import org.distorted.library.type.Static1D; |
38 | 38 |
import org.distorted.library.type.Static3D; |
39 | 39 |
import org.distorted.library.type.Static4D; |
... | ... | |
113 | 113 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
114 | 114 |
|
115 | 115 |
RubikPyraminx(int size, Static4D quat, DistortedTexture texture, |
116 |
MeshRectangles mesh, DistortedEffects effects, int[][] moves, Resources res, int scrWidth)
|
|
116 |
MeshSquare mesh, DistortedEffects effects, int[][] moves, Resources res, int scrWidth)
|
|
117 | 117 |
{ |
118 | 118 |
super(size, 30, quat, texture, mesh, effects, moves, RubikObjectList.PYRA, res, scrWidth); |
119 | 119 |
} |
... | ... | |
254 | 254 |
final int MESHES=4; |
255 | 255 |
|
256 | 256 |
int association = 1; |
257 |
MeshBase[] meshes = new MeshTriangles[MESHES];
|
|
257 |
MeshBase[] meshes = new MeshTriangle[MESHES]; |
|
258 | 258 |
|
259 |
meshes[0] = new MeshTriangles(9);
|
|
259 |
meshes[0] = new MeshTriangle(9); |
|
260 | 260 |
meshes[0].setEffectAssociation(0,association,0); |
261 | 261 |
|
262 | 262 |
for(int i=1; i<MESHES; i++) |
Also available in: Unified diff
Rename Meshes.