Re: Drawing lines



Samium Gromoff <_deepfire feelingofgreen ru> writes:
How do you draw a line, as specified by its endpoints?

Initial reconnassance points me at a combination of:

  - clutter_paint_node_add_path()
  - a manually-constructed CoglPath in the form of a line-thick rectangle

This approach would require a reconstruction of the CoglPath every time
the line endpoints change.  Moreso, it's probably going to use something
other than a dirt-cheap GL_LINE draw mode.

The remaining question is what, exactly, should be done with the
resulting paint node?

Do we need to subclass ClutterActor ?

-- 
regards,
Samium Gromoff


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]