I'm assumeing we are talking about scripting here?
does scripting have a basic draw polygon function? if so then what you do is have four points, we will call them a, b, c, and d (they should probably be in an array) a and b are on the 'top' c and d the 'bottom' a and d the 'right', b and c 'left'
a-b
| |
d-c
now lets give the thing a radius r
all you have to do is multiply the orientation matrix's up vector by r and negative r, this will give you the up and down vectors. do the same to the right vector to get right and left vectors.
a=up+right
b=up+left
c=down+left
d=down+right
set the texture and draw those four points as a polygon.
???
profit