Thanks for replying so I did try this
batch.setBlendFunction(GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA);
and it works just fine now, even with renderer.setPremultipliedAlpha(true)
So my Plan is to create a SpineActor
which extends Table
, and can be added to a Stage
, so now the SpineActor
character can render its name above with a Label
can be clickable and can add Actions
It looks like this
public class SpineActor extends Table{
@Override
public void draw(){
super.draw();
skeleton.setPosition(getX(),getY());
state.update(Gdx.graphics.getDeltaTime()); // Update the animation time.
state.apply(skeleton);
skeleton.updateWorldTransform(); // Uses the bones' local SRT to compute their world SRT.
renderer.draw(batch, skeleton); // Draw the skeleton images.
batch.setBlendFunction(GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA);
}
}
should each SpineActor
have its own SkeletonRenderer
?