1 // Created on: 1997-07-28
2 // Created by: Pierre CHALAMET
3 // Copyright (c) 1997-1999 Matra Datavision
4 // Copyright (c) 1999-2012 OPEN CASCADE SAS
6 // The content of this file is subject to the Open CASCADE Technology Public
7 // License Version 6.5 (the "License"). You may not use the content of this file
8 // except in compliance with the License. Please obtain a copy of the License
9 // at http://www.opencascade.org and read it completely before using this file.
11 // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
14 // The Original Code and all software distributed under the License is
15 // distributed on an "AS IS" basis, without warranty of any kind, and the
16 // Initial Developer hereby disclaims all such warranties, including without
17 // limitation, any warranties of merchantability, fitness for a particular
18 // purpose or non-infringement. Please see the License for the specific terms
19 // and conditions governing the rights and limitations under the License.
23 #include <Graphic3d_Texture1Dmanual.ixx>
24 #include <Graphic3d_TypeOfTextureMode.hxx>
26 Graphic3d_Texture1Dmanual::Graphic3d_Texture1Dmanual(const Handle(Graphic3d_StructureManager)& SM,const Standard_CString FileName)
27 : Graphic3d_Texture1D(SM, FileName, Graphic3d_TOT_1D)
29 MyCInitTexture.doModulate = 0;
30 MyCInitTexture.doRepeat = 0;
31 MyCInitTexture.Mode = (int)Graphic3d_TOTM_MANUAL;
32 MyCInitTexture.doLinear = 0;
33 MyCInitTexture.sx = 1.0F;
34 MyCInitTexture.sy = 1.0F;
35 MyCInitTexture.tx = 0.0F;
36 MyCInitTexture.ty = 0.0F;
37 MyCInitTexture.angle = 0.0F;
38 MyCInitTexture.sparams[0] = 0.0F;
39 MyCInitTexture.sparams[1] = 0.0F;
40 MyCInitTexture.sparams[2] = 0.0F;
41 MyCInitTexture.sparams[3] = 0.0F;
42 MyCInitTexture.tparams[0] = 0.0F;
43 MyCInitTexture.tparams[1] = 0.0F;
44 MyCInitTexture.tparams[2] = 0.0F;
45 MyCInitTexture.tparams[3] = 0.0F;
50 Graphic3d_Texture1Dmanual::Graphic3d_Texture1Dmanual(const Handle(Graphic3d_StructureManager)& SM,const Graphic3d_NameOfTexture1D NOT)
51 : Graphic3d_Texture1D(SM, NOT, Graphic3d_TOT_1D)
53 MyCInitTexture.doModulate = 0;
54 MyCInitTexture.doRepeat = 0;
55 MyCInitTexture.Mode = (int)Graphic3d_TOTM_MANUAL;
56 MyCInitTexture.doLinear = 0;
57 MyCInitTexture.sx = 1.0F;
58 MyCInitTexture.sy = 1.0F;
59 MyCInitTexture.tx = 0.0F;
60 MyCInitTexture.ty = 0.0F;
61 MyCInitTexture.angle = 0.0F;
62 MyCInitTexture.sparams[0] = 0.0F;
63 MyCInitTexture.sparams[1] = 0.0F;
64 MyCInitTexture.sparams[2] = 0.0F;
65 MyCInitTexture.sparams[3] = 0.0F;
66 MyCInitTexture.tparams[0] = 0.0F;
67 MyCInitTexture.tparams[1] = 0.0F;
68 MyCInitTexture.tparams[2] = 0.0F;
69 MyCInitTexture.tparams[3] = 0.0F;