Project

General

Profile

« Previous | Next » 

Revision 0c52f5da

Added by Leszek Koltunski about 3 years ago

Relax objectlib's requirements: it can be displayed not only on top of a DistortedScreen, but any DistortedFramebuffer.

View differences:

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.DistortedScreen;
34
import org.distorted.library.main.DistortedFramebuffer;
35 35
import org.distorted.objectlib.helpers.ObjectLibInterface;
36 36
import org.distorted.objectlib.main.ObjectControl;
37 37
import org.distorted.objectlib.main.ObjectType;
......
332 332

  
333 333
///////////////////////////////////////////////////////////////////////////////////////////////////
334 334

  
335
  public DistortedScreen getScreen()
335
  public DistortedFramebuffer getFramebuffer()
336 336
    {
337 337
    RubikActivity act = mAct.get();
338 338
    return act.getScreen();
src/main/java/org/distorted/tutorials/TutorialObjectLibInterface.java
19 19

  
20 20
package org.distorted.tutorials;
21 21

  
22
import org.distorted.library.main.DistortedScreen;
22
import org.distorted.library.main.DistortedFramebuffer;
23

  
23 24
import org.distorted.objectlib.helpers.ObjectLibInterface;
24 25
import org.distorted.objectlib.main.ObjectControl;
25 26
import org.distorted.objectlib.main.ObjectType;
......
74 75

  
75 76
///////////////////////////////////////////////////////////////////////////////////////////////////
76 77

  
77
  public DistortedScreen getScreen()
78
  public DistortedFramebuffer getFramebuffer()
78 79
    {
79 80
    TutorialActivity act = mAct.get();
80 81
    return act.getScreen();

Also available in: Unified diff