AGXDynamics
2.35.0.3
SkyBox.h
Go to the documentation of this file.
1
/*
2
Copyright 2007-2022. Algoryx Simulation AB.
3
4
All AGX source code, intellectual property, documentation, sample code,
5
tutorials, scene files and technical white papers, are copyrighted, proprietary
6
and confidential material of Algoryx Simulation AB. You may not download, read,
7
store, distribute, publish, copy or otherwise disseminate, use or expose this
8
material unless having a written signed agreement with Algoryx Simulation AB, or having been
9
advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10
valid commercial license from Algoryx Simulation AB.
11
12
Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13
from using this software, unless otherwise stated in written agreements with
14
Algoryx 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
29
namespace
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
Vector.h
agx::Vector
Templated vector class.
Definition:
Vector.h:52
agxOSG::SkyBox
Sky box.
Definition:
SkyBox.h:43
agxOSG::createSkySphere
AGXOSG_EXPORT osg::Geode * createSkySphere(const std::string &name, agx::Vector< osg::ref_ptr< osg::Image > > &images, float radius)
agxOSG::createTextureCubeMap
AGXOSG_EXPORT osg::TextureCubeMap * createTextureCubeMap(agx::Vector< osg::ref_ptr< osg::Image > > &images)
Internal functions for creating texture cube maps.
agxOSG
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.
PushDisableWarnings.h
agxOSG::SkyBox::m_size
double m_size
Definition:
SkyBox.h:54
export.h
agxOSG::createSkyBox
AGXOSG_EXPORT osg::Geode * createSkyBox(agx::Vector< osg::ref_ptr< osg::Image > > &images, float size)
AGXOSG_EXPORT
#define AGXOSG_EXPORT
PopDisableWarnings.h
include
agxOSG
SkyBox.h
Generated on Fri Feb 10 2023 14:06:18 for AGXDynamics by
1.8.17