
i
i
i
i
i
i
i
i
16.4. Displaying Stereoscopic Images 443
PIXELFORMATDESCRIPTOR pfd = {
..
};
if (Stereo){ // we want to render in stereo
pfd.dwFlags |= PFD_STEREO;
}
Naturally, a r obustly written program should check to see that the appli-
cation has accepted the request for stereoscopic display. If not, it should fall
back into the default mono mode. There are a wide variety of freely available
libraries and code for reading images stored with various file formats. So here
we will assume that somewhere in our application there are a collection of
routines that extract width, height, stereoscopic format data and image pixel
data into global program variables an ...