I've done it:
viewer.getCamera(0)->getRenderSurface()->setWindowRectangle(0,0,100,100);
And i get this:
Linking...
osgtexture3D.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: void __thiscall
Producer::RenderSurface::setWindowRectangle(int,int,unsigned
int,unsigned int,bool)"
([EMAIL PROTECTED]@Producer@@[EMAIL PROTECTED])
referenced in function _main
osgtexture3D.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: class Producer::RenderSurface *
__thiscall Producer::Camera::getRenderSurface(void)"
([EMAIL PROTECTED]@Producer@@[EMAIL PROTECTED]@XZ)
referenced in function _main
osgtexture3D.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: class Producer::Camera * __thiscall
Producer::CameraGroup::getCamera(int)"
([EMAIL PROTECTED]@Producer@@[EMAIL PROTECTED]@[EMAIL PROTECTED]) referenced
in function _main
.\../../../bin/Win32/osgtexture3Dd.exe : fatal error LNK1120: 3
unresolved externals
But I have the Producer\Camera, Producer\RenderSurface and
Producer\CameraGroup. Why?
Sorry about my doubts. I'm really a noob.
Fernando
Don Burns escreveu:
Viewer->getCamera(0)->getRenderSurface()->setWindowRectangle(
x, y, width, height );
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/
|
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/