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 Type
    Method
    Description
    void
    Sets up the Batch for drawing.
    void
    Disables blending for drawing sprites.
    void
    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
    Causes any pending sprites to be rendered, without ending the Batch.
    int
     
    int
     
    int
     
    int
     
    com.badlogic.gdx.graphics.Color
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 via Batch.setProjectionMatrix(Matrix4) and Batch.setTransformMatrix(Matrix4).
      Specified by:
      begin in interface com.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 within Batch.begin()/Batch.end() will flush the batch.
      Specified by:
      disableBlending in interface com.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 interface com.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 interface com.badlogic.gdx.graphics.g2d.Batch
      p2 - the x-coordinate in screen space
      p3 - 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 interface com.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. The Batch.getColor() from the Batch is not applied.
      Specified by:
      draw in interface com.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 interface com.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 interface com.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 interface com.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 the Texture given by srcX, srcY and srcWidth, srcHeight are used. These coordinates and sizes are given in texels.
      Specified by:
      draw in interface com.badlogic.gdx.graphics.g2d.Batch
      p2 - the x-coordinate in screen space
      p3 - the y-coordinate in screen space
      p4 - the x-coordinate in texel space
      p5 - the y-coordinate in texel space
      p6 - the source with in texels
      p7 - 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 the Texture 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 tint Color.
      Specified by:
      draw in interface com.badlogic.gdx.graphics.g2d.Batch
      p2 - the x-coordinate in screen space
      p3 - the y-coordinate in screen space
      p4 - the width in pixels
      p5 - 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 interface com.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 the Texture 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 interface com.badlogic.gdx.graphics.g2d.Batch
      p2 - the x-coordinate in screen space
      p3 - the y-coordinate in screen space
      p4 - the width in pixels
      p5 - the height in pixels
      p6 - the x-coordinate in texel space
      p7 - the y-coordinate in texel space
      p8 - the source with in texels
      p9 - the source height in texels
      p10 - whether to flip the sprite horizontally
      p11 - 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 interface com.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 the Texture 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 interface com.badlogic.gdx.graphics.g2d.Batch
      p2 - the x-coordinate in screen space
      p3 - the y-coordinate in screen space
      p4 - the x-coordinate of the scaling and rotation origin relative to the screen space coordinates
      p5 - the y-coordinate of the scaling and rotation origin relative to the screen space coordinates
      p6 - the width in pixels
      p7 - the height in pixels
      p8 - the scale of the rectangle around originX/originY in x
      p9 - the scale of the rectangle around originX/originY in y
      p10 - the angle of counter clockwise rotation of the rectangle around originX/originY
      p11 - the x-coordinate in texel space
      p12 - the y-coordinate in texel space
      p13 - the source with in texels
      p14 - the source height in texels
      p15 - whether to flip the sprite horizontally
      p16 - 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 within Batch.begin()/Batch.end() will flush the batch.
      Specified by:
      enableBlending in interface com.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 to Batch.begin()
      Specified by:
      end in interface com.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 interface com.badlogic.gdx.graphics.g2d.Batch
    • getBlendDstFunc

      public int getBlendDstFunc()
      Specified by:
      getBlendDstFunc in interface com.badlogic.gdx.graphics.g2d.Batch
    • getBlendDstFuncAlpha

      public int getBlendDstFuncAlpha()
      Specified by:
      getBlendDstFuncAlpha in interface com.badlogic.gdx.graphics.g2d.Batch
    • getBlendSrcFunc

      public int getBlendSrcFunc()
      Specified by:
      getBlendSrcFunc in interface com.badlogic.gdx.graphics.g2d.Batch
    • getBlendSrcFuncAlpha

      public int getBlendSrcFuncAlpha()
      Specified by:
      getBlendSrcFuncAlpha in interface com.badlogic.gdx.graphics.g2d.Batch
    • getColor

      public com.badlogic.gdx.graphics.Color getColor()
      Specified by:
      getColor in interface com.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 interface com.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 within Batch.begin()/Batch.end() results in undefined behaviour.
      Specified by:
      getProjectionMatrix in interface com.badlogic.gdx.graphics.g2d.Batch
    • getShader

      public com.badlogic.gdx.graphics.glutils.ShaderProgram getShader()
      Specified by:
      getShader in interface com.badlogic.gdx.graphics.g2d.Batch
      Returns:
      the current ShaderProgram set by Batch.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 within Batch.begin()/Batch.end() results in undefined behaviour.
      Specified by:
      getTransformMatrix in interface com.badlogic.gdx.graphics.g2d.Batch
    • isBlendingEnabled

      public boolean isBlendingEnabled()
      Specified by:
      isBlendingEnabled in interface com.badlogic.gdx.graphics.g2d.Batch
      Returns:
      true if blending for sprites is enabled
    • isDrawing

      public boolean isDrawing()
      Specified by:
      isDrawing in interface com.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 interface com.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 interface com.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 is Color.WHITE.
      Specified by:
      setColor in interface com.badlogic.gdx.graphics.g2d.Batch
    • setColor

      public void setColor(float p1, float p2, float p3, float p4)
      Specified by:
      setColor in interface com.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 interface com.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 a Batch.begin()/Batch.end() block, the current batch is flushed to the gpu.
      Specified by:
      setProjectionMatrix in interface com.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". See ShaderProgram.POSITION_ATTRIBUTE, ShaderProgram.COLOR_ATTRIBUTE and ShaderProgram.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() and Batch.end().

      Specified by:
      setShader in interface com.badlogic.gdx.graphics.g2d.Batch
      Parameters:
      p1 - the ShaderProgram 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 interface com.badlogic.gdx.graphics.g2d.Batch