![]() |
vrecko
virtual reality framework
|
#include <osg/AlphaFunc>
#include <osg/Texture2D>
#include <osgDB/ReadFile>
#include <osg/Geometry>
#include <osg/BlendFunc>
#include <iostream>
#include <vreckoAP/Nature/Clouds/CloudsManager.h>
#include <vreckoAP/Nature/Clouds/OSGskybox.h>
Functions | |
void | CreateSkyBox (osg::ref_ptr< osg::Geode > skyboxGeode, long x, long y, long z, long width, long height, long length) |
void | CreateGround (osg::ref_ptr< osg::Geode > groundGeode, long x, long y, long z, long width, long length, long tileCount) |
void | CreateSun (osg::ref_ptr< osg::Billboard > sunBillBoard, int x, int y, int z) |
void CreateGround | ( | osg::ref_ptr< osg::Geode > | groundGeode, |
long | x, | ||
long | y, | ||
long | z, | ||
long | width, | ||
long | length, | ||
long | tileCount | ||
) |
Creates a basic ground with texture
[out] | groundGeode | Pointer to the osg::geode, where the ground should be stored |
[in] | x | X coordinate of the center of the ground |
[in] | y | Y coordinate of the ground (since the thickness is zero the parameter only determines the Y coordinate) |
[in] | z | Z coordinate of the center of the ground |
[in] | width | Width of the ground |
[in] | length | Length of the ground |
[in] | tileCount | Number of tiles in one coordinate |
void CreateSkyBox | ( | osg::ref_ptr< osg::Geode > | skyboxGeode, |
long | x, | ||
long | y, | ||
long | z, | ||
long | width, | ||
long | height, | ||
long | length | ||
) |
Creates a skybox
[out] | skyboxGeode | Pointer to the osg::geode, where the skybox should be stored |
[in] | x | X coordinate of the center of the skybox |
[in] | y | Y coordinate of the center of the skybox |
[in] | z | Z coordinate of the center of the skybox |
[in] | width | Width of the skybox |
[in] | height | Height of the skybox |
[in] | length | Length of the skybox |
void CreateSun | ( | osg::ref_ptr< osg::Billboard > | sunBillBoard, |
int | x, | ||
int | y, | ||
int | z | ||
) |
Creates a basic ground with texture
[out] | sunBillBoard | Pointer to the osg::BillBoard, where the sun should be stored |
[in] | x | X coordinate of the center of the sun |
[in] | y | Y coordinate of the center of the sun |
[in] | z | Z coordinate of the center of the sun |