Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:36

0001 // Created on: 2013-01-29
0002 // Created by: Kirill GAVRILOV
0003 // Copyright (c) 2013-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef OpenGl_Vec_HeaderFile
0017 #define OpenGl_Vec_HeaderFile
0018 
0019 #include <Graphic3d_Vec.hxx>
0020 
0021 typedef Graphic3d_Vec2i  OpenGl_Vec2i;
0022 typedef Graphic3d_Vec3i  OpenGl_Vec3i;
0023 typedef Graphic3d_Vec4i  OpenGl_Vec4i;
0024 
0025 typedef Graphic3d_Vec2b  OpenGl_Vec2b;
0026 typedef Graphic3d_Vec3b  OpenGl_Vec3b;
0027 typedef Graphic3d_Vec4b  OpenGl_Vec4b;
0028 
0029 typedef Graphic3d_Vec2u  OpenGl_Vec2u;
0030 typedef Graphic3d_Vec3u  OpenGl_Vec3u;
0031 typedef Graphic3d_Vec4u  OpenGl_Vec4u;
0032 
0033 typedef Graphic3d_Vec2ub OpenGl_Vec2ub;
0034 typedef Graphic3d_Vec3ub OpenGl_Vec3ub;
0035 typedef Graphic3d_Vec4ub OpenGl_Vec4ub;
0036 
0037 typedef Graphic3d_Vec2   OpenGl_Vec2;
0038 typedef Graphic3d_Vec3   OpenGl_Vec3;
0039 typedef Graphic3d_Vec4   OpenGl_Vec4;
0040 
0041 typedef Graphic3d_Vec2d  OpenGl_Vec2d;
0042 typedef Graphic3d_Vec3d  OpenGl_Vec3d;
0043 typedef Graphic3d_Vec4d  OpenGl_Vec4d;
0044 
0045 typedef Graphic3d_Mat4   OpenGl_Mat4;
0046 typedef Graphic3d_Mat4d  OpenGl_Mat4d;
0047 
0048 namespace OpenGl
0049 {
0050   //! Tool class for selecting appropriate vector type.
0051   //! \tparam T Numeric data type
0052   template<class T> struct VectorType
0053   {
0054     // Not implemented
0055   };
0056 
0057   template<> struct VectorType<Standard_Real>
0058   {
0059     typedef OpenGl_Vec2d Vec2;
0060     typedef OpenGl_Vec3d Vec3;
0061     typedef OpenGl_Vec4d Vec4;
0062   };
0063 
0064   template<> struct VectorType<Standard_ShortReal>
0065   {
0066     typedef OpenGl_Vec2 Vec2;
0067     typedef OpenGl_Vec3 Vec3;
0068     typedef OpenGl_Vec4 Vec4;
0069   };
0070 
0071   //! Tool class for selecting appropriate matrix type.
0072   //! \tparam T Numeric data type
0073   template<class T> struct MatrixType
0074   {
0075     // Not implemented
0076   };
0077 
0078   template<> struct MatrixType<Standard_Real>
0079   {
0080     typedef OpenGl_Mat4d Mat4;
0081   };
0082 
0083   template<> struct MatrixType<Standard_ShortReal>
0084   {
0085     typedef OpenGl_Mat4 Mat4;
0086   };
0087 }
0088 
0089 #endif // _OpenGl_Vec_H__