v0.7.4b: cleaned up some miscellaneous android dependencies

This commit is contained in:
Evan Debenham
2019-08-01 00:40:44 -04:00
parent ec0657fcd6
commit 11efd1d0c3
4 changed files with 19 additions and 16 deletions

View File

@@ -23,8 +23,6 @@ package com.watabou.glwrap;
import com.badlogic.gdx.Gdx;
import javax.microedition.khronos.opengles.GL10;
public class Blending {
public static void useDefault(){
@@ -33,21 +31,21 @@ public class Blending {
}
public static void enable(){
Gdx.gl.glEnable( GL10.GL_BLEND );
Gdx.gl.glEnable( Gdx.gl.GL_BLEND );
}
public static void disable(){
Gdx.gl.glDisable( GL10.GL_BLEND );
Gdx.gl.glDisable( Gdx.gl.GL_BLEND );
}
//in this mode colors overwrite eachother, based on alpha value
public static void setNormalMode(){
Gdx.gl.glBlendFunc( GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA );
Gdx.gl.glBlendFunc( Gdx.gl.GL_SRC_ALPHA, Gdx.gl.GL_ONE_MINUS_SRC_ALPHA );
}
//in this mode colors add to eachother, eventually reaching pure white
public static void setLightMode(){
Gdx.gl.glBlendFunc( GL10.GL_SRC_ALPHA, GL10.GL_ONE );
Gdx.gl.glBlendFunc( Gdx.gl.GL_SRC_ALPHA, Gdx.gl.GL_ONE );
}
}