gradient background color

Anyone has an idea hot to display the background with a color gradient?

Regards
Pawel

Andy Lg's picture

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);

Andy

Sharjith Naramparambath's picture

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. Sharjith