text: // xrRender_R1.cpp : Defines the entry point for the DLL application.
  //
  
  #include "stdafx.h"
  #include "xrRenderCommon/dxRenderFactory.h"
  #include "xrRenderCommon/dxUIRender.h"
  #include "xrRenderCommon/dxDebugRender.h"
  
  BOOL APIENTRY DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) {
      switch (ul_reason_for_call) {
      case DLL_PROCESS_ATTACH:
          ::Render = &RImplementation;
          ::RenderFactory = &RenderFactoryImpl;
          ::DU = &DUImpl;
          //::vid_mode_token			= inited by HW;
          UIRender = &UIRenderImpl;
  #ifdef DEBUG
          DRender = &DebugRenderImpl;
  #endif // DEBUG
          xrRender_initconsole();
          break;
      case DLL_THREAD_ATTACH:
      case DLL_THREAD_DETACH:
      case DLL_PROCESS_DETACH:
          break;
      }
      return TRUE;
  }
  