Revision 480b827b
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/meshfile/MeshFileRenderer.java | ||
---|---|---|
181 | 181 |
0xff00ff00, |
182 | 182 |
0xff0000ff, |
183 | 183 |
0xffff0000 }; |
184 |
return createTetrahedrenTexture(TET_COLORS4);
|
|
184 |
return createTetrahedronTexture(TET_COLORS4);
|
|
185 | 185 |
case R.raw.predeform : return createGridTexture(3); |
186 | 186 |
case R.raw.cube2 : |
187 | 187 |
case R.raw.cube3 : |
... | ... | |
200 | 200 |
0xff0000ff, |
201 | 201 |
0xffff0000, |
202 | 202 |
0xff000000 }; |
203 |
return createTetrahedrenTexture(TET_COLORS5); |
|
203 |
return createTetrahedronTexture(TET_COLORS5); |
|
204 |
case R.raw.dino : final int[] TET_COLORS7 = new int[] { 0xffffff00, |
|
205 |
0xffffffff, |
|
206 |
0xff0000ff, |
|
207 |
0xff00ff00, |
|
208 |
0xffff0000, |
|
209 |
0xffb5651d, |
|
210 |
0xff000000 }; |
|
211 |
return createTetrahedronTexture(TET_COLORS7); |
|
204 | 212 |
} |
205 | 213 |
|
206 | 214 |
return null; |
... | ... | |
259 | 267 |
|
260 | 268 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
261 | 269 |
|
262 |
private Bitmap createTetrahedrenTexture(int[] faceColors)
|
|
270 |
private Bitmap createTetrahedronTexture(int[] faceColors)
|
|
263 | 271 |
{ |
264 | 272 |
final int FACES=faceColors.length; |
265 | 273 |
int SIZE = 200; |
Also available in: Unified diff
MeshFile app: add a texture for the Dino mesh.