Package com.prineside.luaj.mapping.parts
Class LJ_GDX_graphics_glutils.VertexData_AP.LIP
java.lang.Object
com.prineside.luaj.mapping.InterfaceProxy
com.prineside.luaj.mapping.parts.LJ_GDX_graphics_glutils.VertexData_AP.LIP
- All Implemented Interfaces:
com.badlogic.gdx.graphics.glutils.VertexData
,com.badlogic.gdx.utils.Disposable
,com.esotericsoftware.kryo.KryoSerializable
- Enclosing class:
- LJ_GDX_graphics_glutils.VertexData_AP
public static class LJ_GDX_graphics_glutils.VertexData_AP.LIP
extends InterfaceProxy
implements com.badlogic.gdx.graphics.glutils.VertexData
-
Method Summary
Modifier and TypeMethodDescriptionvoid
bind
(com.badlogic.gdx.graphics.glutils.ShaderProgram p1) Binds this VertexData for rendering via glDrawArrays or glDrawElements.void
bind
(com.badlogic.gdx.graphics.glutils.ShaderProgram p1, int[] p2) Binds this VertexData for rendering via glDrawArrays or glDrawElements.void
dispose()
Disposes this VertexData 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 VertexData if applicable.void
setVertices
(float[] p1, int p2, int p3) Sets the vertices of this VertexData, discarding the old vertex data.void
unbind
(com.badlogic.gdx.graphics.glutils.ShaderProgram p1) Unbinds this VertexData.void
unbind
(com.badlogic.gdx.graphics.glutils.ShaderProgram p1, int[] p2) Unbinds this VertexData.void
updateVertices
(int p1, float[] p2, int p3, int p4) Update (a portion of) the vertices.Methods inherited from class com.prineside.luaj.mapping.InterfaceProxy
getLuaObj, read, write
-
Method Details
-
bind
public void bind(com.badlogic.gdx.graphics.glutils.ShaderProgram p1) Description copied from interface:com.badlogic.gdx.graphics.glutils.VertexData
Binds this VertexData for rendering via glDrawArrays or glDrawElements.- Specified by:
bind
in interfacecom.badlogic.gdx.graphics.glutils.VertexData
-
bind
public void bind(com.badlogic.gdx.graphics.glutils.ShaderProgram p1, int[] p2) Description copied from interface:com.badlogic.gdx.graphics.glutils.VertexData
Binds this VertexData for rendering via glDrawArrays or glDrawElements.- Specified by:
bind
in interfacecom.badlogic.gdx.graphics.glutils.VertexData
p2
- array containing the attribute locations.
-
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.graphics.glutils.VertexData
Disposes this VertexData and all its associated OpenGL resources.- Specified by:
dispose
in interfacecom.badlogic.gdx.utils.Disposable
- Specified by:
dispose
in interfacecom.badlogic.gdx.graphics.glutils.VertexData
-
getAttributes
public com.badlogic.gdx.graphics.VertexAttributes getAttributes()- Specified by:
getAttributes
in interfacecom.badlogic.gdx.graphics.glutils.VertexData
- Returns:
- the
VertexAttributes
as specified during construction.
-
getBuffer
Description copied from interface:com.badlogic.gdx.graphics.glutils.VertexData
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 useVertexData.setVertices(float[], int, int)
; Any modifications made to the Buffer *after* the call to bind will not automatically be uploaded.- Specified by:
getBuffer
in interfacecom.badlogic.gdx.graphics.glutils.VertexData
- Returns:
- the underlying FloatBuffer holding the vertex data.
-
getBuffer
Description copied from interface:com.badlogic.gdx.graphics.glutils.VertexData
Returns the underlying FloatBuffer for reading or writing.- Specified by:
getBuffer
in interfacecom.badlogic.gdx.graphics.glutils.VertexData
- Parameters:
p1
- when true, the underlying buffer will be uploaded on the next call to bind. If you need immediate uploading useVertexData.setVertices(float[], int, int)
.- Returns:
- the underlying FloatBuffer holding the vertex data.
-
getNumMaxVertices
public int getNumMaxVertices()- Specified by:
getNumMaxVertices
in interfacecom.badlogic.gdx.graphics.glutils.VertexData
- Returns:
- the number of vertices this VertedData can store
-
getNumVertices
public int getNumVertices()- Specified by:
getNumVertices
in interfacecom.badlogic.gdx.graphics.glutils.VertexData
- Returns:
- the number of vertices this VertexData stores
-
invalidate
public void invalidate()Description copied from interface:com.badlogic.gdx.graphics.glutils.VertexData
Invalidates the VertexData if applicable. Use this in case of a context loss.- Specified by:
invalidate
in interfacecom.badlogic.gdx.graphics.glutils.VertexData
-
setVertices
public void setVertices(float[] p1, int p2, int p3) Description copied from interface:com.badlogic.gdx.graphics.glutils.VertexData
Sets the vertices of this VertexData, 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 viaVertexAttributes
.This can be called in between calls to bind and unbind. The vertex data will be updated instantly.
- Specified by:
setVertices
in interfacecom.badlogic.gdx.graphics.glutils.VertexData
- Parameters:
p1
- the vertex datap2
- the offset to start copying the data fromp3
- 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.VertexData
Unbinds this VertexData.- Specified by:
unbind
in interfacecom.badlogic.gdx.graphics.glutils.VertexData
-
unbind
public void unbind(com.badlogic.gdx.graphics.glutils.ShaderProgram p1, int[] p2) Description copied from interface:com.badlogic.gdx.graphics.glutils.VertexData
Unbinds this VertexData.- Specified by:
unbind
in interfacecom.badlogic.gdx.graphics.glutils.VertexData
p2
- array containing the attribute locations.
-
updateVertices
public void updateVertices(int p1, float[] p2, int p3, int p4) Description copied from interface:com.badlogic.gdx.graphics.glutils.VertexData
Update (a portion of) the vertices. Does not resize the backing buffer.- Specified by:
updateVertices
in interfacecom.badlogic.gdx.graphics.glutils.VertexData
p2
- the vertex datap3
- the offset to start copying the data fromp4
- the number of floats to copy
-