Merge branch 'master' of https://github.com/supertuxkart/stk-code
This commit is contained in:
commit
9c29ae0b26
@ -1171,6 +1171,11 @@ scene::ISceneNode *IrrDriver::addSkyBox(const std::vector<video::ITexture*>
|
|||||||
texture[4], texture[5]);
|
texture[4], texture[5]);
|
||||||
} // addSkyBox
|
} // addSkyBox
|
||||||
|
|
||||||
|
void IrrDriver::suppressSkyBox()
|
||||||
|
{
|
||||||
|
SkyboxTextures.clear();
|
||||||
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/** Adds a camera to the scene.
|
/** Adds a camera to the scene.
|
||||||
*/
|
*/
|
||||||
|
@ -272,6 +272,7 @@ public:
|
|||||||
int vert_res, float texture_percent,
|
int vert_res, float texture_percent,
|
||||||
float sphere_percent);
|
float sphere_percent);
|
||||||
scene::ISceneNode *addSkyBox(const std::vector<video::ITexture*> &texture_names);
|
scene::ISceneNode *addSkyBox(const std::vector<video::ITexture*> &texture_names);
|
||||||
|
void suppressSkyBox();
|
||||||
void removeNode(scene::ISceneNode *node);
|
void removeNode(scene::ISceneNode *node);
|
||||||
void removeMeshFromCache(scene::IMesh *mesh);
|
void removeMeshFromCache(scene::IMesh *mesh);
|
||||||
void removeTexture(video::ITexture *t);
|
void removeTexture(video::ITexture *t);
|
||||||
|
@ -1585,6 +1585,7 @@ void Track::loadTrackModel(bool reverse_track, unsigned int mode_id)
|
|||||||
|
|
||||||
// Sky dome and boxes support
|
// Sky dome and boxes support
|
||||||
// --------------------------
|
// --------------------------
|
||||||
|
irr_driver->suppressSkyBox();
|
||||||
if(m_sky_type==SKY_DOME && m_sky_textures.size() > 0)
|
if(m_sky_type==SKY_DOME && m_sky_textures.size() > 0)
|
||||||
{
|
{
|
||||||
scene::ISceneNode *node = irr_driver->addSkyDome(m_sky_textures[0],
|
scene::ISceneNode *node = irr_driver->addSkyDome(m_sky_textures[0],
|
||||||
|
Loading…
Reference in New Issue
Block a user