Revision 440f8e33
Added by Leszek Koltunski over 2 years ago
| src/main/java/org/distorted/objectlib/main/ObjectControl.java | ||
|---|---|---|
| 9 | 9 |
|
| 10 | 10 |
package org.distorted.objectlib.main; |
| 11 | 11 |
|
| 12 |
import android.app.Activity; |
|
| 13 | 12 |
import android.content.SharedPreferences; |
| 14 |
import android.util.DisplayMetrics; |
|
| 15 | 13 |
import android.view.MotionEvent; |
| 16 | 14 |
|
| 17 | 15 |
import org.distorted.library.main.QuatHelper; |
| ... | ... | |
| 505 | 503 |
// PUBLIC API |
| 506 | 504 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
| 507 | 505 |
|
| 508 |
public ObjectControl(Activity act, ObjectLibInterface actioner)
|
|
| 506 |
public ObjectControl(ObjectLibInterface actioner) |
|
| 509 | 507 |
{
|
| 510 | 508 |
mIsAutomatic = false; |
| 511 | 509 |
|
| ... | ... | |
| 527 | 525 |
mMeshState =-1; |
| 528 | 526 |
mIconMode =-1; |
| 529 | 527 |
|
| 530 |
DisplayMetrics dm = new DisplayMetrics(); |
|
| 531 |
act.getWindowManager().getDefaultDisplay().getMetrics(dm); |
|
| 528 |
mDensity = actioner.getScreenDensity(); |
|
| 532 | 529 |
|
| 533 |
mDensity = dm.densityDpi; |
|
| 534 |
|
|
| 535 |
mPreRender = new ObjectPreRender(act,this,actioner); |
|
| 530 |
mPreRender = new ObjectPreRender(this,actioner); |
|
| 536 | 531 |
mInterface = actioner; |
| 537 | 532 |
} |
| 538 | 533 |
|
Also available in: Unified diff
remove all references to android.Context and android.Activity from distorted-objectlib