[Qt-interest] beginNativePainting
Samuel Rødal
sroedal at trolltech.com
Thu Dec 10 14:35:53 CET 2009
John Clayton wrote:
> Hi All
>
> *Must* I use the beginNativePainting() method if I intend to use my
> own OpenGL commands to render content within the
> QGraphicsItem::paint() method?
>
> Thanks
> --
> John Clayton
> Skype: johncclayton
It's heavily recommended, otherwise the paint engine won't be aware that
the GL state has changed behind its back on the next painter call, and
it won't have a chance to prepare a 'clean' state for you to issue GL
commands in.
--
Samuel
More information about the Qt-interest-old
mailing list