Project

General

Profile

« Previous | Next » 

Revision 7ba38dd4

Added by Leszek Koltunski over 2 years ago

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)

View differences:

src/main/java/org/distorted/objectlib/objects/TwistyDino4.java
21 21

  
22 22
import android.content.res.Resources;
23 23

  
24
import org.distorted.library.main.DistortedEffects;
25
import org.distorted.library.main.DistortedTexture;
26
import org.distorted.library.mesh.MeshSquare;
27 24
import org.distorted.library.type.Static3D;
28 25
import org.distorted.library.type.Static4D;
29 26

  
......
39 36

  
40 37
///////////////////////////////////////////////////////////////////////////////////////////////////
41 38

  
42
  public TwistyDino4(int[] numL, Static4D quat, Static3D move, DistortedTexture texture,
43
                     MeshSquare mesh, DistortedEffects effects, Resources res, int surfaceW, int surfaceH)
39
  public TwistyDino4(int[] numL, Static4D quat, Static3D move, Resources res)
44 40
    {
45
    super(numL, quat, move, texture, mesh, effects, res, surfaceW, surfaceH);
41
    super(numL, quat, move, res);
46 42
    }
47 43

  
48 44
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff