DiscussionsIssue archiveOther usage issues

Archived discussion

gradient background color

Other usage issuesTue, 01/30/2007 - 20:182 replies

Browse this forum
QuestionAuthor

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

Regards
Author

Discussion

2 archived replies

Posts are displayed in their archived order.

01Commenter-1

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

02Commenter-2

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