Skip to content

Instantly share code, notes, and snippets.

View mgsx-dev's full-sized avatar

MGSX mgsx-dev

View GitHub Profile
@mgsx-dev
mgsx-dev / BlendingDemo.java
Created June 17, 2018 12:56
LibGDX blending example : substract shapes
package net.mgsx.blending;
import com.badlogic.gdx.Game;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.ScreenAdapter;
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.GL20;