Revision 69942a83
Added by Leszek Koltunski over 8 years ago
src/main/java/org/distorted/examples/vertex3d/Vertex3DEffect.java | ||
---|---|---|
70 | 70 |
float x = (mInterCenter[0]*0.012f - 0.1f)*act.getWidth(); |
71 | 71 |
float y = (mInterCenter[1]*0.012f - 0.1f)*act.getHeight(); |
72 | 72 |
mCenterSta.set(x,y); |
73 |
|
|
74 |
act.setCenter(x,y); |
|
73 | 75 |
} |
74 | 76 |
|
75 | 77 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
105 | 107 |
float ry = mInterRegion[3] *factorY; |
106 | 108 |
|
107 | 109 |
mRegionSta.set(x,y,rx,ry); |
110 |
|
|
111 |
act.setRegion(x,y,rx); |
|
108 | 112 |
} |
109 | 113 |
|
110 | 114 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
449 | 453 |
fillCenterStatics(); |
450 | 454 |
setCenterText(); |
451 | 455 |
} |
452 |
|
|
453 |
Vertex3DActivity act = mAct.get(); |
|
454 |
|
|
455 |
act.setCenter(mCenterSta.getX(),mCenterSta.getY()); |
|
456 |
act.setRegion(mRegionSta.getX(),mRegionSta.getY(), mRegionSta.getZ()); |
|
457 | 456 |
} |
458 | 457 |
|
459 | 458 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Vertex3D: Correct setting regions.