Modifier and Type | Class and Description |
---|---|
static class |
ParticleEmitter.Particle |
class |
Sprite
Holds the geometry, color, and texture information for drawing 2D sprites using
Batch . |
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.
|
Modifier and Type | Method and Description |
---|---|
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[] |
Animation.getKeyFrames()
Returns the keyFrames[] array where all the TextureRegions of the animation are stored.
|
TextureRegion |
PolygonRegion.getRegion() |
TextureRegion |
BitmapFont.getRegion()
Returns the first texture region.
|
TextureRegion |
BitmapFont.getRegion(int index)
Returns the texture page at the given index.
|
TextureRegion[] |
BitmapFont.getRegions()
Returns the array of TextureRegions that represents each texture page of glyphs.
|
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 right 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 right and
ending at the bottom right corner. |
Modifier and Type | Method and Description |
---|---|
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(String name,
TextureRegion textureRegion)
Adds a region to the atlas.
|
void |
SpriteBatch.draw(TextureRegion region,
float x,
float y) |
void |
PolygonSpriteBatch.draw(TextureRegion region,
float x,
float y) |
void |
Batch.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) |
void |
PolygonSpriteBatch.draw(TextureRegion region,
float x,
float y,
float width,
float height) |
void |
Batch.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) |
void |
PolygonSpriteBatch.draw(TextureRegion region,
float x,
float y,
float originX,
float originY,
float width,
float height,
float scaleX,
float scaleY,
float rotation) |
void |
Batch.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) |
void |
PolygonSpriteBatch.draw(TextureRegion region,
float x,
float y,
float originX,
float originY,
float width,
float height,
float scaleX,
float scaleY,
float rotation,
boolean clockwise) |
void |
Batch.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.
|
PolygonRegion |
PolygonRegionLoader.load(TextureRegion textureRegion,
FileHandle file)
Loads a PolygonRegion from a PSH (Polygon SHape) file.
|
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.
|
Constructor and Description |
---|
Animation(float frameDuration,
TextureRegion... keyFrames)
Constructor, storing the frame duration and key frames.
|
BitmapFont(BitmapFont.BitmapFontData data,
TextureRegion[] regions,
boolean integer)
Constructs a new BitmapFont from the given
BitmapFont.BitmapFontData and array of TextureRegion . |
BitmapFont(BitmapFont.BitmapFontData data,
TextureRegion region,
boolean integer)
Constructs a new BitmapFont from the given
BitmapFont.BitmapFontData and TextureRegion . |
BitmapFont(FileHandle fontFile,
TextureRegion region)
Creates a BitmapFont with the glyphs relative to the specified region.
|
BitmapFont(FileHandle fontFile,
TextureRegion region,
boolean flip)
Creates a BitmapFont with the glyphs relative to the specified region.
|
NinePatch(TextureRegion... patches)
Construct a nine patch from the given nine texture regions.
|
NinePatch(TextureRegion region)
Construct a degenerate "nine" patch with only a center component.
|
NinePatch(TextureRegion region,
Color color)
Construct a degenerate "nine" patch with only a center component.
|
NinePatch(TextureRegion region,
int left,
int right,
int top,
int bottom)
Create a ninepatch by cutting up the given texture region into nine patches.
|
PolygonRegion(TextureRegion region,
float[] vertices,
short[] triangles)
Creates a PolygonRegion by triangulating the polygon coordinates in vertices and calculates uvs based on that.
|
Sprite(TextureRegion region)
Creates a sprite based on a specific TextureRegion, the new sprite's region is a copy of the parameter region - altering one
does not affect the other
|
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 and Description |
---|
Animation(float frameDuration,
Array<? extends TextureRegion> keyFrames)
Constructor, storing the frame duration and key frames.
|
Animation(float frameDuration,
Array<? extends TextureRegion> keyFrames,
Animation.PlayMode playMode)
Constructor, storing the frame duration, key frames and play type.
|
Modifier and Type | Method and Description |
---|---|
TextureRegion |
Decal.getTextureRegion() |
Modifier and Type | Method and Description |
---|---|
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
|
Modifier and Type | Method and Description |
---|---|
void |
RegionInfluencer.add(TextureRegion... regions) |
void |
RegionInfluencer.AspectTextureRegion.set(TextureRegion region) |
Constructor and Description |
---|
RegionInfluencer.Animated(TextureRegion textureRegion) |
RegionInfluencer.AspectTextureRegion(TextureRegion region) |
RegionInfluencer.Random(TextureRegion textureRegion) |
RegionInfluencer.Single(TextureRegion textureRegion) |
RegionInfluencer(TextureRegion... regions)
All the regions must be defined on the same Texture
|
Modifier and Type | Method and Description |
---|---|
void |
MeshPartBuilder.setUVRange(TextureRegion r)
Set range of texture coordinates from the specified TextureRegion.
|
void |
MeshBuilder.setUVRange(TextureRegion region) |
Modifier and Type | Method and Description |
---|---|
TextureRegion |
ImageResolver.getImage(String name) |
TextureRegion |
ImageResolver.DirectImageResolver.getImage(String name) |
TextureRegion |
ImageResolver.AssetManagerImageResolver.getImage(String name) |
TextureRegion |
ImageResolver.TextureAtlasImageResolver.getImage(String name) |
Modifier and Type | Method and Description |
---|---|
TextureRegion |
TextureMapObject.getTextureRegion() |
Modifier and Type | Method and Description |
---|---|
void |
TextureMapObject.setTextureRegion(TextureRegion region) |
Constructor and Description |
---|
TextureMapObject(TextureRegion textureRegion)
Creates texture map object with the given region
|
Modifier and Type | Method and Description |
---|---|
TextureRegion |
TiledMapTile.getTextureRegion() |
Modifier and Type | Method and Description |
---|---|
TextureRegion |
StaticTiledMapTile.getTextureRegion() |
TextureRegion |
AnimatedTiledMapTile.getTextureRegion() |
Constructor and Description |
---|
StaticTiledMapTile(TextureRegion textureRegion)
Creates a static tile with the given region
|
Modifier and Type | Method and Description |
---|---|
TextureRegion |
Skin.getRegion(String name)
Returns a registered texture region.
|
Constructor and Description |
---|
Image(TextureRegion region)
Creates an image stretched, and aligned center.
|
Modifier and Type | Method and Description |
---|---|
TextureRegion |
TextureRegionDrawable.getRegion() |
Modifier and Type | Method and Description |
---|---|
void |
TextureRegionDrawable.setRegion(TextureRegion region) |
Constructor and Description |
---|
TextureRegionDrawable(TextureRegion region) |
TiledDrawable(TextureRegion region) |
Modifier and Type | Method and Description |
---|---|
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. |
Copyright © 2014. All Rights Reserved.