Esempio n. 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);
 }
Esempio n. 2
0
 public void maybeChangeAdditive(boolean additive) {
   if (myCurrAdditive == additive) return;
   myCurrAdditive = additive;
   myDrawer.setAdditive(additive);
 }
Esempio n. 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);
 }
Esempio n. 4
0
 public void draw(ParticleEmitter emitter, TextureAtlas.AtlasRegion tex, boolean additive) {
   maybeChangeAdditive(additive);
   emitter.draw(myDrawer.getBatch(emitter.getSprite().getTexture(), tex));
 }
Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 8
0
 public void end() {
   myDrawer.end();
 }
Esempio n. 9
0
 public void updateMtx(SolGame game) {
   myDrawer.setMtx(game.getCam().getMtx());
 }
Esempio n. 10
0
 public void begin() {
   myDrawer.begin();
 }