Project

General

Profile

« Previous | Next » 

Revision dd00d051

Added by Leszek Koltunski over 2 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/objectlib/automator/ObjectAutomatorWhole.java
29 29
import org.distorted.library.effect.MatrixEffectMove;
30 30
import org.distorted.library.effect.MatrixEffectScale;
31 31
import org.distorted.library.main.DistortedEffects;
32
import org.distorted.library.main.DistortedFramebuffer;
32 33
import org.distorted.library.main.DistortedNode;
33
import org.distorted.library.main.DistortedScreen;
34 34
import org.distorted.library.main.DistortedTexture;
35 35
import org.distorted.library.mesh.MeshQuad;
36 36
import org.distorted.library.type.Dynamic;
......
801 801
    mEffects[3].apply(scaleHand2);
802 802
    mEffects[3].apply(moveHand2);
803 803

  
804
    DistortedScreen screen = mControl.getScreen();
805
    mWidth = screen.getWidth();
806
    mHeight= screen.getHeight();
804
    DistortedFramebuffer frame = mControl.getFramebuffer();
805
    mWidth = frame.getWidth();
806
    mHeight= frame.getHeight();
807 807

  
808 808
    X0   = mWidth*0.65f;
809 809
    X1   = mWidth*0.50f;

Also available in: Unified diff