Project

General

Profile

« Previous | Next » 

Revision 7aae846c

Added by Leszek Koltunski almost 2 years ago

Crazy Planets: introduce cubit type and offset to the JSON; create (shared) mesh and all the JSONs.

View differences:

src/main/java/org/distorted/objectlib/main/TwistyJson.java
43 43
    super(jsonStream, meshState, iconMode, quat, move, scale, meshStream);
44 44
    }
45 45

  
46
///////////////////////////////////////////////////////////////////////////////////////////////////
47

  
48
  @Override
49
  public int getCubitRotationType(int cubitIndex)
50
    {
51
    return mReader.getCubitTypes()[cubitIndex];
52
    }
53

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

  
56
  @Override
57
  public float[] getCubitRowOffset(int cubitIndex)
58
    {
59
    return mReader.getCubitOffsets()[cubitIndex];
60
    }
61

  
46 62
///////////////////////////////////////////////////////////////////////////////////////////////////
47 63

  
48 64
  @Override

Also available in: Unified diff