0024503: TKOpenGl - Porting ray-tracing component on BVH package
[occt.git] / src / OpenGl / OpenGl_RaytraceTypes.hxx
1 // Created on: 2013-10-15
2 // Created by: Denis BOGOLEPOV
3 // Copyright (c) 2013 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
7 // This library is free software; you can redistribute it and / or modify it
8 // under the terms of the GNU Lesser General Public version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 #ifndef _OpenGl_RaytraceTypes_Header
17 #define _OpenGl_RaytraceTypes_Header
18
19 #include <vector>
20
21 #include <NCollection_Vec4.hxx>
22 #include <NCollection_StdAllocator.hxx>
23
24 //! 4D vector of integers.
25 typedef NCollection_Vec4<int> OpenGl_RTVec4i;
26
27 //! 4D vector of floats.
28 typedef NCollection_Vec4<float> OpenGl_RTVec4f;
29
30 //! 4D vector of doubles.
31 typedef NCollection_Vec4<double> OpenGl_RTVec4d;
32
33 //! Array of 4D integer vectors.
34 typedef std::vector<OpenGl_RTVec4i,
35                     NCollection_StdAllocator<OpenGl_RTVec4i> > OpenGl_RTArray4i;
36
37 //! Array of 4D floating point vectors.
38 typedef std::vector<OpenGl_RTVec4f,
39                     NCollection_StdAllocator<OpenGl_RTVec4f> > OpenGl_RTArray4f;
40
41 #endif