/** Sets the alpha portion of the color used to tint this sprite. */ public void setAlpha (float a) { color.a = a; float color = this.color.toFloatBits(); vertices[C1] = color; vertices[C2] = color; vertices[C3] = color; vertices[C4] = color; }
/** Sets the alpha portion of the color used to tint this sprite. */ public void setAlpha (float a) { color.a = a; float color = this.color.toFloatBits(); vertices[C1] = color; vertices[C2] = color; vertices[C3] = color; vertices[C4] = color; }
public void setColor (Color tint) { color.set(tint); float color = tint.toFloatBits(); final float[] vertices = this.vertices; for (int i = 2; i < vertices.length; i += Sprite.VERTEX_SIZE) vertices[i] = color; }
@Override public void setColor (float r, float g, float b, float a) { color.set(r, g, b, a); colorPacked = color.toFloatBits(); }
@Override public void setColor (float r, float g, float b, float a) { color.set(r, g, b, a); colorPacked = color.toFloatBits(); }
public void setColor (Color tint) { color.set(tint); float color = tint.toFloatBits(); final float[] vertices = this.vertices; for (int i = 2; i < vertices.length; i += Sprite.VERTEX_SIZE) vertices[i] = color; }
public void setColor (float r, float g, float b, float a) { color.set(r, g, b, a); float packedColor = color.toFloatBits(); final float[] vertices = this.vertices; for (int i = 2; i < vertices.length; i += Sprite.VERTEX_SIZE) vertices[i] = packedColor; }
/** @see #setColor(Color) */ public void setColor (float r, float g, float b, float a) { color.set(r, g, b, a); float color = this.color.toFloatBits(); float[] vertices = this.vertices; vertices[C1] = color; vertices[C2] = color; vertices[C3] = color; vertices[C4] = color; }
@Override public void setColor (Color tint) { color.set(tint); colorPacked = tint.toFloatBits(); }
/** @see #setColor(Color) */ public void setColor (float r, float g, float b, float a) { color.set(r, g, b, a); colorPacked = color.toFloatBits(); }
/** @see #setColor(Color) */ public void setColor (float r, float g, float b, float a) { color.set(r, g, b, a); float color = this.color.toFloatBits(); float[] vertices = this.vertices; vertices[C1] = color; vertices[C2] = color; vertices[C3] = color; vertices[C4] = color; }
/** Sets the color used to tint this sprite. Default is {@link Color#WHITE}. */ public void setColor (Color tint) { color.set(tint); float color = tint.toFloatBits(); float[] vertices = this.vertices; vertices[C1] = color; vertices[C2] = color; vertices[C3] = color; vertices[C4] = color; }
/** Sets the color used to tint this decal. Default is {@link Color#WHITE}. */ public void setColor (Color tint) { color.set(tint); float color = tint.toFloatBits(); vertices[C1] = color; vertices[C2] = color; vertices[C3] = color; vertices[C4] = color; }
/** @see #setColor(Color) */ public void setColor (float r, float g, float b, float a) { color.set(r, g, b, a); colorPacked = color.toFloatBits(); }
@Override public void setColor (Color tint) { color.set(tint); colorPacked = tint.toFloatBits(); }
@Override public void setColor (float r, float g, float b, float a) { color.set(r, g, b, a); colorPacked = color.toFloatBits(); }
/** Sets the color used to tint this sprite. Default is {@link Color#WHITE}. */ public void setColor (Color tint) { color.set(tint); float color = tint.toFloatBits(); float[] vertices = this.vertices; vertices[C1] = color; vertices[C2] = color; vertices[C3] = color; vertices[C4] = color; }
/** Sets the color used to tint images when they are added to the SpriteCache. Default is {@link Color#WHITE}. */ public void setColor (Color tint) { color.set(tint); colorPacked = tint.toFloatBits(); }
@Override public void setColor (Color tint) { color.set(tint); colorPacked = tint.toFloatBits(); }
public void setColor (float r, float g, float b, float a) { color.set(r, g, b, a); float packedColor = color.toFloatBits(); final float[] vertices = this.vertices; for (int i = 2; i < vertices.length; i += Sprite.VERTEX_SIZE) vertices[i] = packedColor; }