I want to put a graphics on the screen ( say a logo), how i can do in openSG
What i did was
// Load the foreground image
osg::ImagePtr foreImageLoad=osg::Image::create();
beginEditCP(foreImageLoad);
if (foreImageLoad->read("we.jpg")==0){
std::cout << "Error loading filename" << std::endl;
}
endEditCP(foreImageLoad);
// Creating foreground
ImageForegroundPtr imfg=osg::ImageForeground::create();
beginEditCP(imfg);
imfg->addImage(foreImageLoad,Vec2f(0,0));
endEditCP(imfg);
How do i attach to viewport?
Best Regards
Brajesh Lal
____________________________________________________________________________________Give
spam the boot. Take control with tough spam protection in the all-new Yahoo!
Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_html.html -------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users