[of-dev] setting ofPrimitiveMode
arturo at openframeworks.cc
Mon Apr 25 15:02:27 PDT 2011
El lun, 25-04-2011 a las 17:58 -0400, Kyle McDonald escribió:
> thanks, that explains a bunch.
> looking through it some more, i'm surprised to see that ofPath
> supports both fill and outline like we were discussing near the end of
> of-devcon... so it would be really, really easy to support
> processing-style drawing (with fillColor vs strokeColor). it would be
> like 6 lines of code.
> anyway, that's another topic. the main question originally was: 'what
> drawing modes does ofBeginShape/endShape support?'
> and the answer is: 3 modes, the same as before. filled, no fill
> closed, no fill open. but ofPath supports some more things via ofMesh.
> they're not really meant to be accessed directly.
> so, if i want to do another style of drawing, like GL_LINES, i should
> just use opengl.
or an ofMesh
> On Sat, Apr 23, 2011 at 10:45 AM, arturo castro
> <arturo at openframeworks.cc> wrote:
> > you can use it with ofMesh where you also have texcoords, normals...
> > ofBegin/EndShape are the same as before,
> > and ofPath allows to describe a path as primitives (bezier, arc...)
> > decompose them to polylines, tessellate them and cache the tessellation
> > into an ofMesh.
> > El vie, 22-04-2011 a las 20:19 -0400, Kyle McDonald escribió:
> >> so i've discovered ofPrimitiveMode, which seems to be for setting the
> >> shape style, but i haven't found the function that lets you set what
> >> ofPrimitiveMode is being used during ofBeginShape()/endShape().
> >> is there a function for this?
> >> will it be an argument to ofBeginShape() eventually?
> >> i was looking at using ofBeginShape()/endShape() as an alternative to
> >> glBegin()/end() but it looks like it doesn't really wrap anything
> >> besides tessellated polygons still.
> >> kyle
> >> _______________________________________________
> >> of-dev mailing list
> >> of-dev at dev.openframeworks.cc
> >> http://dev.openframeworks.cc/listinfo.cgi/of-dev-openframeworks.cc
> > _______________________________________________
> > of-dev mailing list
> > of-dev at dev.openframeworks.cc
> > http://dev.openframeworks.cc/listinfo.cgi/of-dev-openframeworks.cc
> of-dev mailing list
> of-dev at dev.openframeworks.cc
More information about the of-dev