package com.google.android.m4b.maps.bp;

import com.google.android.m4b.maps.bo.e;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.FloatBuffer;
import javax.microedition.khronos.opengles.GL11;

public class f
{
  private ByteBuffer a;
  private final boolean b;
  private final boolean c;
  private int d;
  private final int[] e;
  private boolean f;
  private int g;

  public f(int paramInt)
  {
    this.e = new int[bool1];
    this.f = false;
    boolean bool2;
    if ((paramInt & 0x8) != 0)
    {
      bool2 = bool1;
      this.b = bool2;
      if ((paramInt & 0x4) == 0)
        break label91;
    }
    while (true)
    {
      this.c = bool1;
      this.d = 12;
      if (this.c)
        this.d = (16 + this.d);
      if (this.b)
        this.d = (8 + this.d);
      return;
      bool2 = false;
      break;
      label91: bool1 = false;
    }
  }

  public final int a()
  {
    return this.g;
  }

  public final void a(e parame)
  {
    GL11 localGL111 = (GL11)parame.x();
    if (this.e[0] == 0)
    {
      GL11 localGL112 = (GL11)parame.x();
      localGL112.glGenBuffers(1, this.e, 0);
      localGL112.glBindBuffer(34962, this.e[0]);
      if (this.f)
      {
        this.a.rewind();
        localGL111.glBufferData(34962, this.a.capacity(), this.a, 35044);
        this.f = false;
      }
      localGL111.glVertexPointer(3, 5126, this.d, 0);
      if (!this.c)
        break label185;
      localGL111.glColorPointer(4, 5126, this.d, 12);
    }
    label185: for (int i = 28; ; i = 12)
    {
      if (this.b)
        localGL111.glTexCoordPointer(2, 5126, this.d, i);
      localGL111.glBindBuffer(34962, 0);
      return;
      localGL111.glBindBuffer(34962, this.e[0]);
      break;
    }
  }

  public void a(ByteBuffer paramByteBuffer)
  {
    this.a = paramByteBuffer;
    this.f = true;
    this.g = (this.a.capacity() / this.d);
  }

  public void b(e parame)
  {
    d(parame);
    this.a = null;
  }

  public final void c(e parame)
  {
    d(parame);
  }

  public final void d(e parame)
  {
    if (this.e[0] != 0)
    {
      if (parame != null)
        ((GL11)parame.x()).glDeleteBuffers(1, this.e, 0);
      this.e[0] = 0;
      if (this.a != null)
        this.a.clear();
    }
  }

  public static final class a extends f
  {
    public a(float[] paramArrayOfFloat, int paramInt)
    {
      super();
      ByteBuffer localByteBuffer = ByteBuffer.allocateDirect(80).order(ByteOrder.nativeOrder());
      localByteBuffer.asFloatBuffer().put(paramArrayOfFloat);
      super.a(localByteBuffer);
    }

    public final void a(ByteBuffer paramByteBuffer)
    {
      throw new UnsupportedOperationException("Immutable");
    }

    public final void b(e parame)
    {
      throw new UnsupportedOperationException("Immutable");
    }
  }
}

/* Location:           C:\Documents and Settings\Cesar Cabello Cea\Mis documentos\Downloads\apk-downloader\com.ikea.kompis-6_dex2jar.jar
 * Qualified Name:     com.google.android.m4b.maps.bp.f
 * JD-Core Version:    0.6.2
 */