OCCT3D 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_View::ShaderSource Class Reference

    Tool class for management of shader sources. More...

    #include <OpenGl_View.hxx>

    Public Member Functions

     ShaderSource ()
     Creates new uninitialized shader source.
    const TCollection_AsciiStringErrorDescription () const
     Returns error description in case of load fail.
    const TCollection_AsciiStringPrefix () const
     Returns prefix to insert before the source.
    void SetPrefix (const TCollection_AsciiString &thePrefix)
     Sets prefix to insert before the source.
    TCollection_AsciiString Source (const occ::handle< OpenGl_Context > &theCtx, const GLenum theType) const
     Returns shader source combined with prefix.
    bool LoadFromFiles (const TCollection_AsciiString *theFileNames, const TCollection_AsciiString &thePrefix=TCollection_AsciiString::EmptyString())
     Loads shader source from specified files.
    bool LoadFromStrings (const TCollection_AsciiString *theStrings, const TCollection_AsciiString &thePrefix=TCollection_AsciiString::EmptyString())
     Loads shader source from specified strings.

    Detailed Description

    Tool class for management of shader sources.

    Constructor & Destructor Documentation

    ◆ ShaderSource()

    OpenGl_View::ShaderSource::ShaderSource ( )
    inline

    Creates new uninitialized shader source.

    Member Function Documentation

    ◆ ErrorDescription()

    const TCollection_AsciiString & OpenGl_View::ShaderSource::ErrorDescription ( ) const
    inline

    Returns error description in case of load fail.

    ◆ LoadFromFiles()

    bool OpenGl_View::ShaderSource::LoadFromFiles ( const TCollection_AsciiString * theFileNames,
    const TCollection_AsciiString & thePrefix = TCollection_AsciiString::EmptyString() )

    Loads shader source from specified files.

    ◆ LoadFromStrings()

    bool OpenGl_View::ShaderSource::LoadFromStrings ( const TCollection_AsciiString * theStrings,
    const TCollection_AsciiString & thePrefix = TCollection_AsciiString::EmptyString() )

    Loads shader source from specified strings.

    ◆ Prefix()

    const TCollection_AsciiString & OpenGl_View::ShaderSource::Prefix ( ) const
    inline

    Returns prefix to insert before the source.

    ◆ SetPrefix()

    void OpenGl_View::ShaderSource::SetPrefix ( const TCollection_AsciiString & thePrefix)
    inline

    Sets prefix to insert before the source.

    ◆ Source()

    TCollection_AsciiString OpenGl_View::ShaderSource::Source ( const occ::handle< OpenGl_Context > & theCtx,
    const GLenum theType ) const

    Returns shader source combined with prefix.


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