Revision 5acaa863
Added by Leszek Koltunski over 4 years ago
src/main/java/org/distorted/examples/singlemesh/SingleMeshRenderer.java | ||
---|---|---|
136 | 136 |
|
137 | 137 |
public void onSurfaceChanged(GL10 glUnused, int width, int height) |
138 | 138 |
{ |
139 |
final float SCALE = 0.4f;
|
|
139 |
final float SCALE = 0.3f;
|
|
140 | 140 |
mScreenMin = Math.min(width, height); |
141 | 141 |
float factor = SCALE*mScreenMin; |
142 | 142 |
mScale.set(factor,factor,factor); |
... | ... | |
311 | 311 |
final int NUM_CUBITS = CUBIT_MOVES.length; |
312 | 312 |
MeshBase[] cubits = new MeshBase[NUM_CUBITS]; |
313 | 313 |
|
314 |
cubits[0] = createCubitMesh();
|
|
314 |
cubits[NUM_CUBITS-1] = createCubitMesh(); // NUM_CUBITS-1 (or anything non-zero!)
|
|
315 | 315 |
|
316 |
for(int i=1; i<NUM_CUBITS; i++)
|
|
316 |
for(int i=0; i<NUM_CUBITS-1; i++)
|
|
317 | 317 |
{ |
318 |
cubits[i] = cubits[0].copy(true);
|
|
318 |
cubits[i] = cubits[NUM_CUBITS-1].copy(true);
|
|
319 | 319 |
} |
320 | 320 |
|
321 | 321 |
for(int i=0; i<NUM_CUBITS; i++) |
Also available in: Unified diff
Progres with SingleMesh