X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FOpenGl%2FOpenGl_Material.hxx;h=70695a707c9186075ffac7c558d273db47beed48;hb=611684187de2a7b7c59c33f7da9ca51afa64a326;hpb=c8428cb3e456e42cbe875baf6a2b39be41fe0ff3 diff --git a/src/OpenGl/OpenGl_Material.hxx b/src/OpenGl/OpenGl_Material.hxx index f2225a4d78..70695a707c 100644 --- a/src/OpenGl/OpenGl_Material.hxx +++ b/src/OpenGl/OpenGl_Material.hxx @@ -43,6 +43,14 @@ struct OpenGl_Material Diffuse.SetValues (theColor.rgb(), Diffuse.a()); } + //! Empty constructor. + OpenGl_Material() + : Ambient (1.0f), + Diffuse (1.0f), + Specular(1.0f), + Emission(1.0f), + Params (1.0f, 0.0f, 0.0f, 0.0f) {} + //! Initialize material void Init (const Graphic3d_MaterialAspect& theProp, const Quantity_Color& theInteriorColor);