List of usage examples for com.badlogic.gdx.graphics GL20 GL_SRC_ALPHA
int GL_SRC_ALPHA
To view the source code for com.badlogic.gdx.graphics GL20 GL_SRC_ALPHA.
Click Source Link
From source file:seventh.client.gfx.GdxCanvas.java
License:Open Source License
@Override public void drawLine(int x1, int y1, int x2, int y2, Integer color) { Color c = setTempColor(color); Gdx.gl.glEnable(GL20.GL_BLEND);//from w w w . ja v a 2 s. 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.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 drawLine(float x1, float y1, float x2, float y2, Integer color) { Color c = setTempColor(color); Gdx.gl.glEnable(GL20.GL_BLEND);/*from ww w .j ava 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.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);//from w w w. j a v a 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.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 w w . j a v 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);//from w ww .ja va 2 s . 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);// www. j ava 2 s . 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 drawCircle(float radius, int x, int y, Integer color) { Color c = setTempColor(color); Gdx.gl.glEnable(GL20.GL_BLEND);// w ww .j a va2s.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 drawCircle(float radius, float x, float y, Integer color) { Color c = setTempColor(color); Gdx.gl.glEnable(GL20.GL_BLEND);/*w ww . j a v a 2 s. 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 . j av a2 s . 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);//ww w . j a va 2 s .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.circle(x + radius, y + radius, radius); this.shapes.end(); Gdx.gl.glDisable(GL20.GL_BLEND); }