Prashant Saxena wrote:
> Hi,
>
> How can I draw 'Rounded Rectangle' and a circle. I don't want want to
> use textures as size varies at run time. This is for an orthographic
> application.
You would normally tessellate the corners or the circle according to the
screen-size of the shape (that is, more points if the shape is larger).
sin/cos from numpy will work fine on numpy aranges to produce the
circular sections at whatever resolution you need. If you want to get
really fancy, you could use evaluators or even NURBS, but that's
probably way too complex and not worth the work unless you really have
higher-order curves to render as well.
HTH,
Mike
--
________________________________________________
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
|