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
luaObj
Fields 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 TypeMethodDescriptionvoid
begin()
Sets up the Batch for drawing.void
Disables blending for drawing sprites.void
dispose()
Releases all resources of this object.void
draw
(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.void
draw
(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.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) Draws a rectangle with the bottom left corner at x,y and stretching the region to cover the given width and height.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) Draws a rectangle with the texture coordinates rotated 90 degrees.void
draw
(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.void
draw
(com.badlogic.gdx.graphics.Texture p1, float[] p2, int p3, int p4) Draws a rectangle using the given vertices.void
draw
(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.void
draw
(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.void
draw
(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.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) Draws a rectangle with the bottom left corner at x,y having the given width and height in pixels.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) Draws a rectangle with the bottom left corner at x,y having the given width and height in pixels.void
draw
(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.void
Enables blending for drawing sprites.void
end()
Finishes off rendering.void
flush()
Causes any pending sprites to be rendered, without ending the Batch.int
int
int
int
com.badlogic.gdx.graphics.Color
getColor()
float
com.badlogic.gdx.math.Matrix4
Returns the current projection matrix.com.badlogic.gdx.graphics.glutils.ShaderProgram
com.badlogic.gdx.math.Matrix4
Returns the current transform matrix.boolean
boolean
void
setBlendFunction
(int p1, int p2) Sets the blending function to be used when rendering sprites.void
setBlendFunctionSeparate
(int p1, int p2, int p3, int p4) Sets separate (color/alpha) blending function to be used when rendering sprites.void
setColor
(float p1, float p2, float p3, float p4) void
setColor
(com.badlogic.gdx.graphics.Color p1) Sets the color used to tint images when they are added to the Batch.void
setPackedColor
(float p1) Sets the rendering color of this Batch, expanding the alpha from 0-254 to 0-255.void
setProjectionMatrix
(com.badlogic.gdx.math.Matrix4 p1) Sets the projection matrix to be used by this Batch.void
setShader
(com.badlogic.gdx.graphics.glutils.ShaderProgram p1) Sets the shader to be used in a GLES 2.0 environment.void
setTransformMatrix
(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.Batch
Sets 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:
begin
in interfacecom.badlogic.gdx.graphics.g2d.Batch
-
disableBlending
public void disableBlending()Description copied from interface:com.badlogic.gdx.graphics.g2d.Batch
Disables blending for drawing sprites. Calling this withinBatch.begin()
/Batch.end()
will flush the batch.- Specified by:
disableBlending
in interfacecom.badlogic.gdx.graphics.g2d.Batch
-
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.utils.Disposable
Releases all resources of this object.- Specified by:
dispose
in 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.Batch
Draws a rectangle with the bottom left corner at x,y having the width and height of the texture.- Specified by:
draw
in interfacecom.badlogic.gdx.graphics.g2d.Batch
p2
- 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.Batch
Draws a rectangle with the bottom left corner at x,y having the width and height of the region.- Specified by:
draw
in 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.Batch
Draws 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:
draw
in 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.Batch
Draws a rectangle transformed by the given matrix.- Specified by:
draw
in 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.Batch
Draws a rectangle with the bottom left corner at x,y and stretching the region to cover the given width and height.- Specified by:
draw
in 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.Batch
Draws a rectangle with the bottom left corner at x,y and stretching the region to cover the given width and height.- Specified by:
draw
in 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.Batch
Draws a rectangle with the bottom left corner at x,y having the given width and height in pixels. The portion of theTexture
given by srcX, srcY and srcWidth, srcHeight are used. These coordinates and sizes are given in texels.- Specified by:
draw
in interfacecom.badlogic.gdx.graphics.g2d.Batch
p2
- 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.Batch
Draws a rectangle with the bottom left corner at x,y having the given width and height in pixels. The portion of theTexture
given 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:
draw
in interfacecom.badlogic.gdx.graphics.g2d.Batch
p2
- 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.Batch
Draws 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:
draw
in 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.Batch
Draws a rectangle with the bottom left corner at x,y having the given width and height in pixels. The portion of theTexture
given 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:
draw
in interfacecom.badlogic.gdx.graphics.g2d.Batch
p2
- 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.Batch
Draws 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:
draw
in interfacecom.badlogic.gdx.graphics.g2d.Batch
p11
- 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.Batch
Draws 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 theTexture
given 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:
draw
in interfacecom.badlogic.gdx.graphics.g2d.Batch
p2
- 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.Batch
Enables blending for drawing sprites. Calling this withinBatch.begin()
/Batch.end()
will flush the batch.- Specified by:
enableBlending
in interfacecom.badlogic.gdx.graphics.g2d.Batch
-
end
public void end()Description copied from interface:com.badlogic.gdx.graphics.g2d.Batch
Finishes off rendering. Enables depth writes, disables blending and texturing. Must always be called after a call toBatch.begin()
- Specified by:
end
in interfacecom.badlogic.gdx.graphics.g2d.Batch
-
flush
public void flush()Description copied from interface:com.badlogic.gdx.graphics.g2d.Batch
Causes any pending sprites to be rendered, without ending the Batch.- Specified by:
flush
in interfacecom.badlogic.gdx.graphics.g2d.Batch
-
getBlendDstFunc
public int getBlendDstFunc()- Specified by:
getBlendDstFunc
in interfacecom.badlogic.gdx.graphics.g2d.Batch
-
getBlendDstFuncAlpha
public int getBlendDstFuncAlpha()- Specified by:
getBlendDstFuncAlpha
in interfacecom.badlogic.gdx.graphics.g2d.Batch
-
getBlendSrcFunc
public int getBlendSrcFunc()- Specified by:
getBlendSrcFunc
in interfacecom.badlogic.gdx.graphics.g2d.Batch
-
getBlendSrcFuncAlpha
public int getBlendSrcFuncAlpha()- Specified by:
getBlendSrcFuncAlpha
in interfacecom.badlogic.gdx.graphics.g2d.Batch
-
getColor
public com.badlogic.gdx.graphics.Color getColor()- Specified by:
getColor
in 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:
getPackedColor
in 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.Batch
Returns the current projection matrix. Changing this withinBatch.begin()
/Batch.end()
results in undefined behaviour.- Specified by:
getProjectionMatrix
in interfacecom.badlogic.gdx.graphics.g2d.Batch
-
getShader
public com.badlogic.gdx.graphics.glutils.ShaderProgram getShader()- Specified by:
getShader
in interfacecom.badlogic.gdx.graphics.g2d.Batch
- Returns:
- the current
ShaderProgram
set byBatch.setShader(ShaderProgram)
or the defaultShader
-
getTransformMatrix
public com.badlogic.gdx.math.Matrix4 getTransformMatrix()Description copied from interface:com.badlogic.gdx.graphics.g2d.Batch
Returns the current transform matrix. Changing this withinBatch.begin()
/Batch.end()
results in undefined behaviour.- Specified by:
getTransformMatrix
in interfacecom.badlogic.gdx.graphics.g2d.Batch
-
isBlendingEnabled
public boolean isBlendingEnabled()- Specified by:
isBlendingEnabled
in interfacecom.badlogic.gdx.graphics.g2d.Batch
- Returns:
- true if blending for sprites is enabled
-
isDrawing
public boolean isDrawing()- Specified by:
isDrawing
in 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.Batch
Sets the blending function to be used when rendering sprites.- Specified by:
setBlendFunction
in 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.Batch
Sets separate (color/alpha) blending function to be used when rendering sprites.- Specified by:
setBlendFunctionSeparate
in 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.Batch
Sets the color used to tint images when they are added to the Batch. Default isColor.WHITE
.- Specified by:
setColor
in interfacecom.badlogic.gdx.graphics.g2d.Batch
-
setColor
public void setColor(float p1, float p2, float p3, float p4) - Specified by:
setColor
in 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.Batch
Sets the rendering color of this Batch, expanding the alpha from 0-254 to 0-255.- Specified by:
setPackedColor
in 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.Batch
Sets 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:
setProjectionMatrix
in 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.Batch
Sets 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_ATTRIBUTE
andShaderProgram.TEXCOORD_ATTRIBUTE
which 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:
setShader
in interfacecom.badlogic.gdx.graphics.g2d.Batch
- Parameters:
p1
- theShaderProgram
or 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.Batch
Sets the transform matrix to be used by this Batch.- Specified by:
setTransformMatrix
in interfacecom.badlogic.gdx.graphics.g2d.Batch
-