0030537: Visualization - wrapping text in font text formatter
[occt.git] / src / OpenGl / OpenGl_TextBuilder.hxx
index 6ed37b8..2fcd775 100644 (file)
@@ -16,8 +16,6 @@
 #ifndef OpenGl_TextBuilder_Header
 #define OpenGl_TextBuilder_Header
 
-#include <Font_TextFormatter.hxx>
-
 #include <OpenGl_Context.hxx>
 #include <OpenGl_Font.hxx>
 #include <OpenGl_VertexBuffer.hxx>
@@ -27,6 +25,7 @@
 #include <NCollection_Vector.hxx>
 #include <NCollection_Handle.hxx>
 
+class Font_TextFormatter;
 
 //! This class generates primitive array required for rendering textured text using OpenGl_Font instance.
 class OpenGl_TextBuilder
@@ -37,7 +36,7 @@ public:
   Standard_EXPORT OpenGl_TextBuilder();
 
   //! Creates texture quads for the given text.
-  Standard_EXPORT void Perform (const Font_TextFormatter&                        theFormatter,
+  Standard_EXPORT void Perform (const Handle(Font_TextFormatter)&                theFormatter,
                                 const Handle(OpenGl_Context)&                    theContext,
                                 OpenGl_Font&                                     theFont,
                                 NCollection_Vector<GLuint>&                      theTextures,
@@ -46,7 +45,7 @@ public:
 
 protected: //! @name class auxillary methods
 
-  Standard_EXPORT void createGlyphs (const Font_TextFormatter&                                                      theFormatter,
+  Standard_EXPORT void createGlyphs (const Handle(Font_TextFormatter)&                                              theFormatter,
                                      const Handle(OpenGl_Context)&                                                  theCtx,
                                      OpenGl_Font&                                                                   theFont,
                                      NCollection_Vector<GLuint>&                                                    theTextures,