I would request source code for the parts in Toolbox which do the following things:
Take dimensions of shapebox (Something like size, position and offset)
and converts them to co-ordinates to send to OpenGL using somthing like:
vertex(x, y, z)
If you can easily provide these, I would be grateful.
If not, it is okay, I'll work it out again to try and get it right.
these are the formulas to calculate the 8 corners of a box.
- Offset = the offset of the part
- Shapebox = the corner modifier
- Dim = Dimension of the part
- P1-P8 = modifier for mirroring, you can ignore them
then i build the vertexes out of them and store them with the texture coords in a vbo, first coord point value, secound coord texture value