Package com.prineside.luaj.mapping.parts
Class LJ_GDX_graphics_g2d.Batch_C.LIP
java.lang.Object
com.prineside.luaj.mapping.InterfaceProxy
com.prineside.luaj.mapping.parts.LJ_GDX_graphics_g2d.Batch_C.LIP
- All Implemented Interfaces:
 com.badlogic.gdx.graphics.g2d.Batch,com.badlogic.gdx.utils.Disposable,com.esotericsoftware.kryo.KryoSerializable
- Enclosing class:
 - LJ_GDX_graphics_g2d.Batch_C
 
public static class LJ_GDX_graphics_g2d.Batch_C.LIP
extends InterfaceProxy
implements com.badlogic.gdx.graphics.g2d.Batch
- 
Field Summary
Fields inherited from class com.prineside.luaj.mapping.InterfaceProxy
luaObjFields inherited from interface com.badlogic.gdx.graphics.g2d.Batch
C1, C2, C3, C4, U1, U2, U3, U4, V1, V2, V3, V4, X1, X2, X3, X4, Y1, Y2, Y3, Y4 - 
Method Summary
Modifier and TypeMethodDescriptionvoidbegin()Sets up the Batch for drawing.voidDisables blending for drawing sprites.voiddispose()Releases all resources of this object.voiddraw(com.badlogic.gdx.graphics.g2d.TextureRegion p1, float p2, float p3) Draws a rectangle with the bottom left corner at x,y having the width and height of the region.voiddraw(com.badlogic.gdx.graphics.g2d.TextureRegion p1, float p2, float p3, float p4, float p5) Draws a rectangle with the bottom left corner at x,y and stretching the region to cover the given width and height.voiddraw(com.badlogic.gdx.graphics.g2d.TextureRegion p1, float p2, float p3, float p4, float p5, float p6, float p7, float p8, float p9, float p10) Draws a rectangle with the bottom left corner at x,y and stretching the region to cover the given width and height.voiddraw(com.badlogic.gdx.graphics.g2d.TextureRegion p1, float p2, float p3, float p4, float p5, float p6, float p7, float p8, float p9, float p10, boolean p11) Draws a rectangle with the texture coordinates rotated 90 degrees.voiddraw(com.badlogic.gdx.graphics.g2d.TextureRegion p1, float p2, float p3, com.badlogic.gdx.math.Affine2 p4) Draws a rectangle transformed by the given matrix.voiddraw(com.badlogic.gdx.graphics.Texture p1, float[] p2, int p3, int p4) Draws a rectangle using the given vertices.voiddraw(com.badlogic.gdx.graphics.Texture p1, float p2, float p3) Draws a rectangle with the bottom left corner at x,y having the width and height of the texture.voiddraw(com.badlogic.gdx.graphics.Texture p1, float p2, float p3, float p4, float p5) Draws a rectangle with the bottom left corner at x,y and stretching the region to cover the given width and height.voiddraw(com.badlogic.gdx.graphics.Texture p1, float p2, float p3, float p4, float p5, float p6, float p7, float p8, float p9) Draws a rectangle with the bottom left corner at x,y having the given width and height in pixels.voiddraw(com.badlogic.gdx.graphics.Texture p1, float p2, float p3, float p4, float p5, float p6, float p7, float p8, float p9, float p10, int p11, int p12, int p13, int p14, boolean p15, boolean p16) Draws a rectangle with the bottom left corner at x,y having the given width and height in pixels.voiddraw(com.badlogic.gdx.graphics.Texture p1, float p2, float p3, float p4, float p5, int p6, int p7, int p8, int p9, boolean p10, boolean p11) Draws a rectangle with the bottom left corner at x,y having the given width and height in pixels.voiddraw(com.badlogic.gdx.graphics.Texture p1, float p2, float p3, int p4, int p5, int p6, int p7) Draws a rectangle with the bottom left corner at x,y having the given width and height in pixels.voidEnables blending for drawing sprites.voidend()Finishes off rendering.voidflush()Causes any pending sprites to be rendered, without ending the Batch.intintintintcom.badlogic.gdx.graphics.ColorgetColor()floatcom.badlogic.gdx.math.Matrix4Returns the current projection matrix.com.badlogic.gdx.graphics.glutils.ShaderProgramcom.badlogic.gdx.math.Matrix4Returns the current transform matrix.booleanbooleanvoidsetBlendFunction(int p1, int p2) Sets the blending function to be used when rendering sprites.voidsetBlendFunctionSeparate(int p1, int p2, int p3, int p4) Sets separate (color/alpha) blending function to be used when rendering sprites.voidsetColor(float p1, float p2, float p3, float p4) voidsetColor(com.badlogic.gdx.graphics.Color p1) Sets the color used to tint images when they are added to the Batch.voidsetPackedColor(float p1) Sets the rendering color of this Batch, expanding the alpha from 0-254 to 0-255.voidsetProjectionMatrix(com.badlogic.gdx.math.Matrix4 p1) Sets the projection matrix to be used by this Batch.voidsetShader(com.badlogic.gdx.graphics.glutils.ShaderProgram p1) Sets the shader to be used in a GLES 2.0 environment.voidsetTransformMatrix(com.badlogic.gdx.math.Matrix4 p1) Sets the transform matrix to be used by this Batch.Methods inherited from class com.prineside.luaj.mapping.InterfaceProxy
getLuaObj, read, write 
- 
Method Details
- 
begin
public void begin()Description copied from interface:com.badlogic.gdx.graphics.g2d.BatchSets up the Batch for drawing. This will disable depth buffer writing. It enables blending and texturing. If you have more texture units enabled than the first one you have to disable them before calling this. Uses a screen coordinate system by default where everything is given in pixels. You can specify your own projection and modelview matrices viaBatch.setProjectionMatrix(Matrix4)andBatch.setTransformMatrix(Matrix4).- Specified by:
 beginin interfacecom.badlogic.gdx.graphics.g2d.Batch
 - 
