I have created a page linking to a 2D drawing primitives module for
pyglet I've put together. I you are interested...
Click on http://groups.google.com/group/pyglet-users/web/2d-drawing-primitives-module
- or copy & paste it into your browser's address bar if that doesn't
work.
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.20.4/1275 - Release Date:
> 12/02/2008 15:20
>
>
Also, I'm not (yet) optimizing with display lists but I would imagine
the code could be modified to do that as well.
Let me know if anyone is interested.
--Patrick.
I disagree entirely.
There are plenty of times, particularly when prototyping, when you
want to be able to quickly draw a circle, an ellipse, arcs, etc. A
library like this would be very useful.
If the code is small enough to go in a single .py it would be perfect,
you could simply drop it into your project and off you go.
So +1 from me.
--
Evolution: Taking care of those too stupid to take care of themselves.
> I disagree entirely.
>
> There are plenty of times, particularly when prototyping, when you
> want to be able to quickly draw a circle, an ellipse, arcs, etc. A
> library like this would be very useful.
>
I'm scratching my head wondering how you "entirely disagree" with me.
I like prototyping too. I also like hacking up things quickly -
that's why I dig Python. I also think libraries with good interfaces
can be very useful.
In retrospect, though, I disagree with myself - or the version of
myself on Feb. 16th. Namely:
>> In other applications, building more complex structures out of the functions
>> provided by a 2D primitives shim library would almost never be a good idea.
It actually might be a good idea if the library is structured in such
a way to make grouping your drawing operations efficient - and without
invoking large amount of *magic* leading to unforeseen corner cases.
I've thought of 2 ways to do this - I'm sure there are more.