Examples of flip()


Examples of java.nio.FloatBuffer.flip()

      } else {
        // --- using extensions
        final FloatBuffer identityTranspose = BufferUtils.createFloatBuffer(16).put(
            new float[] { 1, 0, 0, 0, 0, 1, 0, 0,
              0, 0, 1, 0, 0, 0, 0, 1});
        identityTranspose.flip();
        glLoadTransposeMatrixARB(identityTranspose);
      }
      float h = (float) display_parent.getHeight() / (float) display_parent.getWidth();
      glFrustum(-1.0f, 1.0f, -h, h, 5.0f, 60.0f);
      glMatrixMode(GL_MODELVIEW);
View Full Code Here

Examples of java.nio.IntBuffer.flip()

    IntBuffer direct_buffer = lookupBuffer(buffer);
    direct_buffer.clear();
    int saved_position = buffer.position();
    direct_buffer.put(buffer);
    buffer.position(saved_position);
    direct_buffer.flip();
    return direct_buffer;
  }

  private static LongBuffer lookupBuffer(LongBuffer buffer) {
    CachedBuffers buffers = getCachedBuffers(buffer.remaining()*8);
 
View Full Code Here

Examples of java.nio.IntBuffer.flip()

          }
        }
      }
    }
    cursorDelays.put(2000).put(2000).put(2000);
    cursorDelays.flip();
    cursorImages.flip();

    cursors[1] = new Cursor(cursorWidth, cursorHeight, cursorWidth/2, cursorHeight/2, cursorImageCount, cursorImages, cursorDelays);
    // ----------------------------------
View Full Code Here

Examples of java.nio.IntBuffer.flip()

        }
      }
      step += step;
    }
    cursorImages.flip();
    cursorDelays.flip();
    cursors[2] = new Cursor(cursorWidth, cursorHeight, cursorWidth/2, cursorHeight/2, cursorImageCount, cursorImages, cursorDelays);
    // ----------------------------------

    Mouse.setNativeCursor(cursors[0]);
  }
View Full Code Here

Examples of java.nio.LongBuffer.flip()

    LongBuffer direct_buffer = lookupBuffer(buffer);
    direct_buffer.clear();
    int saved_position = buffer.position();
    direct_buffer.put(buffer);
    buffer.position(saved_position);
    direct_buffer.flip();
    return direct_buffer;
  }

  private static DoubleBuffer lookupBuffer(DoubleBuffer buffer) {
    CachedBuffers buffers = getCachedBuffers(buffer.remaining()*8);
 
View Full Code Here

Examples of java.nio.MappedByteBuffer.flip()

        mbb.putInt(1, 1);
        mbb.position(50);
        mbb.putInt(50);

        mbb.flip();
        mbb.get();
        assertEquals(1, mbb.getInt());

        mbb.position(50);
        assertEquals(50, mbb.getInt());
View Full Code Here

Examples of java.nio.ShortBuffer.flip()

    ShortBuffer direct_buffer = lookupBuffer(buffer);
    direct_buffer.clear();
    int saved_position = buffer.position();
    direct_buffer.put(buffer);
    buffer.position(saved_position);
    direct_buffer.flip();
    return direct_buffer;
  }

  private static FloatBuffer lookupBuffer(FloatBuffer buffer) {
    CachedBuffers buffers = getCachedBuffers(buffer.remaining()*4);
 
View Full Code Here

Examples of java.util.BitSet.flip()

  public void testbitsetlogic() throws Exception {
    final BitSet setallfalse = new BitSet(7);
    final BitSet invert = (BitSet) setallfalse.clone();
    assertThat(invert.length(), is(0));

    invert.flip(0, 6);
    assertThat(invert.length(), is(6));
    final BitSet set = new BitSet();
    set.set(3);
    set.set(4);
    set.set(5);
View Full Code Here

Examples of ma.glasnost.orika.metadata.FieldMap.flip()

            Iterator<FieldMap> iter = fields.iterator();
            while(iter.hasNext()) {
              FieldMap fieldMap = iter.next();
              if (!fieldMap.is(aMappingOfTheRequiredClassProperty())) {
                if ( !aToB) {
                  fieldMap = fieldMap.flip();
                }
                if (fieldMap.getSource().getName().equals(arg)) {
                  targetParameters.put(arg, fieldMap);
                  iter.remove();
                }
View Full Code Here

Examples of mage.game.permanent.Permanent.flip()

    @Override
    public boolean apply(Game game, Ability source) {
        Permanent permanent = game.getPermanent(source.getSourceId());
        Player controller = game.getPlayer(source.getControllerId());
        if (permanent != null && controller != null) {
            if (permanent.flip(game)) {
                ContinuousEffect effect = new ConditionalContinousEffect(new CopyTokenEffect(flipToken), FlippedCondition.getInstance(), "");
                game.addEffect(effect, source);
                game.informPlayers(new StringBuilder(controller.getName()).append(" flips ").append(permanent.getName()).toString());
                return true;
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.