1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-07 18:30:55 +03:00

0024641: TKOpenGl - public methods of OpenGl_Text and OpenGl_AspectText classes are not exported

This commit is contained in:
osa 2014-02-19 14:17:48 +04:00 committed by apn
parent 7eb732b683
commit 6a240ff87d
2 changed files with 26 additions and 26 deletions

View File

@ -32,11 +32,11 @@ class OpenGl_AspectText : public OpenGl_Element
public: public:
OpenGl_AspectText(); Standard_EXPORT OpenGl_AspectText();
virtual ~OpenGl_AspectText(); Standard_EXPORT virtual ~OpenGl_AspectText();
//! Copy parameters //! Copy parameters
void SetAspect (const CALL_DEF_CONTEXTTEXT& theAspect); Standard_EXPORT void SetAspect (const CALL_DEF_CONTEXTTEXT& theAspect);
//! @return font family name //! @return font family name
const TCollection_AsciiString& FontName() const const TCollection_AsciiString& FontName() const
@ -128,8 +128,8 @@ public:
return myResources.ShaderProgram; return myResources.ShaderProgram;
} }
virtual void Render (const Handle(OpenGl_Workspace)& theWorkspace) const; Standard_EXPORT virtual void Render (const Handle(OpenGl_Workspace)& theWorkspace) const;
virtual void Release (const Handle(OpenGl_Context)& theContext); Standard_EXPORT virtual void Release (const Handle(OpenGl_Context)& theContext);
protected: protected:

View File

@ -64,20 +64,20 @@ public:
public: //! @name methods for compatibility with layers public: //! @name methods for compatibility with layers
//! Empty constructor //! Empty constructor
OpenGl_Text(); Standard_EXPORT OpenGl_Text();
//! Create key for shared resource //! Create key for shared resource
static TCollection_AsciiString FontKey (const OpenGl_AspectText& theAspect, Standard_EXPORT static TCollection_AsciiString FontKey (const OpenGl_AspectText& theAspect,
const Standard_Integer theHeight); const Standard_Integer theHeight);
//! Find shared resource for specified font or initialize new one //! Find shared resource for specified font or initialize new one
static Handle(OpenGl_Font) FindFont (const Handle(OpenGl_Context)& theCtx, Standard_EXPORT static Handle(OpenGl_Font) FindFont (const Handle(OpenGl_Context)& theCtx,
const OpenGl_AspectText& theAspect, const OpenGl_AspectText& theAspect,
const Standard_Integer theHeight, const Standard_Integer theHeight,
const TCollection_AsciiString theKey); const TCollection_AsciiString theKey);
//! Compute text width //! Compute text width
static void StringSize (const Handle(OpenGl_Context)& theCtx, Standard_EXPORT static void StringSize (const Handle(OpenGl_Context)& theCtx,
const NCollection_String& theText, const NCollection_String& theText,
const OpenGl_AspectText& theTextAspect, const OpenGl_AspectText& theTextAspect,
const OpenGl_TextParam& theParams, const OpenGl_TextParam& theParams,
@ -86,13 +86,13 @@ public: //! @name methods for compatibility with layers
Standard_ShortReal& theDescent); Standard_ShortReal& theDescent);
//! Setup new string and parameters //! Setup new string and parameters
void Init (const Handle(OpenGl_Context)& theCtx, Standard_EXPORT void Init (const Handle(OpenGl_Context)& theCtx,
const TCollection_ExtendedString& theText, const TCollection_ExtendedString& theText,
const OpenGl_Vec2& thePoint, const OpenGl_Vec2& thePoint,
const OpenGl_TextParam& theParams); const OpenGl_TextParam& theParams);
//! Perform rendering //! Perform rendering
void Render (const Handle(OpenGl_PrinterContext)& thePrintCtx, Standard_EXPORT void Render (const Handle(OpenGl_PrinterContext)& thePrintCtx,
const Handle(OpenGl_Context)& theCtx, const Handle(OpenGl_Context)& theCtx,
const OpenGl_AspectText& theTextAspect) const; const OpenGl_AspectText& theTextAspect) const;