|
libgdx API | |||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of TextureRegion in com.badlogic.gdx.graphics.g2d |
---|
Subclasses of TextureRegion in com.badlogic.gdx.graphics.g2d | |
---|---|
class |
Sprite
Holds the geometry, color, and texture information for drawing 2D sprites using SpriteBatch . |
static class |
TextureAtlas.AtlasRegion
Describes the region of a packed image and provides information about the original image before it was packed. |
static class |
TextureAtlas.AtlasSprite
A sprite that, if whitespace was stripped from the region when it was packed, is automatically positioned as if whitespace had not been stripped. |
Methods in com.badlogic.gdx.graphics.g2d that return TextureRegion | |
---|---|
TextureRegion |
Animation.getKeyFrame(float stateTime)
Returns a TextureRegion based on the so called state time. |
TextureRegion |
Animation.getKeyFrame(float stateTime,
boolean looping)
Returns a TextureRegion based on the so called state time. |
TextureRegion |
BitmapFont.getRegion()
|
TextureRegion |
PolygonRegion.getRegion()
|
TextureRegion[][] |
TextureRegion.split(int tileWidth,
int tileHeight)
Helper function to create tiles out of this TextureRegion starting from the top left corner going to the left and ending at the bottom right corner. |
static TextureRegion[][] |
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 left and
ending at the bottom right corner. |
Methods in com.badlogic.gdx.graphics.g2d with parameters of type TextureRegion | |
---|---|
void |
SpriteCache.add(TextureRegion region,
float x,
float y)
Adds the specified region to the cache. |
void |
SpriteCache.add(TextureRegion region,
float x,
float y,
float width,
float height)
Adds the specified region to the cache. |
void |
SpriteCache.add(TextureRegion region,
float x,
float y,
float originX,
float originY,
float width,
float height,
float scaleX,
float scaleY,
float rotation)
Adds the specified region to the cache. |
TextureAtlas.AtlasRegion |
TextureAtlas.addRegion(java.lang.String name,
TextureRegion textureRegion)
Adds a region to the atlas. |
void |
SpriteBatch.draw(TextureRegion region,
float x,
float y)
Draws a rectangle with the bottom left corner at x,y having the width and height of the region. |
void |
SpriteBatch.draw(TextureRegion region,
float x,
float y,
float width,
float height)
Draws a rectangle with the bottom left corner at x,y and stretching the region to cover the given width and height. |
void |
SpriteBatch.draw(TextureRegion region,
float x,
float y,
float originX,
float originY,
float width,
float height,
float scaleX,
float scaleY,
float rotation)
Draws a rectangle with the bottom left corner at x,y and stretching the region to cover the given width and height. |
void |
SpriteBatch.draw(TextureRegion region,
float x,
float y,
float originX,
float originY,
float width,
float height,
float scaleX,
float scaleY,
float rotation,
boolean clockwise)
Draws a rectangle with the texture coordinates rotated 90 degrees. |
void |
TextureRegion.setRegion(TextureRegion region)
Sets the texture and coordinates to the specified region. |
void |
TextureRegion.setRegion(TextureRegion region,
int x,
int y,
int width,
int height)
Sets the texture to that of the specified region and sets the coordinates relative to the specified region. |
Constructors in com.badlogic.gdx.graphics.g2d with parameters of type TextureRegion | |
---|---|
Animation(float frameDuration,
TextureRegion... keyFrames)
Constructor, storing the frame duration and key frames. |
|
BitmapFont(BitmapFont.BitmapFontData data,
TextureRegion region,
boolean integer)
Constructs a new BitmapFont from the given BitmapFont.BitmapFontData and TextureRegion . |
|
BitmapFont(FileHandle fontFile,
TextureRegion region,
boolean flip)
Creates a BitmapFont with the glyphs relative to the specified region. |
|
NinePatch(TextureRegion... patches)
|
|
NinePatch(TextureRegion region)
|
|
NinePatch(TextureRegion region,
Color color)
|
|
NinePatch(TextureRegion region,
int left,
int right,
int top,
int bottom)
|
|
PolygonRegion(TextureRegion region,
FileHandle file)
Creates a PolygonRegion by reading in the vertices and texture coordinates from the external file. |
|
PolygonRegion(TextureRegion region,
float[] vertices)
Creates a PolygonRegin by triangulating the polygon coordinates in vertices and calculates uvs based on that. |
|
Sprite(TextureRegion region)
|
|
Sprite(TextureRegion region,
int srcX,
int srcY,
int srcWidth,
int srcHeight)
Creates a sprite with width, height, and texture region equal to the specified size, relative to specified sprite's texture region. |
|
TextureRegion(TextureRegion region)
Constructs a region with the same texture and coordinates of the specified region. |
|
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. |
Constructor parameters in com.badlogic.gdx.graphics.g2d with type arguments of type TextureRegion | |
---|---|
Animation(float frameDuration,
Array<? extends TextureRegion> keyFrames)
Constructor, storing the frame duration and key frames. |
|
Animation(float frameDuration,
Array<? extends TextureRegion> keyFrames,
int playType)
Constructor, storing the frame duration, key frames and play type. |
Uses of TextureRegion in com.badlogic.gdx.graphics.g2d.tiled |
---|
Fields in com.badlogic.gdx.graphics.g2d.tiled with type parameters of type TextureRegion | |
---|---|
protected IntMap<TextureRegion> |
TileAtlas.regionsMap
|
Methods in com.badlogic.gdx.graphics.g2d.tiled that return TextureRegion | |
---|---|
TextureRegion |
TileAtlas.getRegion(int id)
Gets an TextureRegion for a tile id |
Uses of TextureRegion in com.badlogic.gdx.graphics.g3d.decals |
---|
Fields in com.badlogic.gdx.graphics.g3d.decals declared as TextureRegion | |
---|---|
protected TextureRegion |
DecalMaterial.textureRegion
|
Methods in com.badlogic.gdx.graphics.g3d.decals that return TextureRegion | |
---|---|
TextureRegion |
Decal.getTextureRegion()
|
Methods in com.badlogic.gdx.graphics.g3d.decals with parameters of type TextureRegion | |
---|---|
static Decal |
Decal.newDecal(float width,
float height,
TextureRegion textureRegion)
Creates a decal using the region for texturing |
static Decal |
Decal.newDecal(float width,
float height,
TextureRegion textureRegion,
boolean hasTransparency)
Creates a decal using the region for texturing |
static Decal |
Decal.newDecal(float width,
float height,
TextureRegion textureRegion,
int srcBlendFactor,
int dstBlendFactor)
Creates a decal using the region for texturing and the specified blending parameters for blending |
static Decal |
Decal.newDecal(TextureRegion textureRegion)
Creates a decal assuming the dimensions of the texture region |
static Decal |
Decal.newDecal(TextureRegion textureRegion,
boolean hasTransparency)
Creates a decal assuming the dimensions of the texture region and adding transparency |
void |
Decal.setTextureRegion(TextureRegion textureRegion)
Sets the texture region |
Uses of TextureRegion in com.badlogic.gdx.scenes.scene2d.ui |
---|
Methods in com.badlogic.gdx.scenes.scene2d.ui that return TextureRegion | |
---|---|
TextureRegion |
Skin.getRegion(java.lang.String name)
Returns a registered texture region. |
Constructors in com.badlogic.gdx.scenes.scene2d.ui with parameters of type TextureRegion | |
---|---|
Image(TextureRegion region)
Creates an image stretched, and aligned center. |
Uses of TextureRegion in com.badlogic.gdx.scenes.scene2d.utils |
---|
Methods in com.badlogic.gdx.scenes.scene2d.utils that return TextureRegion | |
---|---|
TextureRegion |
TextureRegionDrawable.getRegion()
|
Methods in com.badlogic.gdx.scenes.scene2d.utils with parameters of type TextureRegion | |
---|---|
void |
TextureRegionDrawable.setRegion(TextureRegion region)
|
Constructors in com.badlogic.gdx.scenes.scene2d.utils with parameters of type TextureRegion | |
---|---|
TextureRegionDrawable(TextureRegion region)
|
|
TiledDrawable(TextureRegion region)
|
Uses of TextureRegion in com.badlogic.gdx.utils |
---|
Methods in com.badlogic.gdx.utils that return TextureRegion | |
---|---|
static TextureRegion |
ScreenUtils.getFrameBufferTexture()
Returns the default framebuffer contents as a TextureRegion with a width and height equal to the current screen
size. |
static TextureRegion |
ScreenUtils.getFrameBufferTexture(int x,
int y,
int w,
int h)
Returns a portion of the default framebuffer contents specified by x, y, width and height as a TextureRegion with
the same dimensions. |
|
libgdx API | |||||||||
PREV NEXT | FRAMES NO FRAMES |