Multiple Fixtures

Hi,
i am using Opengl for rendering.
If i have a body and have added many fixtures to it. Then how we can display the complex body with many fixtures, since we take only the body position in order to display the body.

eg:
Code:
b2BodyDef bodydef;
bodydef.position.set(x,y);
b2Body *body = world->CreateBody(&bodydef);

b2PolygonShape shape;
shape.SetAsBox(hw, hh);    //hald width and height
body->CreateFixture(&shape, 0);

b2PolygonShape shape2;
shape2.SetAsBox(hw, hh);    //hald width and height
body->CreateFixture(&shape2, 0);


then in order to display both these fixture in rendering, how to do that???
Is it by getting the GetFixtureList()!!!??
but it does not help in setting the position in RENDERING.!!!

all suggestion are welcome
You know where the fixtures were placed so you know how to draw the object in it's default position and orientation. To draw it at the location and orientation that Box2d wants it, you just get the body's position and orientation from Box2d and use glRotate/glTranslate to render it.
Something like this (just from memory):
Code:
b2Vec2 pos = mybody->GetPosition();
float angle = mybody->GetRotation();
glPushMatrix();
   glTranslatef(pos.x, pos.y, 0);
   glRotate(angle*RAD_TO_DEG, 0, 0, 1 );

   ... draw your object in the default position ...

glPopMatrix();

...where RAD_TO_DEG is just the constant 180 / pi

Original thread: https://box2d.org/forum/viewtopic.php?t=6961