disableBlending
public void disableBlending()Description copied from interface:com.badlogic.gdx.graphics.g2d.BatchDisables blending for drawing sprites. Calling this withinBatch.begin()/Batch.end()will flush the batch.- Specified by:
 disableBlendingin interfacecom.badlogic.gdx.graphics.g2d.Batch
 - 
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.utils.DisposableReleases all resources of this object.- Specified by:
 disposein interfacecom.badlogic.gdx.utils.Disposable
 - 
draw
public void draw(com.badlogic.gdx.graphics.Texture p1, float p2, float p3) Description copied from interface:com.badlogic.gdx.graphics.g2d.BatchDraws a rectangle with the bottom left corner at x,y having the width and height of the texture.- Specified by:
 drawin interfacecom.badlogic.gdx.graphics.g2d.Batchp2- the x-coordinate in screen spacep3- the y-coordinate in screen space
 - 
draw
public void draw(com.badlogic.gdx.graphics.g2d.TextureRegion p1, float p2, float p3) Description copied from interface:com.badlogic.gdx.graphics.g2d.BatchDraws a rectangle with the bottom left corner at x,y having the width and height of the region.- Specified by:
 drawin interfacecom.badlogic.gdx.graphics.g2d.Batch
 - 
draw
public void draw(com.badlogic.gdx.graphics.Texture p1, float[] p2, int p3, int p4) Description copied from interface:com.badlogic.gdx.graphics.g2d.BatchDraws a rectangle using the given vertices. There must be 4 vertices, each made up of 5 elements in this order: x, y, color, u, v. TheBatch.getColor()from the Batch is not applied.- Specified by:
 drawin interfacecom.badlogic.gdx.graphics.g2d.Batch
 - 
draw
public void draw(com.badlogic.gdx.graphics.g2d.TextureRegion p1, float p2, float p3, com.badlogic.gdx.math.Affine2 p4) Description copied from interface:com.badlogic.gdx.graphics.g2d.BatchDraws a rectangle transformed by the given matrix.- Specified by:
 drawin interfacecom.badlogic.gdx.graphics.g2d.Batch
 - 
draw
public void draw(com.badlogic.gdx.graphics.Texture p1, float p2, float p3, float p4, float p5) Description copied from interface:com.badlogic.gdx.graphics.g2d.BatchDraws a rectangle with the bottom left corner at x,y and stretching the region to cover the given width and height.- Specified by:
 drawin interfacecom.badlogic.gdx.graphics.g2d.Batch
 - 
draw
public void draw(com.badlogic.gdx.graphics.g2d.TextureRegion p1, float p2, float p3, float p4, float p5) Description copied from interface:com.badlogic.gdx.graphics.g2d.BatchDraws a rectangle with the bottom left corner at x,y and stretching the region to cover the given width and height.- Specified by:
 drawin interfacecom.badlogic.gdx.graphics.g2d.Batch
 - 
