1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
3 // This file is part of Open CASCADE Technology software library.
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
14 /***********************************************************************
18 HISTORIQUE DES MODIFICATIONS :
19 --------------------------------
20 22-10-01 : SAV ; Created
21 ************************************************************************/
22 /*----------------------------------------------------------------------*/
27 #include <Aspect_GradientBackground.hxx>
28 #include <Aspect_Grid.hxx>
29 #include <Aspect_Window.hxx>
30 #include <Bnd_Box.hxx>
33 #include <Graphic3d_Group.hxx>
34 #include <Graphic3d_Structure.hxx>
35 #include <Graphic3d_TextureEnv.hxx>
36 #include <Graphic3d_Vector.hxx>
37 #include <Quantity_Color.hxx>
38 #include <Standard_MultiplyDefined.hxx>
39 #include <Standard_TypeMismatch.hxx>
40 #include <V3d_BadValue.hxx>
41 #include <V3d_Light.hxx>
42 #include <V3d_UnMapped.hxx>
43 #include <V3d_View.hxx>
44 #include <V3d_Viewer.hxx>
45 #include <Visual3d_View.hxx>
47 //BUC61044 25/10/01 SAV ; added functionality to control gl depth testing from higher API
48 //BUC61045 25/10/01 SAV ; added functionality to control gl lighting from higher API
49 void V3d_View::EnableGLLight( const Standard_Boolean enable ) const
51 MyView->EnableGLLight( enable );
54 Standard_Boolean V3d_View::IsGLLightEnabled() const
56 return MyView->IsGLLightEnabled();
59 const Graphic3d_RenderingParams& V3d_View::RenderingParams() const
61 return static_cast<Graphic3d_CView*> (MyView->CView())->RenderParams;
64 Graphic3d_RenderingParams& V3d_View::ChangeRenderingParams()
66 return static_cast<Graphic3d_CView*> (MyView->CView())->RenderParams;