- Added espie track osg format

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@6032 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: a2aab1d03f9486ee05a97365b33a4787e1fbcb34
Former-commit-id: 42bc7a00bd77d98934b73b1390cae19dab8e0f5e
This commit is contained in:
torcs-ng 2015-06-26 23:14:47 +00:00
parent 2bb576da9f
commit 6126756446

View file

@ -24,7 +24,8 @@
#include "OsgScenery.h"
SDBackground::SDBackground(void)
SDBackground::SDBackground(void) :
_background(NULL)
{
}
@ -42,9 +43,10 @@ void SDBackground::build(bool type, int grWrldX, int grWrldY, int grWrldZ, const
std::string LocalPath = GetDataDir();
osgDB::FilePathList pathList = osgDB::Registry::instance()->getDataFilePathList();
pathList.push_back(TrackPath);
pathList.push_back(LocalPath+"data/objects/");
pathList.push_back(LocalPath+"data/textures/");
pathList.push_front(LocalPath+"data/objects/");
pathList.push_front(LocalPath+"data/textures/");
pathList.push_front(TrackPath);
osgDB::Registry::instance()->setDataFilePathList(pathList);
osg::ref_ptr<osg::MatrixTransform> _background_transform = new osg::MatrixTransform;