Open CASCADE Technology  6.9.0
Public Member Functions

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...
 
 ShaderSource (const TCollection_AsciiString &theFileName)
 Creates new shader source from specified file. 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...
 
void Load (const TCollection_AsciiString *theFileNames, const Standard_Integer theCount)
 Loads shader source from specified files. More...
 

Detailed Description

Tool class for management of shader sources.

Constructor & Destructor Documentation

OpenGl_View::ShaderSource::ShaderSource ( )
inline

Creates new uninitialized shader source.

OpenGl_View::ShaderSource::ShaderSource ( const TCollection_AsciiString theFileName)
inline

Creates new shader source from specified file.

Member Function Documentation

void OpenGl_View::ShaderSource::Load ( const TCollection_AsciiString theFileNames,
const Standard_Integer  theCount 
)

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.


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