Java 类com.badlogic.gdx.graphics.glutils.VertexArray 实例源码

项目:teavm-libgdx    文件:OverlayTransformer.java   
@Override
public void transformClass(ClassHolder cls, ClassReaderSource innerSource, Diagnostics diagnostics) {
    if (cls.getName().equals(BufferUtils.class.getName())) {
        transformBufferUtils(cls, innerSource);
    } else if (cls.getName().equals(TextureData.Factory.class.getName())) {
        transformTextureData(cls, innerSource);
    } else if (cls.getName().equals(FileHandle.class.getName())) {
        transformFileHandle(cls);
    } else if (cls.getName().equals(Pixmap.class.getName())) {
        replaceClass(cls, innerSource.get(PixmapEmulator.class.getName()));
    } else if (cls.getName().equals(Matrix4.class.getName())) {
        transformMatrix(cls, innerSource);
    } else if (cls.getName().equals(VertexArray.class.getName()) ||
            cls.getName().equals(VertexBufferObject.class.getName())) {
        replaceClass(cls, innerSource.get(VertexArrayEmulator.class.getName()));
    } else if (cls.getName().equals(IndexArray.class.getName()) ||
            cls.getName().equals(IndexBufferObject.class.getName())) {
        replaceClass(cls, innerSource.get(IndexArrayEmulator.class.getName()));
    }
}
项目:ingress-indonesia-dev    文件:Mesh.java   
public Mesh(Mesh.VertexDataType paramVertexDataType, boolean paramBoolean, int paramInt1, int paramInt2, VertexAttribute[] paramArrayOfVertexAttribute)
{
  if (paramVertexDataType == Mesh.VertexDataType.VertexBufferObject)
  {
    this.vertices = new VertexBufferObject(paramBoolean, paramInt1, paramArrayOfVertexAttribute);
    this.indices = new IndexBufferObject(paramBoolean, paramInt2);
    this.isVertexArray = false;
  }
  while (true)
  {
    addManagedMesh(Gdx.app, this);
    return;
    if (paramVertexDataType == Mesh.VertexDataType.VertexBufferObjectSubData)
    {
      this.vertices = new VertexBufferObjectSubData(paramBoolean, paramInt1, paramArrayOfVertexAttribute);
      this.indices = new IndexBufferObjectSubData(paramBoolean, paramInt2);
      this.isVertexArray = false;
    }
    else
    {
      this.vertices = new VertexArray(paramInt1, paramArrayOfVertexAttribute);
      this.indices = new IndexArray(paramInt2);
      this.isVertexArray = true;
    }
  }
}
项目:ingress-indonesia-dev    文件:Mesh.java   
public Mesh(boolean paramBoolean, int paramInt1, int paramInt2, VertexAttributes paramVertexAttributes)
{
  if ((Gdx.gl20 != null) || (Gdx.gl11 != null) || (forceVBO))
  {
    this.vertices = new VertexBufferObject(paramBoolean, paramInt1, paramVertexAttributes);
    this.indices = new IndexBufferObject(paramBoolean, paramInt2);
  }
  for (this.isVertexArray = false; ; this.isVertexArray = true)
  {
    addManagedMesh(Gdx.app, this);
    return;
    this.vertices = new VertexArray(paramInt1, paramVertexAttributes);
    this.indices = new IndexArray(paramInt2);
  }
}
项目:ingress-indonesia-dev    文件:Mesh.java   
public Mesh(boolean paramBoolean, int paramInt1, int paramInt2, VertexAttribute[] paramArrayOfVertexAttribute)
{
  if ((Gdx.gl20 != null) || (Gdx.gl11 != null) || (forceVBO))
  {
    this.vertices = new VertexBufferObject(paramBoolean, paramInt1, paramArrayOfVertexAttribute);
    this.indices = new IndexBufferObject(paramBoolean, paramInt2);
  }
  for (this.isVertexArray = false; ; this.isVertexArray = true)
  {
    addManagedMesh(Gdx.app, this);
    return;
    this.vertices = new VertexArray(paramInt1, paramArrayOfVertexAttribute);
    this.indices = new IndexArray(paramInt2);
  }
}