Misc fixes for mods (2)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package mindustry.graphics;
|
||||
|
||||
import arc.*;
|
||||
import arc.graphics.*;
|
||||
import arc.graphics.g2d.*;
|
||||
import arc.math.*;
|
||||
@@ -18,6 +19,11 @@ public class Drawf{
|
||||
private static final Vec2[] vecs = new Vec2[]{new Vec2(), new Vec2(), new Vec2(), new Vec2()};
|
||||
private static final FloatSeq points = new FloatSeq();
|
||||
|
||||
/** Bleeds a mod pixmap if linear filtering is enabled. */
|
||||
public static void checkBleed(Pixmap pixmap){
|
||||
if(Core.settings.getBool("linear", true)) Pixmaps.bleed(pixmap);
|
||||
}
|
||||
|
||||
//TODO offset unused
|
||||
public static void flame(float x, float y, int divisions, float rotation, float length, float width, float pan){
|
||||
float len1 = length * pan, len2 = length * (1f - pan);
|
||||
|
||||
Reference in New Issue
Block a user