Class LJ_GDX_graphics_glutils.InstanceData_AD.LIP

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

public static class LJ_GDX_graphics_glutils.InstanceData_AD.LIP extends InterfaceProxy implements com.badlogic.gdx.graphics.glutils.InstanceData
  • Field Summary

    Fields inherited from class com.prineside.luaj.mapping.InterfaceProxy

    luaObj
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    bind(com.badlogic.gdx.graphics.glutils.ShaderProgram p1)
    Binds this InstanceData for rendering via glDrawArraysInstanced or glDrawElementsInstanced.
    void
    bind(com.badlogic.gdx.graphics.glutils.ShaderProgram p1, int[] p2)
    Binds this InstanceData for rendering via glDrawArraysInstanced or glDrawElementsInstanced.
    void
    Disposes this InstanceData and all its associated OpenGL resources.
    com.badlogic.gdx.graphics.VertexAttributes
     
    Returns the underlying FloatBuffer and marks it as dirty, causing the buffer contents to be uploaded on the next call to bind.
    getBuffer(boolean p1)
    Returns the underlying FloatBuffer for reading or writing.
    int
     
    int
     
    void
    Invalidates the InstanceData if applicable.
    void
    setInstanceData(float[] p1, int p2, int p3)
    Sets the vertices of this InstanceData, discarding the old vertex data.
    void
    Sets the vertices of this InstanceData, discarding the old vertex data.
    void
    unbind(com.badlogic.gdx.graphics.glutils.ShaderProgram p1)
    Unbinds this InstanceData.
    void
    unbind(com.badlogic.gdx.graphics.glutils.ShaderProgram p1, int[] p2)
    Unbinds this InstanceData.
    void
    updateInstanceData(int p1, float[] p2, int p3, int p4)
    Update (a portion of) the vertices.
    void
    updateInstanceData(int p1, FloatBuffer p2, int p3, int p4)
    Update (a portion of) the vertices.

    Methods inherited from class com.prineside.luaj.mapping.InterfaceProxy

    getLuaObj, read, write

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • bind

      public void bind(com.badlogic.gdx.graphics.glutils.ShaderProgram p1)
      Description copied from interface: com.badlogic.gdx.graphics.glutils.InstanceData
      Binds this InstanceData for rendering via glDrawArraysInstanced or glDrawElementsInstanced.
      Specified by:
      bind in interface com.badlogic.gdx.graphics.glutils.InstanceData
    • bind

      public void bind(com.badlogic.gdx.graphics.glutils.ShaderProgram p1, int[] p2)
      Description copied from interface: com.badlogic.gdx.graphics.glutils.InstanceData
      Binds this InstanceData for rendering via glDrawArraysInstanced or glDrawElementsInstanced.
      Specified by:
      bind in interface com.badlogic.gdx.graphics.glutils.InstanceData
      p2 - array containing the attribute locations.
    • dispose

      public void dispose()
      Description copied from interface: com.badlogic.gdx.graphics.glutils.InstanceData
      Disposes this InstanceData 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.InstanceData
    • getAttributes

      public com.badlogic.gdx.graphics.VertexAttributes getAttributes()
      Specified by:
      getAttributes in interface com.badlogic.gdx.graphics.glutils.InstanceData
      Returns:
      the VertexAttributes as specified during construction.
    • getBuffer

      public FloatBuffer getBuffer()
      Description copied from interface: com.badlogic.gdx.graphics.glutils.InstanceData
      Returns the underlying FloatBuffer and marks it as dirty, causing the buffer contents to be uploaded on the next call to bind. If you need immediate uploading use InstanceData.setInstanceData(float[], int, int); Any modifications made to the Buffer *after* the call to bind will not automatically be uploaded.
      Specified by:
      getBuffer in interface com.badlogic.gdx.graphics.glutils.InstanceData
      Returns:
      the underlying FloatBuffer holding the vertex data.
    • getBuffer

      public FloatBuffer getBuffer(boolean p1)
      Description copied from interface: com.badlogic.gdx.graphics.glutils.InstanceData
      Returns the underlying FloatBuffer for reading or writing.
      Specified by:
      getBuffer in interface com.badlogic.gdx.graphics.glutils.InstanceData
      Parameters:
      p1 - when true, the underlying buffer will be uploaded on the next call to bind. If you need immediate uploading use InstanceData.setInstanceData(float[], int, int).
      Returns:
      the underlying FloatBuffer holding the vertex data.
    • getNumInstances

      public int getNumInstances()
      Specified by:
      getNumInstances in interface com.badlogic.gdx.graphics.glutils.InstanceData
      Returns:
      the number of vertices this InstanceData stores
    • getNumMaxInstances

      public int getNumMaxInstances()
      Specified by:
      getNumMaxInstances in interface com.badlogic.gdx.graphics.glutils.InstanceData
      Returns:
      the number of vertices this InstanceData can store
    • invalidate

      public void invalidate()
      Description copied from interface: com.badlogic.gdx.graphics.glutils.InstanceData
      Invalidates the InstanceData if applicable. Use this in case of a context loss.
      Specified by:
      invalidate in interface com.badlogic.gdx.graphics.glutils.InstanceData
    • setInstanceData

      public void setInstanceData(FloatBuffer p1, int p2)
      Description copied from interface: com.badlogic.gdx.graphics.glutils.InstanceData
      Sets the vertices of this InstanceData, discarding the old vertex data. The count must equal the number of floats per vertex times the number of vertices to be copied to this InstanceData. The order of the vertex attributes must be the same as specified at construction time via VertexAttributes.

      This can be called in between calls to bind and unbind. The vertex data will be updated instantly.

      Specified by:
      setInstanceData in interface com.badlogic.gdx.graphics.glutils.InstanceData
      Parameters:
      p1 - the instance data
      p2 - the number of floats to copy
    • setInstanceData

      public void setInstanceData(float[] p1, int p2, int p3)
      Description copied from interface: com.badlogic.gdx.graphics.glutils.InstanceData
      Sets the vertices of this InstanceData, discarding the old vertex data. The count must equal the number of floats per vertex times the number of vertices to be copied to this VertexData. The order of the vertex attributes must be the same as specified at construction time via VertexAttributes.

      This can be called in between calls to bind and unbind. The vertex data will be updated instantly.

      Specified by:
      setInstanceData in interface com.badlogic.gdx.graphics.glutils.InstanceData
      Parameters:
      p1 - the instance data
      p2 - the offset to start copying the data from
      p3 - the number of floats to copy
    • unbind

      public void unbind(com.badlogic.gdx.graphics.glutils.ShaderProgram p1)
      Description copied from interface: com.badlogic.gdx.graphics.glutils.InstanceData
      Unbinds this InstanceData.
      Specified by:
      unbind in interface com.badlogic.gdx.graphics.glutils.InstanceData
    • unbind

      public void unbind(com.badlogic.gdx.graphics.glutils.ShaderProgram p1, int[] p2)
      Description copied from interface: com.badlogic.gdx.graphics.glutils.InstanceData
      Unbinds this InstanceData.
      Specified by:
      unbind in interface com.badlogic.gdx.graphics.glutils.InstanceData
      p2 - array containing the attribute locations.
    • updateInstanceData

      public void updateInstanceData(int p1, float[] p2, int p3, int p4)
      Description copied from interface: com.badlogic.gdx.graphics.glutils.InstanceData
      Update (a portion of) the vertices. Does not resize the backing buffer.
      Specified by:
      updateInstanceData in interface com.badlogic.gdx.graphics.glutils.InstanceData
      p2 - the instance data
      p3 - the offset to start copying the data from
      p4 - the number of floats to copy
    • updateInstanceData

      public void updateInstanceData(int p1, FloatBuffer p2, int p3, int p4)
      Description copied from interface: com.badlogic.gdx.graphics.glutils.InstanceData
      Update (a portion of) the vertices. Does not resize the backing buffer.
      Specified by:
      updateInstanceData in interface com.badlogic.gdx.graphics.glutils.InstanceData
      p2 - the vertex data
      p3 - the offset to start copying the data from
      p4 - the number of floats to copy