Oh there is one more thing you need to first, you need create a new context
so that you can realize it, otherwise the function make current do not
take place
here is the final code
viewer.setUpViewInWindow(x, y, width, height);
//Get the traits of the current window
os
No, I do not think that controlling this at the driver level is the right
way to do that.
I digged a litle and I think I found a better way, in case any anyone wants
to know, here is how it can be done on initilaization
//Get the traits of the current window
osg::ref_ptr< osg:
Hi Julio,
this is the code I am using (you may need to reformat it, because email splits
many lines into two). Call it once you have active context.
You may still need some includes like
#include
#if defined(__WIN32__) || defined(_WIN32)
# [...]
#else
# include
#endif
and so on.
John
//
If you have an Nvidia card, you can set the environment variable
__GL_SYNC_TO_VBLANK=1 or =0 to enable or disable vertical syncing, but this
must be done before the graphics context is initialized. I'm not sure how
to do it for ATI or Intel chips. A google search turned up this tip for ATI
cards: h
In my app I wrote this class function
void InitWindowsSystem (osgViewer::Viewer& viewer, const char* const title,
int x, int y, int width, int height)
{
viewer.setUpViewInWindow(x, y, width, height);
//Get the traits of the current window
osg::ref_ptr< osg::GraphicsCont
5 matches
Mail list logo