| /external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/utils/ |
| SpriteDrawable.java | 21 import com.badlogic.gdx.graphics.g2d.Sprite;
24 /** Drawable for a {@link Sprite}.
27 private Sprite sprite;
field in class:SpriteDrawable 29 /** Creates an uninitialized SpriteDrawable. The sprite must be set before use. */
33 public SpriteDrawable (Sprite sprite) {
34 setSprite(sprite);
39 setSprite(drawable.sprite);
43 Color spriteColor = sprite.getColor(); [all...] |
| TextureRegionDrawable.java | 21 import com.badlogic.gdx.graphics.g2d.Sprite;
65 Sprite sprite;
local 67 sprite = new AtlasSprite((AtlasRegion)region);
69 sprite = new Sprite(region);
70 sprite.setColor(tint);
71 sprite.setSize(getMinWidth(), getMinHeight());
72 SpriteDrawable drawable = new SpriteDrawable(sprite);
|
| /external/clang/test/SemaObjC/ |
| ivar-ref-misuse.m | 3 @interface Sprite { 4 int sprite, spree; 8 + (void)setSprite:(int)sprite; 10 - (void)setSprite:(int)sprite; 16 @implementation Sprite 18 sprite = foo; // expected-error {{instance variable 'sprite' accessed in class method}} 23 + (void)setSprite:(int)sprite { 25 sprite = 15; 27 ((Sprite *)self)->sprite = 16; /* NB: This is how one _should_ access * [all...] |
| /external/proguard/src/proguard/gui/splash/ |
| TimeSwitchSprite.java | 26 * This Sprite displays another Sprite in a given time interval. 27 * The time of the encapsulated Sprite is shifted by the start time. 31 public class TimeSwitchSprite implements Sprite 35 private final Sprite sprite; field in class:TimeSwitchSprite 39 * Creates a new TimeSwitchSprite for displaying a given Sprite starting at 42 * @param sprite the toggled Sprite. 44 public TimeSwitchSprite(long onTime, Sprite sprite [all...] |
| ClipSprite.java | 26 * This Sprite encapsulates another Sprite, which is clipped by a clip Sprite. 30 public class ClipSprite implements Sprite 34 private final Sprite clipSprite; 35 private final Sprite sprite; field in class:ClipSprite 40 * @param insideClipColor the background color inside the clip sprite. 41 * @param outsideClipColor the background color outside the clip sprite. 42 * @param clipSprite the clip Sprite [all...] |
| ColorSprite.java | 26 * This Sprite colors another given sprite. 30 public class ColorSprite implements Sprite 33 private final Sprite sprite; field in class:ColorSprite 38 * @param color the variable color of the given sprite. 39 * @param sprite the sprite that will be colored and painted. 42 Sprite sprite) [all...] |
| FontSprite.java | 26 * This Sprite sets the font for another given sprite. 30 public class FontSprite implements Sprite 33 private final Sprite sprite; field in class:FontSprite 38 * @param font the variable Font of the given sprite. 39 * @param sprite the sprite that will be provided of a font and painted. 42 Sprite sprite) [all...] |
| BufferedSprite.java | 27 * This Sprite encapsulates another Sprite, which is then buffered in an Image. 31 public class BufferedSprite implements Sprite 37 private final Sprite sprite; field in class:BufferedSprite 50 * @param sprite the Sprite that is painted in the buffer. 59 Sprite sprite, 68 sprite, [all...] |
| ShadowedSprite.java | 26 * This Sprite adds a drop shadow to another Sprite. 30 public class ShadowedSprite implements Sprite 36 private final Sprite sprite; field in class:ShadowedSprite 44 * @param xOffset the variable x-offset of the shadow, relative to the sprite itself. 45 * @param yOffset the variable y-offset of the shadow, relative to the sprite itself. 49 * @param sprite the Sprite to be painted with its shadow. 55 Sprite sprite [all...] |
| CompositeSprite.java | 26 * This Sprite is the composition of a list of Sprite objects. 30 public class CompositeSprite implements Sprite 32 private final Sprite[] sprites; 37 * @param sprites the array of Sprite objects to which the painting will 40 public CompositeSprite(Sprite[] sprites) 46 // Implementation for Sprite.
|
| SplashPanel.java | 31 * This JPanel renders an animated Sprite. 40 private final Sprite sprite; field in class:SplashPanel 50 * Creates a new SplashPanel with the given Sprite, which will be animated 52 * @param sprite the Sprite that will be animated. 54 * animating the Sprite (between 0 and 1). 56 public SplashPanel(Sprite sprite, double processorLoad) 58 this(sprite, processorLoad, (long)Integer.MAX_VALUE) 212 Sprite sprite = local [all...] |
| /external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
| PolygonSpriteTest.java | 65 PolygonSprite sprite = new PolygonSprite(region);
local 66 sprite.setPosition(MathUtils.random(-30, 440), MathUtils.random(-30, 290));
67 sprite.setColor(MathUtils.random(), MathUtils.random(), MathUtils.random(), 1.0f);
68 sprite.setScale(MathUtils.random(0.5f, 1.5f), MathUtils.random(0.5f, 1.5f));
69 sprites.add(sprite);
84 PolygonSprite sprite = sprites.get(i);
local 85 sprite.rotate(45 * Gdx.graphics.getDeltaTime());
86 sprite.translateX(10 * Gdx.graphics.getDeltaTime());
88 if (sprite.getX() > 450) sprite.setX(-50); 99 PolygonSprite sprite = sprites.get(49); local [all...] |
| SortedSpriteTest.java | 24 import com.badlogic.gdx.graphics.g2d.Sprite;
34 /** Sprite based class that adds a z-coordinate for depth sorting. Note that allt he constructors were auto-generated in Eclipse
37 public class MySprite extends Sprite {
44 public MySprite (Sprite sprite) {
45 super(sprite);
100 // create the sprite and set a random position
101 MySprite sprite = new MySprite(texture);
local 102 sprite.setPosition(MathUtils.random() * Gdx.graphics.getWidth(), MathUtils.random() * Gdx.graphics.getHeight());
105 sprite.z = MathUtils.random(); [all...] |
| SpriteCacheOffsetTest.java | 23 import com.badlogic.gdx.graphics.g2d.Sprite;
36 Sprite sprite = new Sprite(texture);
local 37 sprite.setSize(tileSize, tileSize);
43 sprite.setPosition(x * tileSize, y * tileSize);
44 cache.add(sprite);
47 sprite.rotate90(true);
|
| AtlasIssueTest.java | 22 import com.badlogic.gdx.graphics.g2d.Sprite;
30 Sprite sprite;
field in class:AtlasIssueTest 38 sprite = atlas.createSprite("map");
46 sprite.draw(batch);
|
| FilterPerformanceTest.java | 25 import com.badlogic.gdx.graphics.g2d.Sprite;
33 Sprite sprite;
field in class:FilterPerformanceTest 34 Sprite sprite2;
54 modeString = (mode % 2 == 0 ? "Sprite" : "Atlas") + " " + filterNames[mode / 2];
68 sprite = atlas.createSprite("map");
69 sprite2 = new Sprite(texture, 0, 0, 855, 480);
110 sprite.draw(batch);
|
| /frameworks/base/libs/input/ |
| SpriteController.h | 30 * Transformation matrix for a sprite. 55 * Icon that a sprite displays, including its hotspot. 84 * A sprite is a simple graphical object that is displayed on-screen above other layers. 85 * The basic sprite class is an interface. 86 * The implementation is provided by the sprite controller. 88 class Sprite : public RefBase { 90 Sprite() { } 91 virtual ~Sprite() { } 102 /* Sets the bitmap that is drawn by the sprite. 103 * The sprite retains a copy of the bitmap for subsequent rendering. * 260 sp<SpriteImpl> sprite; member in struct:android::SpriteController::SpriteUpdate [all...] |
| SpriteController.cpp | 59 sp<Sprite> SpriteController::createSprite() { 73 "Sprite closeTransaction() called but there is no open sprite transaction"); 82 void SpriteController::invalidateSpriteLocked(const sp<SpriteImpl>& sprite) { 84 mLocked.invalidatedSprites.push(sprite); 114 // Collect information about sprite updates. 115 // Each sprite update record includes a reference to its associated sprite so we can 126 const sp<SpriteImpl>& sprite = mLocked.invalidatedSprites.itemAt(i); local 128 updates.push(SpriteUpdate(sprite, sprite->getStateLocked())) [all...] |
| /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g2d/ |
| Sprite.java | 27 /** Holds the geometry, color, and texture information for drawing 2D sprites using {@link Batch}. A Sprite has a position and a
29 * {@link Batch#begin()} and the respective matrices. A Sprite is always rectangular and its position (x, y) are located in the
30 * bottom left corner of that rectangle. A Sprite also has an origin around which rotations and scaling are performed (that is,
31 * the origin is not modified by rotation and scaling). The origin is given relative to the bottom left corner of the Sprite, its
35 public class Sprite extends TextureRegion {
49 /** Creates an uninitialized sprite. The sprite will need a texture region and bounds set before it can be drawn. */
50 public Sprite () {
54 /** Creates a sprite with width, height, and texture region equal to the size of the texture. */
55 public Sprite (Texture texture) { [all...] |
| PolygonSprite.java | 45 /** Creates a sprite that is a copy in every way of the specified sprite. */
46 public PolygonSprite (PolygonSprite sprite) {
47 set(sprite);
50 public void set (PolygonSprite sprite) {
51 if (sprite == null) throw new IllegalArgumentException("sprite cannot be null.");
53 setRegion(sprite.region);
55 x = sprite.x;
56 y = sprite.y; [all...] |
| /prebuilts/misc/windows/sdl2/test/ |
| testnative.c | 56 SDL_Texture *sprite; local 58 /* Load the sprite image */ 71 sprite = SDL_CreateTextureFromSurface(renderer, temp); 72 if (!sprite) { 80 return sprite; 84 MoveSprites(SDL_Renderer * renderer, SDL_Texture * sprite) 93 SDL_QueryTexture(sprite, NULL, NULL, &sprite_w, &sprite_h); 99 /* Move the sprite, bounce at the wall, and draw */ 114 /* Blit the sprite onto the screen */ 115 SDL_RenderCopy(renderer, sprite, NULL, position) 129 SDL_Texture *sprite; local [all...] |
| /external/libpng/contrib/examples/ |
| simpleover.c | 21 * {--sprite=width,height,name {[--at=x,y] {sprite.png}}} 24 * The --sprite and --add options may occur multiple times. They are executed 25 * in order. --add may refer to any sprite already read. 29 * is to combine multiple input PNG images into a single sprite; this involves 50 struct sprite { struct 103 sprite_op(const struct sprite *sprite, int x_offset, int y_offset, 113 * right or bottom of the sprite: 115 if ((y_offset < 0 || (unsigned)/*SAFE*/y_offset < sprite->height) & [all...] |
| /external/replicaisland/src/com/replica/replicaisland/ |
| FixedAnimationComponent.java | 35 // We look up the sprite component each frame so that this component can be shared. 37 SpriteComponent sprite = parentObject.findByClass(SpriteComponent.class); local 38 if (sprite != null) { 39 sprite.playAnimation(mAnimationIndex);
|
| /external/universal-tween-engine/java/applets/src/aurelienribon/tweenengine/applets/ |
| Sprite.java | 11 public class Sprite { 20 public Sprite(String gfxName) { 22 image = ImageIO.read(Sprite.class.getResource("/aurelienribon/tweenengine/applets/gfx/" + gfxName)); 46 public Sprite setCentered(boolean isCentered) {
|
| /external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/examples/ |
| MoveSpriteExample.java | 27 /** Demonstrates how to let a sprite follow a finger touching the screen.
37 // create a SpriteBatch with which to render the sprite
40 // load the sprite's texture. note: usually you have more than
41 // one sprite in a texture, see {@see TextureAtlas} and {@see TextureRegion}.
59 // draw the sprite
64 // if a finger is down, set the sprite's x/y coordinate.
|