Hi, I need to add text support in my qt opengl/qt3D application. I try to draw text in a fbo like this:
QPainter painter(m_render_fbo); painter.setRenderHints(QPainter::Antialiasing |QPainter::TextAntialiasing |QPainter::SmoothPixmapTransform,true); document.drawContents(&painter); painter.end(); sometimes it works, and sometimes not : black or crash in drawCachedGlyphs ... depending on what I was doing before (for example it don't works if I was previoulsy drawing a texture). I have tryed to setup various opengl state, but I don't which one to setup to ensure to have a clean opengl state to draw the text using opengl engine ?
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest