Example usage for com.badlogic.gdx.graphics.g2d TextureRegion subclass-usage

List of usage examples for com.badlogic.gdx.graphics.g2d TextureRegion subclass-usage

Introduction

In this page you can find the example usage for com.badlogic.gdx.graphics.g2d TextureRegion subclass-usage.

Usage

From source file CB_UI_Base.graphics.SolidTextureRegion.java

/**
 * @author Longri
 */
public class SolidTextureRegion extends TextureRegion {
    public SolidTextureRegion(Color color, float width, float height) {
        Pixmap pix = new Pixmap(2, 2, Format.RGB565);

From source file com.jwatson.omnigame.Sprite.java

/** Holds the geometry, color, and texture information for drawing 2D sprites using {@link CustomBatch}. A Sprite has a position
 * and a size given as width and height. The position is relative to the origin of the coordinate system specified via
 * {@link CustomBatch#begin()} and the respective matrices. A Sprite is always rectangular and its position (x, y) are located in
 * the bottom left corner of that rectangle. A Sprite also has an origin around which rotations and scaling are performed (that
 * is, the origin is not modified by rotation and scaling). The origin is given relative to the bottom left corner of the Sprite,
 * its position.

From source file de.homelab.madgaksha.lotsofbs.bettersprite.CroppableSprite.java

/**
 * Holds the geometry, color, and texture information for drawing 2D sprites
 * using {@link Batch}. A Sprite has a position and a size given as width and
 * height. The position is relative to the origin of the coordinate system
 * specified via {@link Batch#begin()} and the respective matrices. A Sprite is
 * always rectangular and its position (x, y) are located in the bottom left