Project

General

Profile

« Previous | Next » 

Revision 5b893eee

Added by Leszek Koltunski almost 4 years ago

Object node: size of screenWidth.

View differences:

src/main/java/org/distorted/objects/RubikObjectList.java
322 322

  
323 323
///////////////////////////////////////////////////////////////////////////////////////////////////
324 324

  
325
  public RubikObject create(int size, Static4D quat, int[][] moves, Resources res)
325
  public RubikObject create(int size, Static4D quat, int[][] moves, Resources res, int scrWidth)
326 326
    {
327 327
    DistortedTexture texture = new DistortedTexture();
328 328
    DistortedEffects effects = new DistortedEffects();
......
330 330

  
331 331
    switch(ordinal())
332 332
      {
333
      case 0: return new RubikCube    (size, quat, texture, mesh, effects, moves, res);
334
      case 1: return new RubikPyraminx(size, quat, texture, mesh, effects, moves, res);
333
      case 0: return new RubikCube    (size, quat, texture, mesh, effects, moves, res, scrWidth);
334
      case 1: return new RubikPyraminx(size, quat, texture, mesh, effects, moves, res, scrWidth);
335 335
      }
336 336

  
337 337
    return null;

Also available in: Unified diff