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