Java com.badlogic.gdx.graphics.g2d TextureRegion fields, constructors, methods, implement or subclass

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

Introduction

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

The text is from its open source code.

Subclass

com.badlogic.gdx.graphics.g2d.TextureRegion has subclasses.
Click this link to see all its subclasses.

Constructor

TextureRegion(Texture texture, int x, int y, int width, int height)
TextureRegion(Texture texture, float u, float v, float u2, float v2)
TextureRegion(TextureRegion region, int x, int y, int width, int height)
Constructs a region with the same texture as the specified region and sets the coordinates relative to the specified region.
TextureRegion(Texture texture)
Constructs a region the size of the specified texture.
TextureRegion(TextureRegion region)
Constructs a region with the same texture and coordinates of the specified region.
TextureRegion()
Constructs a region with no texture and no coordinates defined.
TextureRegion(Texture texture, int width, int height)

Method

voidflip(boolean x, boolean y)
intgetRegionHeight()
Returns the region's height.
intgetRegionWidth()
Returns the region's width.
intgetRegionX()
intgetRegionY()
TexturegetTexture()
floatgetU()
floatgetU2()
floatgetV()
floatgetV2()
booleanisFlipX()
booleanisFlipY()
voidsetRegion(int x, int y, int width, int height)
voidsetRegion(float u, float v, float u2, float v2)
voidsetRegion(Texture texture)
Sets the texture and sets the coordinates to the size of the specified texture.
voidsetRegion(TextureRegion region)
Sets the texture and coordinates to the specified region.
voidsetRegionHeight(int height)
voidsetRegionWidth(int width)
voidsetRegionX(int x)
voidsetRegionY(int y)
voidsetTexture(Texture texture)
TextureRegion[][]split(int tileWidth, int tileHeight)
Helper function to create tiles out of this TextureRegion starting from the top left corner going to the right and ending at the bottom right corner.
TextureRegion[][]split(Texture texture, int tileWidth, int tileHeight)
Helper function to create tiles out of the given Texture starting from the top left corner going to the right and ending at the bottom right corner.