Revision 74686c71
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/object/RubikObjectList.java | ||
---|---|---|
25 | 25 |
import org.distorted.library.type.Static4D; |
26 | 26 |
import org.distorted.magic.R; |
27 | 27 |
|
28 |
import static org.distorted.magic.RubikRenderer.TEXTURE_SIZE; |
|
29 |
|
|
28 | 30 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
29 | 31 |
|
30 | 32 |
public enum RubikObjectList |
... | ... | |
82 | 84 |
} |
83 | 85 |
|
84 | 86 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
87 |
// TODO - currently all objects in the list are RubikCubes of various sizes |
|
85 | 88 |
|
86 |
public RubikObject create(Static4D quatCur, Static4D quatAcc, DistortedTexture texture, MeshFlat mesh, DistortedEffects effects)
|
|
89 |
public RubikObject create(Static4D quatCur, Static4D quatAcc) |
|
87 | 90 |
{ |
91 |
DistortedTexture texture = new DistortedTexture(TEXTURE_SIZE,TEXTURE_SIZE); |
|
92 |
DistortedEffects effects = new DistortedEffects(); |
|
93 |
MeshFlat mesh= new MeshFlat(20,20); |
|
94 |
|
|
88 | 95 |
return new RubikCube(mObjectSize, quatCur, quatAcc, texture, mesh, effects); |
89 | 96 |
} |
90 | 97 |
|
91 | 98 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
99 |
// TODO - currently all objects in the list are RubikCubes of various sizes |
|
92 | 100 |
|
93 | 101 |
public RubikObjectMovement getObjectMovementClass() |
94 | 102 |
{ |
Also available in: Unified diff
Small improvement.