Code:
    glPushMatrix;
    glTranslatef(pos.x, pos.y, pos.z);
    glRotatef(rot, 0, 0, 1);

    glInterleavedArrays(GL_T2F_V3F, 0, @edges[0]);
    glDrawElements(GL_quads, 4, GL_UNSIGNED_BYTE, @tennumbers[0]);

    glpopMatrix;
where you have gltranslate, glrotate, etc.. do those functions yourself on the cpu, and store the data in some buffer.