Fixed compile warnings.
This commit is contained in:
@@ -10,7 +10,8 @@ CURRENT_CLASS::CURRENT_CLASS()
|
||||
}
|
||||
|
||||
CURRENT_CLASS::CURRENT_CLASS(const CURRENT_CLASS& dpn, const osg::CopyOp& copyop)
|
||||
: _active(dpn._active),
|
||||
: osg::Group(dpn,copyop),
|
||||
_active(dpn._active),
|
||||
_renderOrder(dpn._renderOrder),
|
||||
_clearColorBuffer(dpn._clearColorBuffer)
|
||||
{
|
||||
|
||||
@@ -53,7 +53,7 @@ void CURRENT_CLASS::pushLocalFrustum()
|
||||
_bbCorners.push_back(corner);
|
||||
}
|
||||
|
||||
void CURRENT_CLASS::apply(osg::CameraNode &camera)
|
||||
void CURRENT_CLASS::apply(osg::CameraNode& /*camera*/)
|
||||
{
|
||||
// We don't support scenes with CameraNodes in them
|
||||
return;
|
||||
|
||||
@@ -443,7 +443,7 @@ int main( int argc, char **argv )
|
||||
}
|
||||
}
|
||||
|
||||
printf( "PBuffer window: 0x%x\n", pbuffer->getWindow() );
|
||||
// printf( "PBuffer window: 0x%x\n", pbuffer->getWindow() );
|
||||
|
||||
viewer.getCamera(0)->setClearColor( 0.1f,0.9f,0.3f,1.0f );
|
||||
|
||||
|
||||
@@ -213,6 +213,15 @@ int main( int argc, char **argv )
|
||||
" gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;\n"
|
||||
"}\n";
|
||||
|
||||
|
||||
|
||||
osg::Program* program = new osg::Program;
|
||||
stateset->setAttribute(program);
|
||||
|
||||
osg::Shader* vertex_shader = new osg::Shader(osg::Shader::VERTEX, vertexShaderSource);
|
||||
program->addShader(vertex_shader);
|
||||
|
||||
#if 0
|
||||
//////////////////////////////////////////////////////////////////
|
||||
// fragment shader
|
||||
//
|
||||
@@ -222,15 +231,9 @@ int main( int argc, char **argv )
|
||||
" gl_FragColor = gl_Color; \n"
|
||||
"}\n";
|
||||
|
||||
|
||||
osg::Program* program = new osg::Program;
|
||||
stateset->setAttribute(program);
|
||||
|
||||
osg::Shader* vertex_shader = new osg::Shader(osg::Shader::VERTEX, vertexShaderSource);
|
||||
program->addShader(vertex_shader);
|
||||
|
||||
//osg::Shader* fragment_shader = new osg::Shader(osg::Shader::FRAGMENT, fragmentShaderSource);
|
||||
//program->addShader(fragment_shader);
|
||||
osg::Shader* fragment_shader = new osg::Shader(osg::Shader::FRAGMENT, fragmentShaderSource);
|
||||
program->addShader(fragment_shader);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -462,7 +462,7 @@ osg::Node* ForestTechniqueManager::createShaderGraph(Cell* cell,osg::StateSet* s
|
||||
else return geode;
|
||||
}
|
||||
|
||||
osg::Node* ForestTechniqueManager::createScene(unsigned int numTreesToCreates)
|
||||
osg::Node* ForestTechniqueManager::createScene(unsigned int /*numTreesToCreates*/)
|
||||
{
|
||||
osg::Group* scene = new osg::Group;
|
||||
|
||||
|
||||
@@ -724,11 +724,11 @@ class FollowMouseCallback : public osgGA::GUIEventHandler, public osg::StateSet:
|
||||
|
||||
};
|
||||
|
||||
osg::Node* createShaderModel(osg::ref_ptr<osg::Image>& image_3d, osg::ref_ptr<osg::Image>& normalmap_3d,
|
||||
osg::Node* createShaderModel(osg::ref_ptr<osg::Image>& image_3d, osg::ref_ptr<osg::Image>& /*normalmap_3d*/,
|
||||
osg::Texture::InternalFormatMode internalFormatMode,
|
||||
float xSize, float ySize, float zSize,
|
||||
float xMultiplier, float yMultiplier, float zMultiplier,
|
||||
unsigned int numSlices=500, float sliceEnd=1.0f, float alphaFuncValue=0.02f)
|
||||
float /*xSize*/, float /*ySize*/, float /*zSize*/,
|
||||
float /*xMultiplier*/, float /*yMultiplier*/, float /*zMultiplier*/,
|
||||
unsigned int /*numSlices*/=500, float /*sliceEnd*/=1.0f, float alphaFuncValue=0.02f)
|
||||
{
|
||||
osg::Geode* geode = new osg::Geode;
|
||||
osg::StateSet* stateset = geode->getOrCreateStateSet();
|
||||
|
||||
Reference in New Issue
Block a user