List of usage examples for com.badlogic.gdx.graphics GL20 GL_ONE_MINUS_SRC_ALPHA
int GL_ONE_MINUS_SRC_ALPHA
To view the source code for com.badlogic.gdx.graphics GL20 GL_ONE_MINUS_SRC_ALPHA.
Click Source Link
From source file:seventh.client.gfx.GdxCanvas.java
License:Open Source License
@Override public void drawLine(float x1, float y1, float x2, float y2, Integer color) { Color c = setTempColor(color); Gdx.gl.glEnable(GL20.GL_BLEND);//from w ww.j ava 2s . c om Gdx.gl.glBlendFunc(GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA); this.shapes.setColor(c); this.shapes.begin(ShapeType.Line); this.shapes.line(x1, y1, x2, y2); this.shapes.end(); Gdx.gl.glDisable(GL20.GL_BLEND); }
From source file:seventh.client.gfx.GdxCanvas.java
License:Open Source License
@Override public void drawRect(int x, int y, int width, int height, Integer color) { Color c = setTempColor(color); Gdx.gl.glEnable(GL20.GL_BLEND);/*w w w. ja v a 2s . co m*/ Gdx.gl.glBlendFunc(GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA); this.shapes.setColor(c); this.shapes.begin(ShapeType.Line); this.shapes.rect(x, y, width, height); this.shapes.end(); Gdx.gl.glDisable(GL20.GL_BLEND); }
From source file:seventh.client.gfx.GdxCanvas.java
License:Open Source License
@Override public void drawRect(float x, float y, float width, float height, Integer color) { Color c = setTempColor(color); Gdx.gl.glEnable(GL20.GL_BLEND);//from w ww .jav a2 s .c om Gdx.gl.glBlendFunc(GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA); this.shapes.setColor(c); this.shapes.begin(ShapeType.Line); this.shapes.rect(x, y, width, height); this.shapes.end(); Gdx.gl.glDisable(GL20.GL_BLEND); }
From source file:seventh.client.gfx.GdxCanvas.java
License:Open Source License
@Override public void fillRect(int x, int y, int width, int height, Integer color) { Color c = setTempColor(color); Gdx.gl.glEnable(GL20.GL_BLEND);// w w w. j a v a2s . co m Gdx.gl.glBlendFunc(GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA); this.shapes.begin(ShapeType.Filled); this.shapes.setColor(c); this.shapes.rect(x, y, width, height); this.shapes.end(); Gdx.gl.glDisable(GL20.GL_BLEND); }
From source file:seventh.client.gfx.GdxCanvas.java
License:Open Source License
@Override public void fillRect(float x, float y, float width, float height, Integer color) { Color c = setTempColor(color); Gdx.gl.glEnable(GL20.GL_BLEND);/*from ww w . j av a 2 s .c o m*/ Gdx.gl.glBlendFunc(GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA); this.shapes.begin(ShapeType.Filled); this.shapes.setColor(c); this.shapes.rect(x, y, width, height); this.shapes.end(); Gdx.gl.glDisable(GL20.GL_BLEND); }
From source file:seventh.client.gfx.GdxCanvas.java
License:Open Source License
@Override public void drawCircle(float radius, int x, int y, Integer color) { Color c = setTempColor(color); Gdx.gl.glEnable(GL20.GL_BLEND);/* w ww .j ava2s . co m*/ Gdx.gl.glBlendFunc(GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA); this.shapes.setColor(c); this.shapes.begin(ShapeType.Line); this.shapes.circle(x + radius, y + radius, radius); this.shapes.end(); Gdx.gl.glDisable(GL20.GL_BLEND); }
From source file:seventh.client.gfx.GdxCanvas.java
License:Open Source License
@Override public void drawCircle(float radius, float x, float y, Integer color) { Color c = setTempColor(color); Gdx.gl.glEnable(GL20.GL_BLEND);//from ww w . j av a 2s. c o m Gdx.gl.glBlendFunc(GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA); this.shapes.setColor(c); this.shapes.begin(ShapeType.Line); this.shapes.circle(x + radius, y + radius, radius); this.shapes.end(); Gdx.gl.glDisable(GL20.GL_BLEND); }
From source file:seventh.client.gfx.GdxCanvas.java
License:Open Source License
@Override public void fillCircle(float radius, int x, int y, Integer color) { Color c = setTempColor(color); Gdx.gl.glEnable(GL20.GL_BLEND);//from w w w .ja va 2s . com Gdx.gl.glBlendFunc(GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA); this.shapes.setColor(c); this.shapes.begin(ShapeType.Filled); this.shapes.circle(x + radius, y + radius, radius); this.shapes.end(); Gdx.gl.glDisable(GL20.GL_BLEND); }
From source file:seventh.client.gfx.GdxCanvas.java
License:Open Source License
@Override public void fillCircle(float radius, float x, float y, Integer color) { Color c = setTempColor(color); Gdx.gl.glEnable(GL20.GL_BLEND);//from w w w .j a v a 2 s.c om Gdx.gl.glBlendFunc(GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA); this.shapes.setColor(c); this.shapes.begin(ShapeType.Filled); this.shapes.circle(x + radius, y + radius, radius); this.shapes.end(); Gdx.gl.glDisable(GL20.GL_BLEND); }
From source file:seventh.client.gfx.GdxCanvas.java
License:Open Source License
@Override public void fillArc(float x, float y, float radius, float start, float degrees, Integer color) { Color c = setTempColor(color); Gdx.gl.glEnable(GL20.GL_BLEND);//from w w w . j a va 2s . co m Gdx.gl.glBlendFunc(GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA); this.shapes.setColor(c); this.shapes.begin(ShapeType.Filled); this.shapes.arc(x, y, radius, start, degrees); this.shapes.end(); Gdx.gl.glDisable(GL20.GL_BLEND); }