Java com.badlogic.gdx.graphics.glutils ShapeRenderer fields, constructors, methods, implement or subclass

Example usage for Java com.badlogic.gdx.graphics.glutils ShapeRenderer fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.badlogic.gdx.graphics.glutils ShapeRenderer.

The text is from its open source code.

Subclass

com.badlogic.gdx.graphics.glutils.ShapeRenderer has subclasses.
Click this link to see all its subclasses.

Constructor

Method

voidarc(float x, float y, float radius, float start, float degrees)
Calls #arc(float,float,float,float,float,int) by estimating the number of segments needed for a smooth arc.
voidbegin(ShapeType type)
Starts a new batch of shapes.
voidbegin()
Begins a new batch without specifying a shape type.
voidbox(float x, float y, float z, float width, float height, float depth)
Draws a cube using ShapeType#Line or ShapeType#Filled .
voidcircle(float x, float y, float radius)
Calls #circle(float,float,float,int) by estimating the number of segments needed for a smooth circle.
voidcircle(float x, float y, float radius, int segments)
Draws a circle using ShapeType#Line or ShapeType#Filled .
voidcurve(float x1, float y1, float cx1, float cy1, float cx2, float cy2, float x2, float y2, int segments)
Draws a curve using ShapeType#Line .
voidellipse(float x, float y, float width, float height)
Calls #ellipse(float,float,float,float,int) by estimating the number of segments needed for a smooth ellipse.
voidend()
Finishes the batch of shapes and ensures they get rendered.
voidflush()
ShapeTypegetCurrentType()
Returns the current shape type.
voididentity()
Sets the transformation matrix to identity.
voidline(float x, float y, float x2, float y2)
voidline(Vector3 v0, Vector3 v1)
voidline(Vector2 v0, Vector2 v1)
voidpoint(float x, float y, float z)
Draws a point using ShapeType#Point , ShapeType#Line or ShapeType#Filled .
voidpolygon(float[] vertices)
voidpolygon(float[] vertices, int offset, int count)
Draws a polygon in the x/y plane using ShapeType#Line .
voidpolyline(float[] vertices)
voidrect(float x, float y, float width, float height)
Draws a rectangle in the x/y plane using ShapeType#Line or ShapeType#Filled .
voidrect(float x, float y, float originX, float originY, float width, float height, float scaleX, float scaleY, float degrees)
Draws a rectangle in the x/y plane using ShapeType#Line or ShapeType#Filled .
voidrectLine(float x1, float y1, float x2, float y2, float width)
Draws a line using a rotated rectangle, where with one edge is centered at x1, y1 and the opposite edge centered at x2, y2.
voidrotate(float axisX, float axisY, float axisZ, float degrees)
Multiplies the current transformation matrix by a rotation matrix.
voidset(ShapeType type)
voidsetAutoShapeType(boolean autoShapeType)
If true, when drawing a shape cannot be performed with the current shape type, the batch is flushed and the shape type is changed automatically.
voidsetColor(Color color)
Sets the color to be used by the next shapes drawn.
voidsetColor(float r, float g, float b, float a)
Sets the color to be used by the next shapes drawn.
voidsetProjectionMatrix(Matrix4 matrix)
Sets the projection matrix to be used for rendering.
voidsetTransformMatrix(Matrix4 matrix)
voidtranslate(float x, float y, float z)
Multiplies the current transformation matrix by a translation matrix.
voidtriangle(float x1, float y1, float x2, float y2, float x3, float y3)
Draws a triangle in x/y plane using ShapeType#Line or ShapeType#Filled .
voidx(float x, float y, float size)
Draws two crossed lines using ShapeType#Line or ShapeType#Filled .