Skip to content

Instantly share code, notes, and snippets.

Rami Martin arissa34

Block or report user

Report or block arissa34

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View [LIBGDX] Strings internationalization
package rma.ox.engine.ressource.language;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.utils.I18NBundle;
import java.util.Locale;
import rma.ox.engine.settings.SettingsHelper;
public class Languages {
private static String PATH_STRINGS = "data/lang/strings";
@arissa34
arissa34 / [LIBGDX] LazyTextureRegion
Created Dec 1, 2019
Http request for TextureRegion with Texture placeholder during loading + cache + assets management
View [LIBGDX] LazyTextureRegion
package rma.ox.data.network.http.texture;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Net;
import com.badlogic.gdx.graphics.Pixmap;
import com.badlogic.gdx.graphics.PixmapIO;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.net.HttpRequestBuilder;
import com.badlogic.gdx.utils.FlushablePool;
View [LIBGDX] Toast like on Android
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.math.Interpolation;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.actions.Actions;
import com.badlogic.gdx.scenes.scene2d.ui.Dialog;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
import com.badlogic.gdx.scenes.scene2d.ui.Window;
import com.badlogic.gdx.utils.Array;
@arissa34
arissa34 / [LIBGDX] BoundingBoxModel
Last active Dec 1, 2019
[LIBGDX] If you need to render your BoundingBox to see where is this slut like after a matrix transform !
View [LIBGDX] BoundingBoxModel
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Camera;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.VertexAttribute;
import com.badlogic.gdx.graphics.glutils.IndexBufferObject;
import com.badlogic.gdx.graphics.glutils.ShaderProgram;
import com.badlogic.gdx.graphics.glutils.VertexBufferObject;
import com.badlogic.gdx.math.collision.BoundingBox;
import com.badlogic.gdx.utils.FloatArray;
You can’t perform that action at this time.