Example #1
0
 public void drawAdditive(
     TextureRegion tr,
     float width,
     float height,
     float origX,
     float origY,
     float x,
     float y,
     float rot,
     Color tint) {
   maybeChangeAdditive(true);
   myDrawer.draw(tr, width, height, origX, origY, x, y, rot, tint);
 }
Example #2
0
 public void maybeChangeAdditive(boolean additive) {
   if (myCurrAdditive == additive) return;
   myCurrAdditive = additive;
   myDrawer.setAdditive(additive);
 }
Example #3
0
 public void drawCircle(
     TextureRegion tex, Vector2 center, float radius, Color col, float width, float vh) {
   maybeChangeAdditive(false);
   myDrawer.drawCircle(tex, center, radius, col, width, vh);
 }
Example #4
0
 public void draw(ParticleEmitter emitter, TextureAtlas.AtlasRegion tex, boolean additive) {
   maybeChangeAdditive(additive);
   emitter.draw(myDrawer.getBatch(emitter.getSprite().getTexture(), tex));
 }
Example #5
0
 public void drawLine(
     TextureRegion tex, Vector2 p1, Vector2 p2, Color col, float width, boolean precise) {
   maybeChangeAdditive(false);
   myDrawer.drawLine(tex, p1, p2, col, width, precise);
 }
Example #6
0
 public void drawLine(
     TextureRegion tex, float x, float y, float angle, float len, Color col, float width) {
   maybeChangeAdditive(false);
   myDrawer.drawLine(tex, x, y, angle, len, col, width);
 }
Example #7
0
 public void drawString(String s, float x, float y, float size, boolean centered, Color col) {
   maybeChangeAdditive(false);
   myDrawer.drawString(s, x, y, size, centered, col);
 }
Example #8
0
 public void end() {
   myDrawer.end();
 }
Example #9
0
 public void updateMtx(SolGame game) {
   myDrawer.setMtx(game.getCam().getMtx());
 }
Example #10
0
 public void begin() {
   myDrawer.begin();
 }