here it is:
with pfd do //Tells Windows How We Want Things To Be begin nSize:= SizeOf( PIXELFORMATDESCRIPTOR ); // Size Of This Pixel Format Descriptor nVersion:= 1; // Version Number (?) dwFlags:= PFD_DRAW_TO_WINDOW // Format Must Support Window or PFD_SUPPORT_OPENGL // Format Must Support OpenGL or PFD_DOUBLEBUFFER; // Must Support Double Buffering iPixelType:= PFD_TYPE_RGBA; // Request An RGBA Format cColorBits:= 16; // Select Our Color Depth cRedBits:= 0; // Color Bits Ignored cRedShift:= 0; cGreenBits:= 0; cBlueBits:= 0; cBlueShift:= 0; cAlphaBits:= 0; // No Alpha Buffer cAlphaShift:= 0; // Shift Bit Ignored cAccumBits:= 0; // No Accumulation Buffer cAccumRedBits:= 0; // Accumulation Bits Ignored cAccumGreenBits:= 0; cAccumBlueBits:= 0; cAccumAlphaBits:= 0; cDepthBits:= 32; // 16Bit Z-Buffer (Depth Buffer) cStencilBits:= 0; // No Stencil Buffer cAuxBuffers:= 0; // No Auxiliary Buffer iLayerType:= PFD_MAIN_PLANE; // Main Drawing Layer bReserved:= 0; // Reserved dwLayerMask:= 0; // Layer Masks Ignored dwVisibleMask:= 0; dwDamageMask:= 0; end;end;
-- Andy aka feroCT5
[edited by - feroCT5 on April 5, 2002 3:24:09 PM]