Open CASCADE Technology  7.0.0
Public Member Functions | Static Public Attributes
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. More...
 
const TCollection_AsciiStringErrorDescription () const
 Returns error description in case of load fail. More...
 
const TCollection_AsciiStringPrefix () const
 Returns prefix to insert before the source. More...
 
void SetPrefix (const TCollection_AsciiString &thePrefix)
 Sets prefix to insert before the source. More...
 
TCollection_AsciiString Source () const
 Returns shader source combined with prefix. More...
 
Standard_Boolean Load (const TCollection_AsciiString *theFileNames, const TCollection_AsciiString &thePrefix=EMPTY_PREFIX)
 Loads shader source from specified files. More...
 

Static Public Attributes

static const TCollection_AsciiString EMPTY_PREFIX
 Default shader prefix - empty string. More...
 

Detailed Description

Tool class for management of shader sources.

Constructor & Destructor Documentation

OpenGl_View::ShaderSource::ShaderSource ( )
inline

Creates new uninitialized shader source.

Member Function Documentation

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

Returns error description in case of load fail.

Standard_Boolean OpenGl_View::ShaderSource::Load ( const TCollection_AsciiString theFileNames,
const TCollection_AsciiString thePrefix = EMPTY_PREFIX 
)

Loads shader source from specified files.

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

Returns prefix to insert before the source.

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

Sets prefix to insert before the source.

TCollection_AsciiString OpenGl_View::ShaderSource::Source ( ) const

Returns shader source combined with prefix.

Field Documentation

const TCollection_AsciiString OpenGl_View::ShaderSource::EMPTY_PREFIX
static

Default shader prefix - empty string.


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