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
-
Field Summary
Fields inherited from class com.prineside.luaj.mapping.InterfaceProxy
luaObj
-
Method Summary
Modifier and TypeMethodDescriptionvoid
bind()
Binds this IndexBufferObject for rendering with glDrawElements.void
dispose()
Disposes this IndexDatat and all its associated OpenGL resources.Returns the underlying ShortBuffer.getBuffer
(boolean p1) Returns the underlying ShortBuffer for reading or writing.int
int
void
Invalidates the IndexBufferObject so a new OpenGL buffer handle is created.void
setIndices
(short[] p1, int p2, int p3) Sets the indices of this IndexBufferObject, discarding the old indices.void
Copies the specified indices to the indices of this IndexBufferObject, discarding the old indices.void
unbind()
Unbinds this IndexBufferObject.void
updateIndices
(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.IndexData
Binds this IndexBufferObject for rendering with glDrawElements.- Specified by:
bind
in interfacecom.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 interfacecom.badlogic.gdx.utils.Disposable
- Specified by:
dispose
in interfacecom.badlogic.gdx.graphics.glutils.IndexData
-
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 useIndexData.setIndices(short[], int, int)
.- Specified by:
getBuffer
in interfacecom.badlogic.gdx.graphics.glutils.IndexData
- Returns:
- the underlying short buffer.
-
getBuffer
Description copied from interface:com.badlogic.gdx.graphics.glutils.IndexData
Returns the underlying ShortBuffer for reading or writing.- Specified by:
getBuffer
in 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:
getNumIndices
in interfacecom.badlogic.gdx.graphics.glutils.IndexData
- Returns:
- the number of indices currently stored in this buffer
-
getNumMaxIndices
public int getNumMaxIndices()- Specified by:
getNumMaxIndices
in 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.IndexData
Invalidates the IndexBufferObject so a new OpenGL buffer handle is created. Use this in case of a context loss.- Specified by:
invalidate
in interfacecom.badlogic.gdx.graphics.glutils.IndexData
-
setIndices
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 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:
setIndices
in 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.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()
andIndexData.unbind()
. The index data will be updated instantly.- Specified by:
setIndices
in 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.IndexData
Unbinds this IndexBufferObject.- Specified by:
unbind
in 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.IndexData
Update (a portion of) the indices.- Specified by:
updateIndices
in 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
-