draw
public void draw(com.badlogic.gdx.graphics.Texture p1, float p2, float p3, int p4, int p5, int p6, int p7) Description copied from interface:com.badlogic.gdx.graphics.g2d.BatchDraws a rectangle with the bottom left corner at x,y having the given width and height in pixels. The portion of theTexturegiven by srcX, srcY and srcWidth, srcHeight are used. These coordinates and sizes are given in texels.- Specified by:
 drawin interfacecom.badlogic.gdx.graphics.g2d.Batchp2- the x-coordinate in screen spacep3- the y-coordinate in screen spacep4- the x-coordinate in texel spacep5- the y-coordinate in texel spacep6- the source with in texelsp7- the source height in texels
 - 
draw
public void draw(com.badlogic.gdx.graphics.Texture p1, float p2, float p3, float p4, float p5, float p6, float p7, float p8, float p9) Description copied from interface:com.badlogic.gdx.graphics.g2d.BatchDraws a rectangle with the bottom left corner at x,y having the given width and height in pixels. The portion of theTexturegiven by u, v and u2, v2 are used. These coordinates and sizes are given in texture size percentage. The rectangle will have the given tintColor.- Specified by:
 drawin interfacecom.badlogic.gdx.graphics.g2d.Batchp2- the x-coordinate in screen spacep3- the y-coordinate in screen spacep4- the width in pixelsp5- the height in pixels
 - 
draw
public void draw(com.badlogic.gdx.graphics.g2d.TextureRegion p1, float p2, float p3, float p4, float p5, float p6, float p7, float p8, float p9, float p10) Description copied from interface:com.badlogic.gdx.graphics.g2d.BatchDraws a rectangle with the bottom left corner at x,y and stretching the region to cover the given width and height. The rectangle is offset by originX, originY relative to the origin. Scale specifies the scaling factor by which the rectangle should be scaled around originX, originY. Rotation specifies the angle of counter clockwise rotation of the rectangle around originX, originY.- Specified by:
 drawin interfacecom.badlogic.gdx.graphics.g2d.Batch
 - 
draw
public void draw(com.badlogic.gdx.graphics.Texture p1, float p2, float p3, float p4, float p5, int p6, int p7, int p8, int p9, boolean p10, boolean p11) Description copied from interface:com.badlogic.gdx.graphics.g2d.BatchDraws a rectangle with the bottom left corner at x,y having the given width and height in pixels. The portion of theTexturegiven by srcX, srcY and srcWidth, srcHeight is used. These coordinates and sizes are given in texels. FlipX and flipY specify whether the texture portion should be flipped horizontally or vertically.- Specified by:
 drawin interfacecom.badlogic.gdx.graphics.g2d.Batchp2- the x-coordinate in screen spacep3- the y-coordinate in screen spacep4- the width in pixelsp5- the height in pixelsp6- the x-coordinate in texel spacep7- the y-coordinate in texel spacep8- the source with in texelsp9- the source height in texelsp10- whether to flip the sprite horizontallyp11- whether to flip the sprite vertically
 - 
draw
public void draw(com.badlogic.gdx.graphics.g2d.TextureRegion p1, float p2, float p3, float p4, float p5, float p6, float p7, float p8, float p9, float p10, boolean p11) Description copied from interface:com.badlogic.gdx.graphics.g2d.BatchDraws a rectangle with the texture coordinates rotated 90 degrees. The bottom left corner at x,y and stretching the region to cover the given width and height. The rectangle is offset by originX, originY relative to the origin. Scale specifies the scaling factor by which the rectangle should be scaled around originX, originY. Rotation specifies the angle of counter clockwise rotation of the rectangle around originX, originY.- Specified by:
 drawin interfacecom.badlogic.gdx.graphics.g2d.Batchp11- If true, the texture coordinates are rotated 90 degrees clockwise. If false, they are rotated 90 degrees counter clockwise.
 - 
