OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    OpenGl_AspectsSprite Class Reference

    OpenGl resources for custom point sprites. More...

    #include <OpenGl_AspectsSprite.hxx>

    Public Member Functions

     OpenGl_AspectsSprite ()
     Empty constructor.
    float MarkerSize () const
    bool IsReady () const
     Return TRUE if resource is up-to-date.
    void Invalidate ()
     Invalidate resource state.
    bool HasPointSprite (const occ::handle< OpenGl_Context > &theCtx, const occ::handle< Graphic3d_Aspects > &theAspects)
     Return TRUE if OpenGl point sprite resource defines texture.
    bool IsDisplayListSprite (const occ::handle< OpenGl_Context > &theCtx, const occ::handle< Graphic3d_Aspects > &theAspects)
     Return TRUE if OpenGl point sprite resource defined by obsolete Display List (bitmap).
    const occ::handle< OpenGl_PointSprite > & Sprite (const occ::handle< OpenGl_Context > &theCtx, const occ::handle< Graphic3d_Aspects > &theAspects, bool theIsAlphaSprite)
     Return sprite.
    void UpdateRediness (const occ::handle< Graphic3d_Aspects > &theAspect)
     Update texture resource up-to-date state.
    void Release (OpenGl_Context *theCtx)
     Release texture resource.

    Detailed Description

    OpenGl resources for custom point sprites.

    Constructor & Destructor Documentation

    ◆ OpenGl_AspectsSprite()

    OpenGl_AspectsSprite::OpenGl_AspectsSprite ( )
    inline

    Empty constructor.

    Member Function Documentation

    ◆ HasPointSprite()

    bool OpenGl_AspectsSprite::HasPointSprite ( const occ::handle< OpenGl_Context > & theCtx,
    const occ::handle< Graphic3d_Aspects > & theAspects )

    Return TRUE if OpenGl point sprite resource defines texture.

    ◆ Invalidate()

    void OpenGl_AspectsSprite::Invalidate ( )
    inline

    Invalidate resource state.

    ◆ IsDisplayListSprite()

    bool OpenGl_AspectsSprite::IsDisplayListSprite ( const occ::handle< OpenGl_Context > & theCtx,
    const occ::handle< Graphic3d_Aspects > & theAspects )

    Return TRUE if OpenGl point sprite resource defined by obsolete Display List (bitmap).

    ◆ IsReady()

    bool OpenGl_AspectsSprite::IsReady ( ) const
    inline

    Return TRUE if resource is up-to-date.

    ◆ MarkerSize()

    float OpenGl_AspectsSprite::MarkerSize ( ) const
    inline

    ◆ Release()

    void OpenGl_AspectsSprite::Release ( OpenGl_Context * theCtx)

    Release texture resource.

    ◆ Sprite()

    const occ::handle< OpenGl_PointSprite > & OpenGl_AspectsSprite::Sprite ( const occ::handle< OpenGl_Context > & theCtx,
    const occ::handle< Graphic3d_Aspects > & theAspects,
    bool theIsAlphaSprite )

    Return sprite.

    ◆ UpdateRediness()

    void OpenGl_AspectsSprite::UpdateRediness ( const occ::handle< Graphic3d_Aspects > & theAspect)

    Update texture resource up-to-date state.


    The documentation for this class was generated from the following file: