diff --git a/src/Graphic3d/FILES b/src/Graphic3d/FILES index 44b8a46a05..d4a0f1f69e 100755 --- a/src/Graphic3d/FILES +++ b/src/Graphic3d/FILES @@ -56,6 +56,7 @@ Graphic3d_NListOfHAsciiString.hxx Graphic3d_AspectText3d.cxx Graphic3d_PtrFrameBuffer.hxx Graphic3d_BufferType.hxx +Graphic3d_Vec.hxx Graphic3d_Vec2.hxx Graphic3d_Vec3.hxx Graphic3d_Vec4.hxx diff --git a/src/Graphic3d/Graphic3d_ShaderVariable.cxx b/src/Graphic3d/Graphic3d_ShaderVariable.cxx index f11661c0ee..53022b745e 100644 --- a/src/Graphic3d/Graphic3d_ShaderVariable.cxx +++ b/src/Graphic3d/Graphic3d_ShaderVariable.cxx @@ -24,17 +24,15 @@ IMPLEMENT_STANDARD_HANDLE (Graphic3d_ShaderVariable, Standard_Transient) IMPLEMENT_STANDARD_RTTIEXT(Graphic3d_ShaderVariable, Standard_Transient) -// // Specific instantiations of struct templates to avoid compilation warnings -// -template struct Graphic3d_UniformValue; -template struct Graphic3d_UniformValue; -template struct Graphic3d_UniformValue; -template struct Graphic3d_UniformValue; -template struct Graphic3d_UniformValue; -template struct Graphic3d_UniformValue; -template struct Graphic3d_UniformValue; -template struct Graphic3d_UniformValue; +template struct Graphic3d_UniformValue; +template struct Graphic3d_UniformValue; +template struct Graphic3d_UniformValue; +template struct Graphic3d_UniformValue; +template struct Graphic3d_UniformValue; +template struct Graphic3d_UniformValue; +template struct Graphic3d_UniformValue; +template struct Graphic3d_UniformValue; // ======================================================================= // function : ~Graphic3d_ValueInterface diff --git a/src/Graphic3d/Graphic3d_ShaderVariable.hxx b/src/Graphic3d/Graphic3d_ShaderVariable.hxx index 5770c592ba..18d9c8ac36 100644 --- a/src/Graphic3d/Graphic3d_ShaderVariable.hxx +++ b/src/Graphic3d/Graphic3d_ShaderVariable.hxx @@ -20,7 +20,7 @@ #ifndef _Graphic3d_ShaderVariable_HeaderFile #define _Graphic3d_ShaderVariable_HeaderFile -#include +#include #include #include @@ -49,42 +49,42 @@ struct Graphic3d_UniformValueTypeID { }; template<> -struct Graphic3d_UniformValueTypeID { +struct Graphic3d_UniformValueTypeID { static const Standard_Size ID = __LINE__; }; template<> -struct Graphic3d_UniformValueTypeID { +struct Graphic3d_UniformValueTypeID { static const Standard_Size ID = __LINE__; }; template<> -struct Graphic3d_UniformValueTypeID { +struct Graphic3d_UniformValueTypeID { static const Standard_Size ID = __LINE__; }; template<> -struct Graphic3d_UniformValueTypeID { +struct Graphic3d_UniformValueTypeID { static const Standard_Size ID = __LINE__; }; template<> -struct Graphic3d_UniformValueTypeID { +struct Graphic3d_UniformValueTypeID { static const Standard_Size ID = __LINE__; }; template<> -struct Graphic3d_UniformValueTypeID { +struct Graphic3d_UniformValueTypeID { static const Standard_Size ID = __LINE__; }; template<> -struct Graphic3d_UniformValueTypeID { +struct Graphic3d_UniformValueTypeID { static const Standard_Size ID = __LINE__; }; template<> -struct Graphic3d_UniformValueTypeID { +struct Graphic3d_UniformValueTypeID { static const Standard_Size ID = __LINE__; }; @@ -103,28 +103,28 @@ struct Graphic3d_UniformValue : public Graphic3d_ValueInterface }; //! Integer uniform value. -typedef Graphic3d_UniformValue Graphic3d_UniformInt; +typedef Graphic3d_UniformValue Graphic3d_UniformInt; //! Integer uniform 2D vector. -typedef Graphic3d_UniformValue Graphic3d_UniformVec2i; +typedef Graphic3d_UniformValue Graphic3d_UniformVec2i; //! Integer uniform 3D vector. -typedef Graphic3d_UniformValue Graphic3d_UniformVec3i; +typedef Graphic3d_UniformValue Graphic3d_UniformVec3i; //! Integer uniform 4D vector. -typedef Graphic3d_UniformValue Graphic3d_UniformVec4i; +typedef Graphic3d_UniformValue Graphic3d_UniformVec4i; //! Floating-point uniform value. -typedef Graphic3d_UniformValue Graphic3d_UniformFloat; +typedef Graphic3d_UniformValue Graphic3d_UniformFloat; //! Floating-point uniform 2D vector. -typedef Graphic3d_UniformValue Graphic3d_UniformVec2; +typedef Graphic3d_UniformValue Graphic3d_UniformVec2; //! Floating-point uniform 3D vector. -typedef Graphic3d_UniformValue Graphic3d_UniformVec3; +typedef Graphic3d_UniformValue Graphic3d_UniformVec3; //! Floating-point uniform 4D vector. -typedef Graphic3d_UniformValue Graphic3d_UniformVec4; +typedef Graphic3d_UniformValue Graphic3d_UniformVec4; //! Describes custom uniform shader variable. class Graphic3d_ShaderVariable : public Standard_Transient diff --git a/src/Graphic3d/Graphic3d_Vec.hxx b/src/Graphic3d/Graphic3d_Vec.hxx new file mode 100644 index 0000000000..f40483110b --- /dev/null +++ b/src/Graphic3d/Graphic3d_Vec.hxx @@ -0,0 +1,27 @@ +// Created on: 2013-10-25 +// Created by: Kirill GAVRILOV +// Copyright (c) 2013 OPEN CASCADE SAS +// +// The content of this file is subject to the Open CASCADE Technology Public +// License Version 6.5 (the "License"). You may not use the content of this file +// except in compliance with the License. Please obtain a copy of the License +// at http://www.opencascade.org and read it completely before using this file. +// +// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its +// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. +// +// The Original Code and all software distributed under the License is +// distributed on an "AS IS" basis, without warranty of any kind, and the +// Initial Developer hereby disclaims all such warranties, including without +// limitation, any warranties of merchantability, fitness for a particular +// purpose or non-infringement. Please see the License for the specific terms +// and conditions governing the rights and limitations under the License. + +#ifndef _Graphic3d_Vec_H__ +#define _Graphic3d_Vec_H__ + +#include +#include +#include + +#endif // _Graphic3d_Vec_H__ diff --git a/src/Graphic3d/Graphic3d_Vec2.hxx b/src/Graphic3d/Graphic3d_Vec2.hxx index 2e796bdda2..69d9c5688c 100755 --- a/src/Graphic3d/Graphic3d_Vec2.hxx +++ b/src/Graphic3d/Graphic3d_Vec2.hxx @@ -22,5 +22,10 @@ #include typedef NCollection_Vec2 Graphic3d_Vec2; +typedef NCollection_Vec2 Graphic3d_Vec2d; +typedef NCollection_Vec2 Graphic3d_Vec2i; +typedef NCollection_Vec2 Graphic3d_Vec2u; +typedef NCollection_Vec2 Graphic3d_Vec2ub; +typedef NCollection_Vec2 Graphic3d_Vec2b; #endif // _Graphic3d_Vec2_HeaderFile diff --git a/src/Graphic3d/Graphic3d_Vec3.hxx b/src/Graphic3d/Graphic3d_Vec3.hxx index 3c194d1521..d3e3f3b580 100755 --- a/src/Graphic3d/Graphic3d_Vec3.hxx +++ b/src/Graphic3d/Graphic3d_Vec3.hxx @@ -22,5 +22,10 @@ #include typedef NCollection_Vec3 Graphic3d_Vec3; +typedef NCollection_Vec3 Graphic3d_Vec3d; +typedef NCollection_Vec3 Graphic3d_Vec3i; +typedef NCollection_Vec3 Graphic3d_Vec3u; +typedef NCollection_Vec3 Graphic3d_Vec3ub; +typedef NCollection_Vec3 Graphic3d_Vec3b; #endif // _Graphic3d_Vec3_HeaderFile diff --git a/src/Graphic3d/Graphic3d_Vec4.hxx b/src/Graphic3d/Graphic3d_Vec4.hxx index 5ae18e9c9c..9d74eb41e1 100755 --- a/src/Graphic3d/Graphic3d_Vec4.hxx +++ b/src/Graphic3d/Graphic3d_Vec4.hxx @@ -22,5 +22,10 @@ #include typedef NCollection_Vec4 Graphic3d_Vec4; +typedef NCollection_Vec4 Graphic3d_Vec4d; +typedef NCollection_Vec4 Graphic3d_Vec4i; +typedef NCollection_Vec4 Graphic3d_Vec4u; +typedef NCollection_Vec4 Graphic3d_Vec4ub; +typedef NCollection_Vec4 Graphic3d_Vec4b; #endif // _Graphic3d_Vec4_HeaderFile diff --git a/src/OpenGl/OpenGl_Vec.hxx b/src/OpenGl/OpenGl_Vec.hxx index 9eeb62dfb0..41b5e5a1ea 100644 --- a/src/OpenGl/OpenGl_Vec.hxx +++ b/src/OpenGl/OpenGl_Vec.hxx @@ -20,30 +20,30 @@ #ifndef _OpenGl_Vec_H__ #define _OpenGl_Vec_H__ -#include +#include -typedef NCollection_Vec2 OpenGl_Vec2i; -typedef NCollection_Vec3 OpenGl_Vec3i; -typedef NCollection_Vec4 OpenGl_Vec4i; +typedef Graphic3d_Vec2i OpenGl_Vec2i; +typedef Graphic3d_Vec3i OpenGl_Vec3i; +typedef Graphic3d_Vec4i OpenGl_Vec4i; -typedef NCollection_Vec2 OpenGl_Vec2b; -typedef NCollection_Vec3 OpenGl_Vec3b; -typedef NCollection_Vec4 OpenGl_Vec4b; +typedef Graphic3d_Vec2b OpenGl_Vec2b; +typedef Graphic3d_Vec3b OpenGl_Vec3b; +typedef Graphic3d_Vec4b OpenGl_Vec4b; -typedef NCollection_Vec2 OpenGl_Vec2u; -typedef NCollection_Vec3 OpenGl_Vec3u; -typedef NCollection_Vec4 OpenGl_Vec4u; +typedef Graphic3d_Vec2u OpenGl_Vec2u; +typedef Graphic3d_Vec3u OpenGl_Vec3u; +typedef Graphic3d_Vec4u OpenGl_Vec4u; -typedef NCollection_Vec2 OpenGl_Vec2ub; -typedef NCollection_Vec3 OpenGl_Vec3ub; -typedef NCollection_Vec4 OpenGl_Vec4ub; +typedef Graphic3d_Vec2ub OpenGl_Vec2ub; +typedef Graphic3d_Vec3ub OpenGl_Vec3ub; +typedef Graphic3d_Vec4ub OpenGl_Vec4ub; -typedef NCollection_Vec2 OpenGl_Vec2; -typedef NCollection_Vec3 OpenGl_Vec3; -typedef NCollection_Vec4 OpenGl_Vec4; +typedef Graphic3d_Vec2 OpenGl_Vec2; +typedef Graphic3d_Vec3 OpenGl_Vec3; +typedef Graphic3d_Vec4 OpenGl_Vec4; -typedef NCollection_Vec2 OpenGl_Vec2d; -typedef NCollection_Vec3 OpenGl_Vec3d; -typedef NCollection_Vec4 OpenGl_Vec4d; +typedef Graphic3d_Vec2d OpenGl_Vec2d; +typedef Graphic3d_Vec3d OpenGl_Vec3d; +typedef Graphic3d_Vec4d OpenGl_Vec4d; #endif // _OpenGl_Vec_H__