PDA

View Full Version : CSplitterWnd and Texture rendering



EPHERE
05-05-2002, 01:53 PM
Hi, I am using the CSplitterWnd window splitter class in my MFC app to divide the main SDI into viewports. Inside the viewports I am using standart OpenGL init functions to draw whatever I need to. The only problem is that I can only get it to display texture maps in one viewport- the one that has been created (by window splitter) last.

Has anyone else had a similar problem?

Help would be grealy appreciated.
Regards,
EPHERE

[This message has been edited by EPHERE (edited 05-05-2002).]

mikael_aronsson
05-06-2002, 01:38 AM
Hi !

It sounds like you are missing a context switch or something like that maybe ?

Mikael

Aldacron
05-06-2002, 01:54 AM
This GameDev.net article:
http://www.gamedev.net/reference/programming/features/3dmfc/ contains source for an app using a splitter and multiple OpenGL views. Should be just what you're looking for.