//------------------------------------------------------------------------------------- // Present //------------------------------------------------------------------------------------- void XDKGlDisplay() { if (GLImpl.use_aa) { GLImpl.EndTiling(); } else { GLImpl.Swap(); } }
//------------------------------------------------------------------------------------- // Present //------------------------------------------------------------------------------------- void XDKGlDisplay() { if (GLImpl.use_aa) { GLImpl.EndTiling(); } else { GLImpl.Swap(); } need_end_tiling = 0; }
//------------------------------------------------------------------------------------- // Start a frame //------------------------------------------------------------------------------------- void XDKGlBeginFrame() { // d3dwait #if USE_VB // refresh ib/vb cache GLImpl.pVbGL->Lock(0, 8*1024*1024, (void**)&GLImpl.prim.vertices.data, 0); GLImpl.pIbGL->Lock(0, 8*1024*1024, (void**)&GLImpl.prim.indices.data, 0); #endif // d3dpresent GLImpl.device->SynchronizeToPresentationInterval(); GLImpl.device->Swap(pFrontBuffer, NULL); // reset GLImpl.ResetStates(); GLImpl.ResetMatrixDirty(); GLImpl.prim.clear(); }
extern "C" void XDKQ3BeginFrame() { if (GLImpl.use_aa == 0) { return; } if (need_end_tiling) { XDKGlDisplay(); } GLImpl.BeginTiling(); need_end_tiling = 1; }
//------------------------------------------------------------------------------------- // Init opengl //------------------------------------------------------------------------------------- void XDKGlInit() { GLImpl.Init(); }
extern "C" void XDKQ3BeginFrame() { if (GLImpl.use_aa == 0) { return; } GLImpl.BeginTiling(); }