Examples of flip()


Examples of com.badlogic.gdx.graphics.g2d.Sprite.flip()

    return t;
  }

  public static Sprite newSprite( String textureName ) {
    Sprite s = new Sprite( newTexture( textureName, false ) );
    s.flip( false, true );
    return s;
  }

  // ui
View Full Code Here

Examples of com.badlogic.gdx.graphics.g2d.TextureRegion.flip()

      for (int y = margin; y <= stopHeight; y += tileheight + spacing) {
        for (int x = margin; x <= stopWidth; x += tilewidth + spacing) {
          TextureRegion tileRegion = new TextureRegion(texture, x, y, tilewidth, tileheight);
          if (!yUp) {
            tileRegion.flip(false, true);
          }
          TiledMapTile tile = new StaticTiledMapTile(tileRegion);
          tile.setId(id);
          tileset.putTile(id++, tile);
        }
View Full Code Here

Examples of com.google.code.hs4j.network.buffer.IoBuffer.flip()

    assertEquals("P\t1\tmytest\tuser\tINDEX_1\tid,name,password\n",
        new String(buf.array(), 0, buf.limit()));

    IoBuffer buffer = IoBuffer.allocate(4);
    buffer.put("0\t1\n".getBytes());
    buffer.flip();

    assertEquals(1, this.cmd.getLatch().getCount());
    assertTrue(this.cmd.decode(null, buffer));
    assertEquals(0, this.cmd.getResponseStatus());
    assertEquals(1, this.cmd.getNumColumns());
View Full Code Here

Examples of com.google.code.yanf4j.buffer.IoBuffer.flip()

        IoBuffer buf = IoBuffer.allocate(16);
        buf.put((byte) 0xA4);
        buf.put((byte) 0xD0);
        buf.put((byte) 0xB3);
        buf.put((byte) 0xCD);
        buf.flip();

        buf.order(ByteOrder.LITTLE_ENDIAN);

        buf.mark();
        assertEquals(0xA4, buf.getUnsigned());
View Full Code Here

Examples of com.hazelcast.nio.DynamicByteBuffer.flip()

    public byte toByteArray()[] {
        if (buffer == null) {
            return new byte[0];
        }
        final DynamicByteBuffer duplicate = buffer.duplicate();
        duplicate.flip();
        final byte newBuffer[] = new byte[duplicate.limit()];
        duplicate.get(newBuffer);
        return newBuffer;
    }
View Full Code Here

Examples of com.sk89q.worldedit.CuboidClipboard.flip()

    blocks = new BaseBlock[facingCount][sizeX][sizeY][sizeZ];
   
    // copy the cubes for each direction
    copyCuboid(cuboid, 0); // normal one
    if (flipableX) {
      cuboid.flip(FlipDirection.WEST_EAST);
      copyCuboid(cuboid, 1);
     
      // z too? if so then make two more copies
      if (flipableZ) {
        cuboid.flip(FlipDirection.NORTH_SOUTH);
View Full Code Here

Examples of com.sk89q.worldedit.blocks.BaseBlock.flip()

            for (int xs = 0; xs < wid; ++xs) {
                for (int z = 0; z < length; ++z) {
                    for (int y = 0; y < height; ++y) {
                        final BaseBlock block1 = data[xs][y][z];
                        if (block1 != null) {
                            block1.flip(dir);
                        }

                        // Skip the center plane
                        if (xs == width - xs - 1) {
                            continue;
View Full Code Here

Examples of com.smaxe.uv.media.swing.JVideoScreen.flip()

                                public void actionPerformed(
                                    ActionEvent e) {
                                  videoScreenFlip
                                      .set(!videoScreenFlip
                                          .get());
                                  videoScreen
                                      .flip(videoScreenFlip
                                          .get());
                                }
                              });
View Full Code Here

Examples of com.taobao.gecko.core.buffer.IoBuffer.flip()

            IoBuffer buf =
                    IoBuffer.allocate(11 + 3 + ByteUtils.stringSize(fc.size())
                        + ByteUtils.stringSize(request.getOpaque()));
            ByteUtils.setArguments(buf, MetaEncodeCommand.RESULT_CMD, HttpStatus.Success, fc.size(),
                request.getOpaque());
            buf.flip();
            ctx.getConnection().transferFrom(buf, null, fc, 0, fc.size(), request.getOpaque(),
                new SingleRequestCallBackListener() {

                @Override
                public void onResponse(ResponseCommand responseCommand, Connection conn) {
View Full Code Here

Examples of engine.geometry.Vector.flip()

       
        // SAT axes for static shape
        int sSize = s.getSize();
        for (int i=0; i<sSize; i++) {
            s.getNormal(i, normal);
            normal.flip();
            double distance = Physics.minProjection(s, normal) - Physics.maxProjection(d, normal);
            collisions.add(axisCollision (normal, distance, velocity));
        }
       
        return Collision.merge(collisions, false); // collision if overlapping all axes
View Full Code Here
TOP
Copyright © 2015 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.