How to add textures to the Box2D shapes?

Can anybody help with this? I have different kinds of Box2D shapes and some of them (polygons) are displayed with vertex() function within the beginShape()/endShape(), but when I use texture() it just doesn't work (although it doesn't cause any error and the code is working).

Sign In or Register to comment.