Problem with OpenGL based on Motif

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

4 posts / 0 new
Last post
Problem with OpenGL based on Motif

Submitted by Anonymous on Thu, 01/04/2001 - 06:13. Developers
Hi,
I am currently building a UI for a OpenGL program using MOTIF as a base. However, I had this problem that my image will get corrupted, when another window overlap my "OPENGL" window. I try use buffer swap, it doesn`t work for all knid of window. Can anyne give me some advise on this? Thank you.

Anonymous

Usually, you select for an expose event, then redraw everything you need to, and then do the swap buffers.
Are you using the standard OpenGL widget for Motif?
-scorch

Anonymous

Yes. I am using the standard OpenGL Widget. I can`t afford to refresh the image, it will take hour to render the image. Actually, I am building a interactive program, where user are alllow to draw their 3D image, like metal bossing. So I am now using the buffer swap. It is ok for dialog box and menu, but when another window overlay my image. it will corrupt the image

Anonymous

I know it doesn`t fit, but can you tell me where I can find a small example programm showing me just basic, how to use a opengl widget with motif
THX
brainscan255@gmx.de