Various clean ups for the release.

This commit is contained in:
Robert Osfield
2001-12-24 14:12:38 +00:00
parent fb5fee6c5e
commit 3652bd9015
27 changed files with 149 additions and 101 deletions

View File

@@ -1,7 +1,10 @@
#!smake
SHELL=/bin/sh
DIRS = sgv osgconv osgcube osgreflect osgtexture osgimpostor osgviews osgtext hangglide osgcluster
DIRS = sgv osgconv osgcube osgreflect osgtexture osgimpostor osgviews hangglide osgcluster
# comment out if you don't have the freetype and GLU1.3 library installed.
DIRS += osgtext
all :
for f in $(DIRS) ; do cd $$f; $(MAKE) || exit 1; cd ..; done

View File

@@ -66,7 +66,7 @@ Node *makeBase( void )
Texture *tex = new Texture;
tex->setImage(osgDB::readImageFile("water.rgb"));
tex->setImage(osgDB::readImageFile("Images/water.rgb"));
tex->setWrap( Texture::WRAP_S, Texture::REPEAT );
tex->setWrap( Texture::WRAP_T, Texture::REPEAT );

View File

@@ -89,7 +89,7 @@ Node *makeSky( void )
gset->setPrimLengths( lengths );
Texture *tex = new Texture;
tex->setImage(osgDB::readImageFile("white.rgb"));
tex->setImage(osgDB::readImageFile("Images/white.rgb"));
StateSet *dstate = new StateSet;

View File

@@ -116,7 +116,7 @@ Node *makeTank( void )
tex->setWrap( Texture::WRAP_S, Texture::REPEAT );
tex->setWrap( Texture::WRAP_T, Texture::REPEAT );
tex->setImage(osgDB::readImageFile("tank.rgb"));
tex->setImage(osgDB::readImageFile("Images/tank.rgb"));
StateSet *dstate = new StateSet;
dstate->setAttributeAndModes( tex, StateAttribute::ON );

View File

@@ -118,7 +118,7 @@ Node *makeTerrain( void )
Texture *tex = new Texture;
tex->setImage(osgDB::readImageFile("lz.rgb"));
tex->setImage(osgDB::readImageFile("Images/lz.rgb"));
StateSet *dstate = new StateSet;
dstate->setMode( GL_LIGHTING, StateAttribute::OFF );

View File

@@ -219,7 +219,7 @@ Node *makeTrees( void )
struct _tree *t;
Texture *tex = new Texture;
tex->setImage(osgDB::readImageFile("tree0.rgba"));
tex->setImage(osgDB::readImageFile("Images/tree0.rgba"));
StateSet *dstate = new StateSet;

View File

@@ -79,7 +79,7 @@ int main( int argc, char **argv )
osg::Node* model = osgDB::readNodeFiles(commandLine);
if (!model)
{
write_usage(osg::notify(osg::NOTICE),argv[0]);
// write_usage(osg::notify(osg::NOTICE),argv[0]);
return 1;
}

View File

@@ -164,7 +164,7 @@ int main( int argc, char **argv )
if (!loadedModel)
{
write_usage(osg::notify(osg::NOTICE),argv[0]);
// write_usage(osg::notify(osg::NOTICE),argv[0]);
return 1;
}
@@ -347,7 +347,7 @@ int main( int argc, char **argv )
osg::Transparency* trans = new osg::Transparency;
trans->setFunction(osg::Transparency::ONE,osg::Transparency::ONE);
osg::StateSet* statesetBin5 = createMirrorTexturedState("tank.rgb");
osg::StateSet* statesetBin5 = createMirrorTexturedState("Images/tank.rgb");
statesetBin5->setRenderBinDetails(5,"RenderBin");
statesetBin5->setMode(GL_CULL_FACE,osg::StateAttribute::OFF);

View File

@@ -45,16 +45,8 @@ using namespace osgGLUT;
#define TEXT_COL_3D osg::Vec4(.99,.3,.2,1)
#ifdef WIN32
std::string ttfPath("./fonts/times.ttf");
std::string ttfPath1("./fonts/verdana.ttf");
#else
std::string ttfPath("dirtydoz.ttf");
std::string ttfPath1("fudd.ttf");
#endif
std::string ttfPath("fonts/dirtydoz.ttf");
std::string ttfPath1("fonts/fudd.ttf");
int gFontSize=18;
int gFontSize1=24;

View File

@@ -77,7 +77,7 @@ int main( int argc, char **argv )
osg::Node* rootnode = osgDB::readNodeFiles(commandLine);
if (!rootnode)
{
write_usage(osg::notify(osg::NOTICE),argv[0]);
// write_usage(osg::notify(osg::NOTICE),argv[0]);
return 1;
}

View File

@@ -80,7 +80,7 @@ int main( int argc, char **argv )
osg::Node* rootnode = osgDB::readNodeFiles(commandLine);
if (!rootnode)
{
write_usage(osg::notify(osg::NOTICE),argv[0]);
// write_usage(osg::notify(osg::NOTICE),argv[0]);
return 1;
}