I'd like to request a simple Quad and or Triangle primitive to be added to the rendering functions.
I realise that you can do the same with shapes (but not knowing how shapes are processed internally) I think the ability to draw an arbitrary quad or triangle from a simple table of 4 (or 3) coordinates would be really useful.
In theory it should also be possible to specify vertex colour values (RGBA) so that gradients can be drawn easily as well.
something else I was wondering as well - would it be possible to change the vertex coordinates after the object has been created (I was thinking of this in respect to lines / shapes initially), but if I want to animate a box or triangle (or polyline) during an "onEnterFrame" event, it seems really wasteful to have to recreate the object every time (plus it means extra work for the GC when it kicks in).
My $0.02
Jon...
WhiteTree Games - Home, home on the web, where the bits and bytes they do play!
#MakeABetterGame! "Never give up, Never
NEVER give up!" -
Winston Churchill
Comments
The following function draws a polygon from a list of vertices (doesn't do gradients though):
Likes: ndoss, OZApps, techdojo
@atilim would be veryyy neat! I already have a use for this!
Likes: ndoss, techdojo
»Gideros Illustrator« - [svg|xml] scene designer using Adobe Illustrator®™ Within one line of code!
Also I "suspect" (but have never been able to prove) that in the other SDK - calls to generate primitives actually end up being rendered to textures and then blit as normal (draw a rotating line and watch what happens to the amount of video memory used when the line get's to 45 deg).
@jack0888 - sounds great, I'll look forward to seeing it.
#MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill