0027860: Visualization - clean up Transformation Persistence API
[occt.git] / src / Graphic3d / Graphic3d_ShaderProgram.cxx
index 68cc347..cd87a0d 100755 (executable)
 #include <OSD_File.hxx>
 #include <OSD_Path.hxx>
 
+IMPLEMENT_STANDARD_RTTIEXT(Graphic3d_ShaderProgram,Standard_Transient)
+
 namespace
 {
   static volatile Standard_Integer THE_PROGRAM_OBJECT_COUNTER = 0;
-};
+}
 
-IMPLEMENT_STANDARD_HANDLE (Graphic3d_ShaderProgram, Standard_Transient)
-IMPLEMENT_STANDARD_RTTIEXT(Graphic3d_ShaderProgram, Standard_Transient)
 
 // =======================================================================
 // function : ShadersFolder
@@ -217,3 +217,12 @@ void Graphic3d_ShaderProgram::ClearVariables()
 {
   myVariables.Clear();
 }
+
+// =======================================================================
+// function : SetAttributes
+// purpose  :
+// =======================================================================
+void Graphic3d_ShaderProgram::SetVertexAttributes (const Graphic3d_ShaderAttributeList& theAttributes)
+{
+  myAttributes = theAttributes;
+}