Revision a4d59c0b
Added by Leszek Koltunski over 5 years ago
src/main/java/org/distorted/examples/transparency/TransparencyRenderer.java | ||
---|---|---|
47 | 47 |
|
48 | 48 |
private static final int[] OBJECTS = |
49 | 49 |
{ |
50 |
+9, -10, +2, 0xffff0000,
|
|
51 |
-9, +10, -2, 0xffffff00
|
|
50 |
+9, +10, +2, 0xffff0000,
|
|
51 |
-9, -10, -2, 0xffffff00
|
|
52 | 52 |
}; |
53 | 53 |
|
54 | 54 |
private static final int NUM_OBJECTS = OBJECTS.length/NUM; |
... | ... | |
217 | 217 |
float size= 0.02f*OBJ_SIZE; |
218 | 218 |
mScreenMin = width<height ? width:height; |
219 | 219 |
|
220 |
float factor = 0.70f*mScreenMin/OBJ_SIZE;
|
|
220 |
float factor = 0.65f*mScreenMin/OBJ_SIZE;
|
|
221 | 221 |
mScale.set(factor,factor,factor); |
222 |
mCenter.set((float)OBJ_SIZE/2, (float)OBJ_SIZE/2, (float)OBJ_SIZE/2 );
|
|
222 |
mCenter.set((float)OBJ_SIZE/2, (float)OBJ_SIZE/2, 0 );
|
|
223 | 223 |
mMove.set( (width -factor*OBJ_SIZE)/2 ,(height-factor*OBJ_SIZE)/2 ,0); |
224 | 224 |
|
225 | 225 |
for(int i=0; i<NUM_OBJECTS; i++) |
Also available in: Unified diff
Massive: make the coordinate system agree with that of OpenGL (i.e. invert the Y axis).