changed: gcc8 base update
[opensg.git] / Source / System / NodeCores / Drawables / Geometry / Util / OSGSimpleLightGeometry.h
blob97ef36ff2239a360e01323c2587277b045949097
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2000-2002 by the OpenSG Forum *
6 * *
7 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
8 * *
9 \*---------------------------------------------------------------------------*/
10 /*---------------------------------------------------------------------------*\
11 * License *
12 * *
13 * This library is free software; you can redistribute it and/or modify it *
14 * under the terms of the GNU Library General Public License as published *
15 * by the Free Software Foundation, version 2. *
16 * *
17 * This library is distributed in the hope that it will be useful, but *
18 * WITHOUT ANY WARRANTY; without even the implied warranty of *
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
20 * Library General Public License for more details. *
21 * *
22 * You should have received a copy of the GNU Library General Public *
23 * License along with this library; if not, write to the Free Software *
24 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
25 * *
26 \*---------------------------------------------------------------------------*/
27 /*---------------------------------------------------------------------------*\
28 * Changes *
29 * *
30 * *
31 * *
32 * *
33 * *
34 * *
35 \*---------------------------------------------------------------------------*/
38 #ifndef _OSGGeoSimpleLightGeometry_H_
39 #define _OSGGeoSimpleLightGeometry_H_
40 #ifdef __sgi
41 #pragma once
42 #endif
44 #include "OSGBaseTypes.h"
45 #include "OSGNode.h"
46 #include "OSGDrawableDef.h"
47 #include "OSGGeometry.h"
50 OSG_BEGIN_NAMESPACE
52 /*---------------------------------------------------------------------*/
53 /*! \name Construction functions */
54 /*! \{ */
56 OSG_DRAWABLE_DLLMAPPING
57 NodeTransitPtr makeSpot (Real32 R,
58 Real32 angle,
59 UInt32 slices,
60 UInt32 sides);
62 OSG_DRAWABLE_DLLMAPPING
63 GeometryTransitPtr makeSpotGeo (Real32 R,
64 Real32 angle,
65 UInt32 slices,
66 UInt32 sides);
68 OSG_DRAWABLE_DLLMAPPING
69 NodeTransitPtr makeCinema (Real32 a,
70 Real32 b,
71 Real32 r,
72 Real32 theta,
73 Real32 h,
74 UInt32 slices,
75 UInt32 sides);
77 OSG_DRAWABLE_DLLMAPPING
78 GeometryTransitPtr makeCinemaGeo (Real32 a,
79 Real32 b,
80 Real32 r,
81 Real32 theta,
82 Real32 h,
83 UInt32 slices,
84 UInt32 sides);
86 OSG_DRAWABLE_DLLMAPPING
87 NodeTransitPtr makeFrustumVolume (const Pnt3f& nlt,
88 const Pnt3f& nlb,
89 const Pnt3f& nrt,
90 const Pnt3f& nrb,
91 const Pnt3f& flt,
92 const Pnt3f& flb,
93 const Pnt3f& frt,
94 const Pnt3f& frb);
96 OSG_DRAWABLE_DLLMAPPING
97 GeometryTransitPtr makeFrustumVolumeGeo (const Pnt3f& nlt,
98 const Pnt3f& nlb,
99 const Pnt3f& nrt,
100 const Pnt3f& nrb,
101 const Pnt3f& flt,
102 const Pnt3f& flb,
103 const Pnt3f& frt,
104 const Pnt3f& frb);
106 OSG_DRAWABLE_DLLMAPPING
107 NodeTransitPtr makeFrustumVolume (const FrustumVolume& vol);
109 OSG_DRAWABLE_DLLMAPPING
110 GeometryTransitPtr makeFrustumVolumeGeo (const FrustumVolume& vol);
112 /*! \} */
114 OSG_END_NAMESPACE
116 #endif /* _OSGGeoSimpleLightGeometry_H_ */