Package com.prineside.luaj.mapping.parts
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 Summary
Modifier and TypeMethodDescriptionvoidbind()Binds this IndexBufferObject for rendering with glDrawElements.voiddispose()Disposes this IndexDatat and all its associated OpenGL resources.Returns the underlying ShortBuffer.getBuffer(boolean p1) Returns the underlying ShortBuffer for reading or writing.intintvoidInvalidates the IndexBufferObject so a new OpenGL buffer handle is created.voidsetIndices(short[] p1, int p2, int p3) Sets the indices of this IndexBufferObject, discarding the old indices.voidCopies the specified indices to the indices of this IndexBufferObject, discarding the old indices.voidunbind()Unbinds this IndexBufferObject.voidupdateIndices(int p1, short[] p2, int p3, int p4) Update (a portion of) the indices.Methods inherited from class com.prineside.luaj.mapping.InterfaceProxy
getLuaObj, read, write
-
Method Details
-
bind
public void bind()Description copied from interface:com.badlogic.gdx.graphics.glutils.IndexDataBinds this IndexBufferObject for rendering with glDrawElements.- Specified by:
bindin interfacecom.badlogic.gdx.graphics.glutils.IndexData
-
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.graphics.glutils.IndexDataDisposes this IndexDatat and all its associated OpenGL resources.- Specified by:
disposein interfacecom.badlogic.gdx.utils.Disposable- Specified by:
disposein interfacecom.badlogic.gdx.graphics.glutils.IndexData
-
getBuffer
Description copied from interface:com.badlogic.gdx.graphics.glutils.IndexDataReturns 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 useIndexData.setIndices(short[], int, int).- Specified by:
getBufferin interfacecom.badlogic.gdx.graphics.glutils.IndexData- Returns:
- the underlying short buffer.
-
getBuffer
Description copied from interface:com.badlogic.gdx.graphics.glutils.IndexDataReturns the underlying ShortBuffer for reading or writing.- Specified by:
getBufferin interfacecom.badlogic.gdx.graphics.glutils.IndexData- Parameters:
p1- when true, the underlying buffer will be uploaded on the next call toIndexData.bind(). If you need immediate uploading useIndexData.setIndices(short[], int, int).- Returns:
- the underlying short buffer.
-
getNumIndices
public int getNumIndices()- Specified by:
getNumIndicesin interfacecom.badlogic.gdx.graphics.glutils.IndexData- Returns:
- the number of indices currently stored in this buffer
-
getNumMaxIndices
public int getNumMaxIndices()- Specified by:
getNumMaxIndicesin interfacecom.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.IndexDataInvalidates the IndexBufferObject so a new OpenGL buffer handle is created. Use this in case of a context loss.- Specified by:
invalidatein interfacecom.badlogic.gdx.graphics.glutils.IndexData
-
setIndices
Description copied from interface:com.badlogic.gdx.graphics.glutils.IndexDataCopies the specified indices to the indices of this IndexBufferObject, discarding the old indices. Copying start at the currentBuffer.position()of the specified buffer and copied theBuffer.remaining()amount of indices. This can be called in between calls toIndexData.bind()andIndexData.unbind(). The index data will be updated instantly.- Specified by:
setIndicesin interfacecom.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.IndexDataSets 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()andIndexData.unbind(). The index data will be updated instantly.- Specified by:
setIndicesin interfacecom.badlogic.gdx.graphics.glutils.IndexData- Parameters:
p1- the index datap2- the offset to start copying the data fromp3- the number of shorts to copy
-
unbind
public void unbind()Description copied from interface:com.badlogic.gdx.graphics.glutils.IndexDataUnbinds this IndexBufferObject.- Specified by:
unbindin interfacecom.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.IndexDataUpdate (a portion of) the indices.- Specified by:
updateIndicesin interfacecom.badlogic.gdx.graphics.glutils.IndexData- Parameters:
p1- offset in indices bufferp2- the index datap3- the offset to start copying the data fromp4- the number of shorts to copy
-