draw
public void draw(com.badlogic.gdx.graphics.Texture p1, float p2, float p3, float p4, float p5, float p6, float p7, float p8, float p9, float p10, int p11, int p12, int p13, int p14, boolean p15, boolean p16) Description copied from interface:com.badlogic.gdx.graphics.g2d.BatchDraws a rectangle with the bottom left corner at x,y having the given width and height in pixels. The rectangle is offset by originX, originY relative to the origin. Scale specifies the scaling factor by which the rectangle should be scaled around originX, originY. Rotation specifies the angle of counter clockwise rotation of the rectangle around originX, originY. The portion of theTexturegiven by srcX, srcY and srcWidth, srcHeight is used. These coordinates and sizes are given in texels. FlipX and flipY specify whether the texture portion should be flipped horizontally or vertically.- Specified by:
 drawin interfacecom.badlogic.gdx.graphics.g2d.Batchp2- the x-coordinate in screen spacep3- the y-coordinate in screen spacep4- the x-coordinate of the scaling and rotation origin relative to the screen space coordinatesp5- the y-coordinate of the scaling and rotation origin relative to the screen space coordinatesp6- the width in pixelsp7- the height in pixelsp8- the scale of the rectangle around originX/originY in xp9- the scale of the rectangle around originX/originY in yp10- the angle of counter clockwise rotation of the rectangle around originX/originYp11- the x-coordinate in texel spacep12- the y-coordinate in texel spacep13- the source with in texelsp14- the source height in texelsp15- whether to flip the sprite horizontallyp16- whether to flip the sprite vertically
 - 
enableBlending
public void enableBlending()Description copied from interface:com.badlogic.gdx.graphics.g2d.BatchEnables blending for drawing sprites. Calling this withinBatch.begin()/Batch.end()will flush the batch.- Specified by:
 enableBlendingin interfacecom.badlogic.gdx.graphics.g2d.Batch
 - 
end
public void end()Description copied from interface:com.badlogic.gdx.graphics.g2d.BatchFinishes off rendering. Enables depth writes, disables blending and texturing. Must always be called after a call toBatch.begin()- Specified by:
 endin interfacecom.badlogic.gdx.graphics.g2d.Batch
 - 
flush
public void flush()Description copied from interface:com.badlogic.gdx.graphics.g2d.BatchCauses any pending sprites to be rendered, without ending the Batch.- Specified by:
 flushin interfacecom.badlogic.gdx.graphics.g2d.Batch
 - 
getBlendDstFunc
public int getBlendDstFunc()- Specified by:
 getBlendDstFuncin interfacecom.badlogic.gdx.graphics.g2d.Batch
 - 
getBlendDstFuncAlpha
public int getBlendDstFuncAlpha()- Specified by:
 getBlendDstFuncAlphain interfacecom.badlogic.gdx.graphics.g2d.Batch
 - 
getBlendSrcFunc
public int getBlendSrcFunc()- Specified by:
 getBlendSrcFuncin interfacecom.badlogic.gdx.graphics.g2d.Batch
 - 
getBlendSrcFuncAlpha
public int getBlendSrcFuncAlpha()- Specified by:
 getBlendSrcFuncAlphain interfacecom.badlogic.gdx.graphics.g2d.Batch
 - 
getColor
public com.badlogic.gdx.graphics.Color getColor()- Specified by:
 getColorin interfacecom.badlogic.gdx.graphics.g2d.Batch- Returns:
 - the rendering color of this Batch. If the returned instance is manipulated, 
Batch.setColor(Color)must be called afterward. 
 - 
getPackedColor
public float getPackedColor()- Specified by:
 getPackedColorin interfacecom.badlogic.gdx.graphics.g2d.Batch- Returns:
 - the rendering color of this Batch in vertex format (alpha compressed to 0-254)
 - See Also:
 - 
Color.toFloatBits()
 
 - 
getProjectionMatrix
public com.badlogic.gdx.math.Matrix4 getProjectionMatrix()Description copied from interface:com.badlogic.gdx.graphics.g2d.BatchReturns the current projection matrix. Changing this withinBatch.begin()/Batch.end()results in undefined behaviour.- Specified by:
 getProjectionMatrixin interfacecom.badlogic.gdx.graphics.g2d.Batch
 - 
getShader
public com.badlogic.gdx.graphics.glutils.ShaderProgram getShader()- Specified by:
 getShaderin interfacecom.badlogic.gdx.graphics.g2d.Batch- Returns:
 - the current 
ShaderProgramset byBatch.setShader(ShaderProgram)or the defaultShader 
 - 
getTransformMatrix
public com.badlogic.gdx.math.Matrix4 getTransformMatrix()Description copied from interface:com.badlogic.gdx.graphics.g2d.BatchReturns the current transform matrix. Changing this withinBatch.begin()/Batch.end()results in undefined behaviour.- Specified by:
 getTransformMatrixin interfacecom.badlogic.gdx.graphics.g2d.Batch
 - 
