HomeSort by relevance Sort by last modified time
    Searched refs:textureRegion (Results 1 - 18 of 18) sorted by null

  /external/libgdx/gdx/src/com/badlogic/gdx/maps/tiled/tiles/
StaticTiledMapTile.java 19 import com.badlogic.gdx.graphics.g2d.TextureRegion;
32 private TextureRegion textureRegion;
67 public TextureRegion getTextureRegion () {
68 return textureRegion;
72 public void setTextureRegion(TextureRegion textureRegion) {
73 this.textureRegion = textureRegion;
98 * @param textureRegion the {@link TextureRegion} to use. *
    [all...]
AnimatedTiledMapTile.java 19 import com.badlogic.gdx.graphics.g2d.TextureRegion;
83 public TextureRegion getTextureRegion () {
88 public void setTextureRegion (TextureRegion textureRegion) {
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/decals/
DecalMaterial.java 20 import com.badlogic.gdx.graphics.g2d.TextureRegion;
25 protected TextureRegion textureRegion;
31 textureRegion.getTexture().bind(0);
57 && textureRegion.getTexture() == material.textureRegion.getTexture();
63 int result = textureRegion.getTexture() != null ? textureRegion.getTexture().hashCode() : 0;
Decal.java 21 import com.badlogic.gdx.graphics.g2d.TextureRegion;
529 TextureRegion tr = material.textureRegion;
546 * @param textureRegion Texture region to apply */
547 public void setTextureRegion (TextureRegion textureRegion) {
548 this.material.textureRegion = textureRegion;
553 public TextureRegion getTextureRegion () {
554 return this.material.textureRegion;
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/maps/objects/
TextureMapObject.java 19 import com.badlogic.gdx.graphics.g2d.TextureRegion;
32 private TextureRegion textureRegion = null;
105 public TextureRegion getTextureRegion () {
106 return textureRegion;
110 public void setTextureRegion (TextureRegion region) {
111 textureRegion = region;
121 * @param textureRegion the {@link TextureRegion} to use. */
122 public TextureMapObject (TextureRegion textureRegion)
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/maps/tiled/
TiledMapTile.java 19 import com.badlogic.gdx.graphics.g2d.TextureRegion;
42 public TextureRegion getTextureRegion ();
45 public void setTextureRegion(TextureRegion textureRegion);
BaseTmxMapLoader.java 17 import com.badlogic.gdx.graphics.g2d.TextureRegion;
134 TextureRegion texture = null;
218 TextureRegion textureRegion = tiledMapTileMapObject.getTextureRegion();
222 float objectWidth = element.getFloatAttribute("width", textureRegion.getRegionWidth());
223 float objectHeight = element.getFloatAttribute("height", textureRegion.getRegionHeight());
224 tiledMapTileMapObject.setScaleX(scaleX * (objectWidth / textureRegion.getRegionWidth()));
225 tiledMapTileMapObject.setScaleY(scaleY * (objectHeight / textureRegion.getRegionHeight()));
  /external/libgdx/gdx/src/com/badlogic/gdx/maps/tiled/objects/
TiledMapTileMapObject.java 19 import com.badlogic.gdx.graphics.g2d.TextureRegion;
42 TextureRegion textureRegion = new TextureRegion(tile.getTextureRegion());
43 textureRegion.flip(flipHorizontally, flipVertically);
44 setTextureRegion(textureRegion);
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/influencers/
RegionInfluencer.java 4 import com.badlogic.gdx.graphics.g2d.TextureRegion;
23 public Single (TextureRegion textureRegion) {
24 super(textureRegion);
58 public Random (TextureRegion textureRegion) {
59 super(textureRegion);
96 public Animated (TextureRegion textureRegion) {
97 super(textureRegion);
    [all...]
  /external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/
TiledMapObjectLoadingTest.java 27 import com.badlogic.gdx.graphics.g2d.TextureRegion;
90 TextureRegion textureRegion = tmtObject.getTile().getTextureRegion();
97 textureRegion.flip(tmtObject.isFlipHorizontally(), tmtObject.isFlipVertically());
98 batch.draw(textureRegion, xPos, yPos, tmtObject.getOriginX() * scaleX, tmtObject.getOriginY() * scaleY,
99 textureRegion.getRegionWidth() * scaleX, textureRegion.getRegionHeight() * scaleY, 1f, 1f, rotation);
101 textureRegion.flip(tmtObject.isFlipHorizontally(), tmtObject.isFlipVertically());
StageDebugTest.java 25 import com.badlogic.gdx.graphics.g2d.TextureRegion;
36 static TextureRegion textureRegion;
45 batch.draw(textureRegion, getX(), getY(), getOriginX(), getOriginY(), getWidth(), getHeight(), getScaleX(), getScaleY(),
52 textureRegion = new TextureRegion(new Texture("data/badlogic.jpg"));
Box2DTest.java 29 import com.badlogic.gdx.graphics.g2d.TextureRegion;
69 private TextureRegion textureRegion;
108 textureRegion = new TextureRegion(new Texture(Gdx.files.internal("data/badlogicsmall.jpg")));
257 batch.draw(textureRegion, position.x - 1, position.y - 1, // the bottom left corner of the box, unrotated
404 textureRegion.getTexture().dispose();
  /external/libgdx/gdx/src/com/badlogic/gdx/utils/
ScreenUtils.java 26 import com.badlogic.gdx.graphics.g2d.TextureRegion;
35 /** Returns the default framebuffer contents as a {@link TextureRegion} with a width and height equal to the current screen
37 * accessed via {@link TextureRegion#getTexture}. The texture is not managed and has to be reloaded manually on a context loss.
38 * The returned TextureRegion is flipped along the Y axis by default. */
39 public static TextureRegion getFrameBufferTexture () {
45 /** Returns a portion of the default framebuffer contents specified by x, y, width and height as a {@link TextureRegion} with
47 * {@link Format}. It can be accessed via {@link TextureRegion#getTexture}. This texture is not managed and has to be reloaded
55 public static TextureRegion getFrameBufferTexture (int x, int y, int w, int h) {
63 TextureRegion textureRegion = new TextureRegion(texture, 0, h, w, -h);
    [all...]
  /external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/com/badlogic/gdx/utils/
ScreenUtils.java 27 import com.badlogic.gdx.graphics.g2d.TextureRegion;
38 /** Returns the default framebuffer contents as a {@link TextureRegion} with a width and height equal to the current screen
40 * accessed via {@link TextureRegion#getTexture}. The texture is not managed and has to be reloaded manually on a context loss.
41 * The returned TextureRegion is flipped along the Y axis by default. */
42 public static TextureRegion getFrameBufferTexture () {
48 /** Returns a portion of the default framebuffer contents specified by x, y, width and height as a {@link TextureRegion} with
50 * {@link Format}. It can be accessed via {@link TextureRegion#getTexture}. This texture is not managed and has to be reloaded
58 public static TextureRegion getFrameBufferTexture (int x, int y, int w, int h) {
66 TextureRegion textureRegion = new TextureRegion(texture, 0, h, w, -h);
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g2d/
PolygonRegionLoader.java 71 return load(new TextureRegion(texture), file);
117 public PolygonRegion load (TextureRegion textureRegion, FileHandle file) {
130 return new PolygonRegion(textureRegion, vertices, triangulator.computeTriangles(vertices).toArray());
TextureAtlas.java 288 public AtlasRegion addRegion (String name, TextureRegion textureRegion) {
289 return addRegion(name, textureRegion.texture, textureRegion.getRegionX(), textureRegion.getRegionY(),
290 textureRegion.getRegionWidth(), textureRegion.getRegionHeight());
456 static public class AtlasRegion extends TextureRegion {
PolygonSpriteBatch.java 251 final TextureRegion textureRegion = region.region;
253 final Texture texture = textureRegion.texture;
270 final float sX = width / textureRegion.regionWidth;
271 final float sY = height / textureRegion.regionHeight;
296 final TextureRegion textureRegion = region.region;
298 Texture texture = textureRegion.texture;
318 final float sX = width / textureRegion.regionWidth;
319 final float sY = height / textureRegion.regionHeight;
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/
Skin.java 30 import com.badlogic.gdx.graphics.g2d.TextureRegion;
111 add(name, region, TextureRegion.class);
124 typeResources = new ObjectMap(type == TextureRegion.class || type == Drawable.class || type == Sprite.class ? 256 : 64);
149 if (type == TextureRegion.class) return (T)getRegion(name);
191 public TextureRegion getRegion (String name) {
192 TextureRegion region = optional(name, TextureRegion.class);
196 if (texture == null) throw new GdxRuntimeException("No TextureRegion or Texture registered with name: " + name);
197 region = new TextureRegion(texture);
198 add(name, region, TextureRegion.class);
    [all...]

Completed in 585 milliseconds