mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0026275: Visualization, TKOpenGl - add public constructor for OpenGl_ShaderProgram
This commit is contained in:
parent
d0db6e8b33
commit
5440a790de
@ -145,11 +145,21 @@ public:
|
||||
//! List of pre-defined OCCT state uniform variables.
|
||||
static Standard_CString PredefinedKeywords[OpenGl_OCCT_NUMBER_OF_STATE_VARIABLES];
|
||||
|
||||
protected:
|
||||
|
||||
//! Creates uninitialized shader program.
|
||||
//!
|
||||
//! WARNING! This constructor is not intended to be called anywhere but from OpenGl_ShaderManager::Create().
|
||||
//! Manager has been designed to synchronize camera position, lights definition and other aspects of the program implicitly,
|
||||
//! as well as sharing same program across rendering groups.
|
||||
//!
|
||||
//! Program created outside the manager will be left detached from these routines,
|
||||
//! and them should be performed manually by caller.
|
||||
//!
|
||||
//! This constructor has been made public to provide more flexibility to re-use OCCT OpenGL classes without OCCT Viewer itself.
|
||||
//! If this is not the case - create the program using shared OpenGl_ShaderManager instance instead.
|
||||
Standard_EXPORT OpenGl_ShaderProgram (const Handle(Graphic3d_ShaderProgram)& theProxy = NULL);
|
||||
|
||||
protected:
|
||||
|
||||
static OpenGl_VariableSetterSelector mySetterSelector;
|
||||
|
||||
public:
|
||||
|
Loading…
x
Reference in New Issue
Block a user