|
Open CASCADE Technology
7.8.0.dev
|
Tool class for management of shader sources. More...
#include <OpenGl_View.hxx>
Public Member Functions | |
| ShaderSource () | |
| Creates new uninitialized shader source. More... | |
| const TCollection_AsciiString & | ErrorDescription () const |
| Returns error description in case of load fail. More... | |
| const TCollection_AsciiString & | Prefix () 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 Handle< OpenGl_Context > &theCtx, const GLenum theType) const |
| Returns shader source combined with prefix. More... | |
| Standard_Boolean | LoadFromFiles (const TCollection_AsciiString *theFileNames, const TCollection_AsciiString &thePrefix=EMPTY_PREFIX) |
| Loads shader source from specified files. More... | |
| Standard_Boolean | LoadFromStrings (const TCollection_AsciiString *theStrings, const TCollection_AsciiString &thePrefix=EMPTY_PREFIX) |
| Loads shader source from specified strings. More... | |
Static Public Attributes | |
| static const TCollection_AsciiString | EMPTY_PREFIX |
| Default shader prefix - empty string. More... | |
Tool class for management of shader sources.
|
inline |
Creates new uninitialized shader source.
|
inline |
Returns error description in case of load fail.
| Standard_Boolean OpenGl_View::ShaderSource::LoadFromFiles | ( | const TCollection_AsciiString * | theFileNames, |
| const TCollection_AsciiString & | thePrefix = EMPTY_PREFIX |
||
| ) |
Loads shader source from specified files.
| Standard_Boolean OpenGl_View::ShaderSource::LoadFromStrings | ( | const TCollection_AsciiString * | theStrings, |
| const TCollection_AsciiString & | thePrefix = EMPTY_PREFIX |
||
| ) |
Loads shader source from specified strings.
|
inline |
Returns prefix to insert before the source.
|
inline |
Sets prefix to insert before the source.
| TCollection_AsciiString OpenGl_View::ShaderSource::Source | ( | const Handle< OpenGl_Context > & | theCtx, |
| const GLenum | theType | ||
| ) | const |
Returns shader source combined with prefix.
|
static |
Default shader prefix - empty string.
1.8.13