1
Java / Draw sprite into a thread
« on: May 24, 2014, 02:03:34 pm »
Hello,
I would like to draw a sprite from a thread but I get the following error:
Failed to create texture, size invalid (0x0)
while my code looks good.
My code:
Sprite s = this.listAnim.get(count).getImage(); // return a sprite
s.setPosition(x+5,y+10);
render.draw(s);
thank you
I would like to draw a sprite from a thread but I get the following error:
Failed to create texture, size invalid (0x0)
while my code looks good.
My code:
Sprite s = this.listAnim.get(count).getImage(); // return a sprite
s.setPosition(x+5,y+10);
render.draw(s);
thank you