Revision 950511ed
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/examples/vertex3d/Vertex3DEffect.java | ||
---|---|---|
67 | 67 |
{ |
68 | 68 |
Vertex3DActivity act = mAct.get(); |
69 | 69 |
|
70 |
float x = (mInterCenter[0]*0.014f - 0.2f)*act.getWidth();
|
|
71 |
float y = (mInterCenter[1]*0.014f - 0.2f)*act.getHeight();
|
|
70 |
float x = (mInterCenter[0]*0.012f - 0.1f)*act.getWidth();
|
|
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 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
449 | 451 |
fillCenterStatics(); |
450 | 452 |
setCenterText(); |
451 | 453 |
} |
454 |
|
|
455 |
mAct.get().setCenter(mCenterSta.getX(),mCenterSta.getY()); |
|
452 | 456 |
} |
453 | 457 |
|
454 | 458 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
re-add center to Vertex3D