Revision e75d1866
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/inflate/InflateMeshList.java | ||
---|---|---|
32 | 32 |
public enum InflateMeshList |
33 | 33 |
{ |
34 | 34 |
Cubes ( 3 ), |
35 |
Rectangles ( 2 ),
|
|
35 |
Square ( 2 ),
|
|
36 | 36 |
Sphere ( 1 ), |
37 | 37 |
Quad ( 0 ), |
38 |
Triangles ( 1 ),
|
|
38 |
Triangle ( 1 ),
|
|
39 | 39 |
; |
40 | 40 |
|
41 | 41 |
static final int LENGTH = values().length; |
... | ... | |
162 | 162 |
mesh = new MeshCubes(cols, str, slic, mapFB, mapFB, mapLR, mapLR, mapTB, mapTB); |
163 | 163 |
} |
164 | 164 |
break; |
165 |
case Rectangles: mesh = new MeshSquare(cols,rows);
|
|
165 |
case Square : mesh = new MeshSquare(cols,rows);
|
|
166 | 166 |
break; |
167 | 167 |
case Sphere : mesh = new MeshSphere(rows); |
168 | 168 |
break; |
169 | 169 |
case Quad : mesh = new MeshQuad(); |
170 | 170 |
break; |
171 |
case Triangles : mesh = new MeshTriangle(rows);
|
|
171 |
case Triangle : mesh = new MeshTriangle(rows);
|
|
172 | 172 |
break; |
173 | 173 |
default: mesh = null; |
174 | 174 |
android.util.Log.e("Meshes", "Error: unimplemented Mesh!"); |
Also available in: Unified diff
Minor.