isBlendingEnabled
public boolean isBlendingEnabled()- Specified by:
 isBlendingEnabledin interfacecom.badlogic.gdx.graphics.g2d.Batch- Returns:
 - true if blending for sprites is enabled
 
 - 
isDrawing
public boolean isDrawing()- Specified by:
 isDrawingin interfacecom.badlogic.gdx.graphics.g2d.Batch- Returns:
 - true if currently between begin and end.
 
 - 
setBlendFunction
public void setBlendFunction(int p1, int p2) Description copied from interface:com.badlogic.gdx.graphics.g2d.BatchSets the blending function to be used when rendering sprites.- Specified by:
 setBlendFunctionin interfacecom.badlogic.gdx.graphics.g2d.Batch- Parameters:
 p1- the source function, e.g. GL20.GL_SRC_ALPHA. If set to -1, Batch won't change the blending function.p2- the destination function, e.g. GL20.GL_ONE_MINUS_SRC_ALPHA
 - 
setBlendFunctionSeparate
public void setBlendFunctionSeparate(int p1, int p2, int p3, int p4) Description copied from interface:com.badlogic.gdx.graphics.g2d.BatchSets separate (color/alpha) blending function to be used when rendering sprites.- Specified by:
 setBlendFunctionSeparatein interfacecom.badlogic.gdx.graphics.g2d.Batch- Parameters:
 p1- the source color function, e.g. GL20.GL_SRC_ALPHA. If set to -1, Batch won't change the blending function.p2- the destination color function, e.g. GL20.GL_ONE_MINUS_SRC_ALPHA.p3- the source alpha function, e.g. GL20.GL_SRC_ALPHA.p4- the destination alpha function, e.g. GL20.GL_ONE_MINUS_SRC_ALPHA.
 - 
setColor
public void setColor(com.badlogic.gdx.graphics.Color p1) Description copied from interface:com.badlogic.gdx.graphics.g2d.BatchSets the color used to tint images when they are added to the Batch. Default isColor.WHITE.- Specified by:
 setColorin interfacecom.badlogic.gdx.graphics.g2d.Batch
 - 
setColor
public void setColor(float p1, float p2, float p3, float p4) - Specified by:
 setColorin interfacecom.badlogic.gdx.graphics.g2d.Batch- See Also:
 - 
Batch.setColor(Color)
 
 - 
setPackedColor
public void setPackedColor(float p1) Description copied from interface:com.badlogic.gdx.graphics.g2d.BatchSets the rendering color of this Batch, expanding the alpha from 0-254 to 0-255.- Specified by:
 setPackedColorin interfacecom.badlogic.gdx.graphics.g2d.Batch- See Also:
 - 
Batch.setColor(Color)Color.toFloatBits()
 
 - 
setProjectionMatrix
public void setProjectionMatrix(com.badlogic.gdx.math.Matrix4 p1) Description copied from interface:com.badlogic.gdx.graphics.g2d.BatchSets the projection matrix to be used by this Batch. If this is called inside aBatch.begin()/Batch.end()block, the current batch is flushed to the gpu.- Specified by:
 setProjectionMatrixin interfacecom.badlogic.gdx.graphics.g2d.Batch
 - 
setShader
public void setShader(com.badlogic.gdx.graphics.glutils.ShaderProgram p1) Description copied from interface:com.badlogic.gdx.graphics.g2d.BatchSets the shader to be used in a GLES 2.0 environment. Vertex position attribute is called "a_position", the texture coordinates attribute is called "a_texCoord0", the color attribute is called "a_color". SeeShaderProgram.POSITION_ATTRIBUTE,ShaderProgram.COLOR_ATTRIBUTEandShaderProgram.TEXCOORD_ATTRIBUTEwhich gets "0" appended to indicate the use of the first texture unit. The combined transform and projection matrx is uploaded via a mat4 uniform called "u_projTrans". The texture sampler is passed via a uniform called "u_texture".Call this method with a null argument to use the default shader.
This method will flush the batch before setting the new shader, you can call it in between
Batch.begin()andBatch.end().- Specified by:
 setShaderin interfacecom.badlogic.gdx.graphics.g2d.Batch- Parameters:
 p1- theShaderProgramor null to use the default shader.
 - 
setTransformMatrix
public void setTransformMatrix(com.badlogic.gdx.math.Matrix4 p1) Description copied from interface:com.badlogic.gdx.graphics.g2d.BatchSets the transform matrix to be used by this Batch.- Specified by:
 setTransformMatrixin interfacecom.badlogic.gdx.graphics.g2d.Batch
 
 -