AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
SkyBox.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17#ifndef AGXOSG_SKYBOX_H
18#define AGXOSG_SKYBOX_H
19
20#include <agxOSG/export.h>
21
22#include <agx/PushDisableWarnings.h> // Disabling warnings. Include agx/PopDisableWarnings.h below!
23#include <osg/MatrixTransform>
24#include <osg/Geode>
25#include <agx/Vector.h>
26#include <osg/TextureCubeMap>
27#include <agx/PopDisableWarnings.h> // End of disabled warnings.
28
29namespace agxOSG
30{
31
32 AGXOSG_EXPORT osg::Geode*
33 createSkyBox( agx::Vector<osg::ref_ptr<osg::Image> >& images, float size );
34
35 AGXOSG_EXPORT osg::Geode*
36 createSkySphere( const std::string& name, agx::Vector<osg::ref_ptr<osg::Image> >& images, float radius );
37
38 AGXOSG_EXPORT osg::TextureCubeMap *createTextureCubeMap( agx::Vector<osg::ref_ptr<osg::Image> >& images);
39
40 AGXOSG_EXPORT osg::TextureCubeMap *createTextureCubeMap( const std::string& imagename, const std::string& filetype );
41
43 class AGXOSG_EXPORT SkyBox : public osg::Group
44 {
45 public:
47 SkyBox( const std::string& name,
48 const std::string& imagename,
49 const std::string& filetype,
50 double size = 1000,
51 bool use_glslang = false );
52
53 protected:
54 double m_size;
55 };
56
57}
58#endif
#define AGXOSG_EXPORT
Sky box.
Definition SkyBox.h:44
SkyBox(const std::string &name, const std::string &imagename, const std::string &filetype, double size=1000, bool use_glslang=false)
Constructor.
double m_size
Definition SkyBox.h:54
Templated vector class.
Definition agx/Vector.h:53
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.
AGXOSG_EXPORT osg::Geode * createSkyBox(agx::Vector< osg::ref_ptr< osg::Image > > &images, float size)
AGXOSG_EXPORT osg::TextureCubeMap * createTextureCubeMap(agx::Vector< osg::ref_ptr< osg::Image > > &images)
Internal functions for creating texture cube maps.
AGXOSG_EXPORT osg::Geode * createSkySphere(const std::string &name, agx::Vector< osg::ref_ptr< osg::Image > > &images, float radius)