Your view object (type V3d_View) should have a method "SetBackgroundImage". Create a nice gradient image and then call:
view->SetBackgroundImage("c:/myimage.bmp", Aspect_FM_STRETCH, true);
Commenter-1
Archived discussion
Anyone has an idea hot to display the background with a color gradient?
Regards
Author
Discussion
Posts are displayed in their archived order.
Your view object (type V3d_View) should have a method "SetBackgroundImage". Create a nice gradient image and then call:
view->SetBackgroundImage("c:/myimage.bmp", Aspect_FM_STRETCH, true);
Commenter-1
I tried this and it works well. But intrested in knowing how it is applied using opengl, I tried to track the sources of occ and did not succeed. Can you suggest how to get it done it in opengl directly. I got some hint of doing it using texture mapping but not sure how.
Regards
N. Commenter-2