Class LJ_GDX_graphics_glutils.IndexData_AA.LIP

java.lang.Object
com.prineside.luaj.mapping.InterfaceProxy
com.prineside.luaj.mapping.parts.LJ_GDX_graphics_glutils.IndexData_AA.LIP
All Implemented Interfaces:
com.badlogic.gdx.graphics.glutils.IndexData, com.badlogic.gdx.utils.Disposable, com.esotericsoftware.kryo.KryoSerializable
Enclosing class:
LJ_GDX_graphics_glutils.IndexData_AA

public static class LJ_GDX_graphics_glutils.IndexData_AA.LIP extends InterfaceProxy implements com.badlogic.gdx.graphics.glutils.IndexData
  • Method Details

    • bind

      public void bind()
      Description copied from interface: com.badlogic.gdx.graphics.glutils.IndexData
      Binds this IndexBufferObject for rendering with glDrawElements.
      Specified by:
      bind in interface com.badlogic.gdx.graphics.glutils.IndexData
    • dispose

      public void dispose()
      Description copied from interface: com.badlogic.gdx.graphics.glutils.IndexData
      Disposes this IndexDatat and all its associated OpenGL resources.
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable
      Specified by:
      dispose in interface com.badlogic.gdx.graphics.glutils.IndexData
    • getBuffer

      public ShortBuffer getBuffer()
      Description copied from interface: com.badlogic.gdx.graphics.glutils.IndexData

      Returns the underlying ShortBuffer. If you modify the buffer contents they will be uploaded on the next call to IndexData.bind(). If you need immediate uploading use IndexData.setIndices(short[], int, int).

      Specified by:
      getBuffer in interface com.badlogic.gdx.graphics.glutils.IndexData
      Returns:
      the underlying short buffer.
    • getBuffer

      public ShortBuffer getBuffer(boolean p1)
      Description copied from interface: com.badlogic.gdx.graphics.glutils.IndexData
      Returns the underlying ShortBuffer for reading or writing.
      Specified by:
      getBuffer in interface com.badlogic.gdx.graphics.glutils.IndexData
      Parameters:
      p1 - when true, the underlying buffer will be uploaded on the next call to IndexData.bind(). If you need immediate uploading use IndexData.setIndices(short[], int, int).
      Returns:
      the underlying short buffer.
    • getNumIndices

      public int getNumIndices()
      Specified by:
      getNumIndices in interface com.badlogic.gdx.graphics.glutils.IndexData
      Returns:
      the number of indices currently stored in this buffer
    • getNumMaxIndices

      public int getNumMaxIndices()
      Specified by:
      getNumMaxIndices in interface com.badlogic.gdx.graphics.glutils.IndexData
      Returns:
      the maximum number of indices this IndexBufferObject can store.
    • invalidate

      public void invalidate()
      Description copied from interface: com.badlogic.gdx.graphics.glutils.IndexData
      Invalidates the IndexBufferObject so a new OpenGL buffer handle is created. Use this in case of a context loss.
      Specified by:
      invalidate in interface com.badlogic.gdx.graphics.glutils.IndexData
    • setIndices

      public void setIndices(ShortBuffer p1)
      Description copied from interface: com.badlogic.gdx.graphics.glutils.IndexData
      Copies the specified indices to the indices of this IndexBufferObject, discarding the old indices. Copying start at the current Buffer.position() of the specified buffer and copied the Buffer.remaining() amount of indices. This can be called in between calls to IndexData.bind() and IndexData.unbind(). The index data will be updated instantly.
      Specified by:
      setIndices in interface com.badlogic.gdx.graphics.glutils.IndexData
      Parameters:
      p1 - the index data to copy
    • setIndices

      public void setIndices(short[] p1, int p2, int p3)
      Description copied from interface: com.badlogic.gdx.graphics.glutils.IndexData

      Sets the indices of this IndexBufferObject, discarding the old indices. The count must equal the number of indices to be copied to this IndexBufferObject.

      This can be called in between calls to IndexData.bind() and IndexData.unbind(). The index data will be updated instantly.

      Specified by:
      setIndices in interface com.badlogic.gdx.graphics.glutils.IndexData
      Parameters:
      p1 - the index data
      p2 - the offset to start copying the data from
      p3 - the number of shorts to copy
    • unbind

      public void unbind()
      Description copied from interface: com.badlogic.gdx.graphics.glutils.IndexData
      Unbinds this IndexBufferObject.
      Specified by:
      unbind in interface com.badlogic.gdx.graphics.glutils.IndexData
    • updateIndices

      public void updateIndices(int p1, short[] p2, int p3, int p4)
      Description copied from interface: com.badlogic.gdx.graphics.glutils.IndexData
      Update (a portion of) the indices.
      Specified by:
      updateIndices in interface com.badlogic.gdx.graphics.glutils.IndexData
      Parameters:
      p1 - offset in indices buffer
      p2 - the index data
      p3 - the offset to start copying the data from
      p4 - the number of shorts to copy