Hey guys, I’m looking at what primitives to add to SDL 1.3.
So far I have point, line, rect outline, and rect filled. ?I’m going
to have fast and anti-aliased versions of the line drawing code. ?How
many people would use circle or polygon and not go directly to OpenGL?
People first learning computer graphics. The learning barrier from
simple primitives to OpenGL is a lot like the difference between basic
arithmetic and vector math. The really dumb simple shapes make it very
easy to build programs that demonstrate animation without having to
jump to the complexity of OpenGL. Seriously, just trying to get past
the details of the OpenGL data type variants for all the different
APIs is a major barrier to learning.
I’d like to see circle and ellipse. Circle needs, x, y, radius and
color. Ellipse needs x, y, x-radius, y-radius, angle, and color. Yeah,
I know, the ellipse parameters aren’t what a lot of people expect, but
they are dead simple for people who don’t yet understand vectors and
rotations.
Polygon is nice if you can handle concave polygons, otherwise I’d
leave them out.
It would be nice to have texturing of the primitives, but… well I
understand not doing it.
Are you restricting this to 2D primitives? Even in OpenGL it would be
nice to have the GLUT solids as built in primitives. Those are
especially nice if they support texture faces.
Bob PendletonOn Fri, Dec 18, 2009 at 11:08 PM, Sam Lantinga wrote:
See ya!
? ? ? ?-Sam Lantinga, Founder and President, Galaxy Gameworks LLC
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
–
±----------------------------------------------------------