Revision 4bfffdd5
Added by Leszek Koltunski 11 months ago
src/main/java/org/distorted/examples/meshfile/MeshFileRenderer.java | ||
---|---|---|
19 | 19 |
|
20 | 20 |
package org.distorted.examples.meshfile; |
21 | 21 |
|
22 |
import android.app.ActivityManager; |
|
23 | 22 |
import android.content.Context; |
24 |
import android.content.pm.ConfigurationInfo; |
|
25 | 23 |
import android.content.res.Resources; |
26 | 24 |
import android.graphics.Bitmap; |
27 | 25 |
import android.graphics.Canvas; |
... | ... | |
267 | 265 |
private void createPolygon() |
268 | 266 |
{ |
269 | 267 |
float A = 0.5f; |
270 |
float B = 0.1f;
|
|
268 |
float B = 0.5f;
|
|
271 | 269 |
|
272 |
int extraIndex = 2;
|
|
273 |
int extraVertices = 2;
|
|
274 |
int numBands = 2;
|
|
270 |
int extraIndex = 0;
|
|
271 |
int extraVertices = 0;
|
|
272 |
int numBands = 3;
|
|
275 | 273 |
|
276 | 274 |
float[] vertices = new float[] { -A,-A, A,-A, A,A, -A,A }; |
277 | 275 |
float[] bands = new float[2*numBands]; |
Also available in: Unified diff
build for API 34.