|
libgdx API | |||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use TextureRegion | |
---|---|
com.badlogic.gdx.graphics.g2d | |
com.badlogic.gdx.graphics.g2d.tiled | |
com.badlogic.gdx.graphics.g3d.decals | |
com.badlogic.gdx.scenes.scene2d.ui | |
com.badlogic.gdx.utils |
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,
boolean looping)
Returns a TextureRegion based on the so called state time. |
TextureRegion[] |
NinePatch.getPatches()
|
TextureRegion |
BitmapFont.getRegion()
|
static TextureRegion |
EmptyNinePatch.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 bottom left corner at x,y and stretching the region to cover the given width and height. |
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)
|
|
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. |
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 |
---|
Fields in com.badlogic.gdx.scenes.scene2d.ui declared as TextureRegion | |
---|---|
TextureRegion |
CheckBox.CheckBoxStyle.checkboxOff
|
TextureRegion |
CheckBox.CheckBoxStyle.checkboxOn
|
TextureRegion |
ImageButton.ImageButtonStyle.regionChecked
Optional. |
TextureRegion |
ImageButton.ImageButtonStyle.regionDown
Optional. |
TextureRegion |
ImageButton.ImageButtonStyle.regionUp
Optional. |
TextureRegion |
TextField.TextFieldStyle.selection
Optional. |
Methods in com.badlogic.gdx.scenes.scene2d.ui that return TextureRegion | |
---|---|
TextureRegion |
Image.getRegion()
|
TextureRegion |
Skin.getRegion(java.lang.String name)
|
Methods in com.badlogic.gdx.scenes.scene2d.ui with parameters of type TextureRegion | |
---|---|
void |
Image.setRegion(TextureRegion region)
|
Constructors in com.badlogic.gdx.scenes.scene2d.ui with parameters of type TextureRegion | |
---|---|
Button(TextureRegion region)
|
|
Button(TextureRegion regionUp,
TextureRegion regionDown)
|
|
Button(TextureRegion regionUp,
TextureRegion regionDown,
TextureRegion regionChecked)
|
|
CheckBox.CheckBoxStyle(TextureRegion checkboxOff,
TextureRegion checkboxOn,
BitmapFont font,
Color fontColor)
|
|
Image(TextureRegion region)
Creates an image stretched, and aligned center. |
|
Image(TextureRegion region,
Scaling scaling)
Creates an image aligned center. |
|
Image(TextureRegion region,
Scaling scaling,
int align)
|
|
Image(TextureRegion region,
Scaling scaling,
int align,
java.lang.String name)
|
|
ImageButton.ImageButtonStyle(NinePatch down,
NinePatch up,
NinePatch checked,
float pressedOffsetX,
float pressedOffsetY,
float unpressedOffsetX,
float unpressedOffsetY,
TextureRegion regionUp,
TextureRegion regionDown,
TextureRegion regionChecked)
|
|
ImageButton(TextureRegion region)
|
|
ImageButton(TextureRegion regionUp,
TextureRegion regionDown)
|
|
ImageButton(TextureRegion regionUp,
TextureRegion regionDown,
TextureRegion regionChecked)
|
|
Slider.SliderStyle(NinePatch sliderPatch,
TextureRegion knobRegion)
|
|
TextField.TextFieldStyle(BitmapFont font,
Color fontColor,
BitmapFont messageFont,
Color messageFontColor,
NinePatch cursor,
TextureRegion selection,
NinePatch background)
|
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 |