Lines Matching refs:presentParameters
27 Direct3DSwapChain8::Direct3DSwapChain8(Direct3DDevice8 *device, D3DPRESENT_PARAMETERS *presentParameters) : device(device), presentParameters(*presentParameters)
36 reset(presentParameters);
135 void Direct3DSwapChain8::reset(D3DPRESENT_PARAMETERS *presentParameters)
139 this->presentParameters = *presentParameters;
141 ASSERT(presentParameters->BackBufferCount <= 3); // Maximum of three back buffers
143 if(presentParameters->BackBufferCount == 0)
145 presentParameters->BackBufferCount = 1;
151 HWND windowHandle = presentParameters->hDeviceWindow ? presentParameters->hDeviceWindow : creationParameters.hFocusWindow;
156 if(presentParameters->Windowed && (presentParameters->BackBufferHeight == 0 || presentParameters->BackBufferWidth == 0))
166 width = presentParameters->BackBufferWidth;
167 height = presentParameters->BackBufferHeight;
170 frameBuffer = createFrameBufferWin(windowHandle, presentParameters->BackBufferWidth, presentParameters->BackBufferHeight, presentParameters->Windowed == FALSE, true);
172 lockable = presentParameters->Flags & D3DPRESENTFLAG_LOCKABLE_BACKBUFFER;
178 for(int i = 0; i < (int)presentParameters->BackBufferCount; i++)
180 backBuffer[i] = new Direct3DSurface8(device, this, width, height, presentParameters->BackBufferFormat, D3DPOOL_DEFAULT, presentParameters->MultiSampleType, lockable, D3DUSAGE_RENDERTARGET);