Revision 338babe8
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/main/RubikObjectLibInterface.java | ||
---|---|---|
31 | 31 |
import com.google.android.play.core.tasks.Task; |
32 | 32 |
import com.google.firebase.analytics.FirebaseAnalytics; |
33 | 33 |
|
34 |
import org.distorted.library.main.DistortedFramebuffer; |
|
35 | 34 |
import org.distorted.objectlib.helpers.ObjectLibInterface; |
36 | 35 |
import org.distorted.objectlib.main.ObjectType; |
37 | 36 |
|
... | ... | |
322 | 321 |
{ |
323 | 322 |
return SolverMain.cubitIsLocked(type,cubit); |
324 | 323 |
} |
325 |
|
|
326 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
327 |
|
|
328 |
public DistortedFramebuffer getFramebuffer() |
|
329 |
{ |
|
330 |
RubikActivity act = mAct.get(); |
|
331 |
return act.getScreen(); |
|
332 |
} |
|
333 | 324 |
} |
Also available in: Unified diff
Major change: separate the notion of a TwistyObject and its Node. Now,
1) the Node stays when we change objects (this makes transitions faster)
2) it's possible to just create an Object without adding it to the Screen (now app needs to explicitly create the Node and add it to its Screen itself)