On 10/18/06, Fernando Giovanini <
[EMAIL PROTECTED]> wrote:
Sorry! I have discovered where was my second error. It's so stupid... I
forget to include osg/ShapeDrawable.
But I don't know how to resize the window yet.
Fernando Giovanini escreveu:
> Hello all,
> I have two doubts:
> Is there a way to resize the viewer? 'Cause don't want to execute my
> programs in full window mode.
>
> And I'm trying to build a box with DrawableShape but it's returning
> the following errors:
>
> \OSG\OpenSceneGraph\examples\osgtexture3D\osgtexture3D.cpp(177) :
> error C2039: 'ShapeDrawable' : is not a member of 'osg'
> \OSG\OpenSceneGraph\examples\osgtexture3D\osgtexture3D.cpp(177) :
> error C2065: 'ShapeDrawable' : undeclared identifier
> \OSG\OpenSceneGraph\examples\osgtexture3D\osgtexture3D.cpp(177) :
> error C2146: syntax error : missing ';' before identifier 'cubo'
> \OSG\OpenSceneGraph\examples\osgtexture3D\osgtexture3D.cpp(177) :
> error C2065: 'cubo' : undeclared identifier
> \OSG\OpenSceneGraph\examples\osgtexture3D\osgtexture3D.cpp(177) :
> error C2039: 'ShapeDrawable' : is not a member of 'osg'
> \OSG\OpenSceneGraph\examples\osgtexture3D\osgtexture3D.cpp(177) :
> error C3861: 'ShapeDrawable': identifier not found, even with
> argument-dependent lookup
>
> This is my code:
> osg::Vec3f vetor = osg::Vec3f();
> vetor.set(0,0,0);
> // set up the Geometry.
> osg::Box* box = new osg::Box(vetor,1.0);
>
> osg::ShapeDrawable cubo = osg::ShapeDrawable();
>
> Where is the errors?
>
> Thanks
> Fernando
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
