ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

Definition at line 63 of file dglglobals.c.

Referenced by dglInitDriver(), and DllMain().

{
    // Zero all fields just in case
    memset(&glb, 0, sizeof(glb));

    // Set the global defaults
    glb.bPrimary            = FALSE;        // Not the primary device
    glb.bHardware           = FALSE;        // Not a hardware device
//  glb.bFullscreen         = FALSE;        // Not running fullscreen
    glb.bSquareTextures     = FALSE;        // Device does not need sq
    glb.bPAL8               = FALSE;        // Device cannot do 8bit
    glb.dwMemoryType        = DDSCAPS_SYSTEMMEMORY;
    glb.dwRendering         = DGL_RENDER_D3D;

    glb.bWaitForRetrace     = TRUE;         // Sync to vertical retrace
    glb.bFullscreenBlit     = FALSE;

    glb.nPixelFormatCount   = 0;
    glb.lpPF                = NULL;         // Pixel format list
#ifndef _USE_GLD3_WGL
    glb.nZBufferPFCount     = 0;
    glb.lpZBufferPF         = NULL;
    glb.nDisplayModeCount   = 0;
    glb.lpDisplayModes      = NULL;
    glb.nTextureFormatCount = 0;
    glb.lpTextureFormat     = NULL;
#endif // _USE_GLD3_WGL

    glb.wMaxSimultaneousTextures = 1;

    // Enable support for multitexture, if available.
    glb.bMultitexture       = TRUE;

    // Enable support for mipmapping
    glb.bUseMipmaps         = TRUE;

    // Alpha emulation via chroma key
    glb.bEmulateAlphaTest   = FALSE;

    // Use Mesa pipeline always (for compatibility)
    glb.bForceMesaPipeline  = FALSE;

    // Init support for multiple GLRCs
    glb.bDirectDraw         = FALSE;
    glb.bDirectDrawPrimary  = FALSE;
    glb.bDirect3D           = FALSE;
    glb.bDirect3DDevice     = FALSE;
    glb.bDirectDrawStereo   = FALSE;
    glb.iDirectDrawStereo   = 0;
    glb.hWndActive          = NULL;
    // Init DirectX COM interfaces for multiple GLRCs
//  glb.lpDD4               = NULL;
//  glb.lpPrimary4          = NULL;
//  glb.lpBack4             = NULL;
//  glb.lpDepth4            = NULL;
//  glb.lpGlobalPalette     = NULL;

    // Init special support options
    glb.bMessageBoxWarnings = TRUE;
    glb.bDirectDrawPersistant = FALSE;
    glb.bPersistantBuffers  = FALSE;

    // Do not assume single-precision-only FPU (for compatibility)
    glb.bFastFPU            = FALSE;

    // Allow hot-key support
    glb.bHotKeySupport      = TRUE;

    // Default to single-threaded support (for simplicity)
    glb.bMultiThreaded      = FALSE;

    // Use application-specific customizations (for end-user convenience)
    glb.bAppCustomizations  = TRUE;

#ifdef _USE_GLD3_WGL
    // Registry/ini-file settings for GLDirect 3.x
    glb.dwAdapter               = 0;    // Primary DX8 adapter
    glb.dwTnL                   = 1;    // MesaSW TnL
    glb.dwMultisample           = 0;    // Multisample Off
    glb.dwDriver                = 2;    // Direct3D HW

    // Signal a pixelformat list rebuild
    glb.bPixelformatsDirty      = TRUE;
#endif
}

Generated on Sun May 27 2012 04:55:50 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.