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/main/Twisty12.java
53 53

  
54 54
///////////////////////////////////////////////////////////////////////////////////////////////////
55 55

  
56
  public Twisty12(int[] numLayers, float realSize, Static4D quat, Static3D move, DistortedTexture texture,
57
                  MeshSquare mesh, DistortedEffects effects, Resources res, int surfaceW, int surfaceH)
56
  public Twisty12(int[] numLayers, float realSize, Static4D quat, Static3D move, Resources res)
58 57
    {
59
    super(numLayers, realSize, quat, move, texture, mesh, effects, res, surfaceW, surfaceH);
58
    super(numLayers, realSize, quat, move, res);
60 59
    }
61 60

  
62 61
///////////////////////////////////////////////////////////////////////////////////////////////////
......
82 81

  
83 82
///////////////////////////////////////////////////////////////////////////////////////////////////
84 83

  
85
  protected int getFOV()
84
  public int getFOV()
86 85
    {
87 86
    return 30;
88 87
    }

Also available in: Unified diff