예제 #1
0
// tries to locate AlphaBlend() function and initializes some data needed for alpha blending;
// sets pointer to AlphaBlend function (AlphaBlendF) 
// (returns false when AlphaBlending is not supported)
//static
bool MapWindow::AlphaBlendInit() {
  #if (WINDOWSPC>0)
    AlphaBlendF = AlphaBlend;
  #else
    AlphaBlendF = (TAlphaBlendF) GetProcAddress(GetModuleHandle(TEXT("coredll.dll")), TEXT("AlphaBlend"));
  #endif

  if (AlphaBlendF == NULL) {
    StartupStore(_T(". AlphaBlend Transparency is not available on this device\n"));
    return false;
  }

  InitAirSpaceSldBrushes(Colours);
  
  return true;
} // AlphaBlendInit()
예제 #2
0
파일: MapWindowA.cpp 프로젝트: Mazuk/LK8000
// tries to locate AlphaBlend() function and initializes some data needed for alpha blending;
// sets pointer to AlphaBlend function (AlphaBlendF) 
// (returns false when AlphaBlending is not supported)
//static
bool MapWindow::AlphaBlendInit() {
  #if (WINDOWSPC>0)
    AlphaBlendF = AlphaBlend;
  #else
    AlphaBlendF = (TAlphaBlendF) GetProcAddress(GetModuleHandle(TEXT("coredll.dll")), TEXT("AlphaBlend"));
  #endif

  if (AlphaBlendF == NULL) {
    #if ALPHADEBUG
    StartupStore(_T(". CoreDll::AlphaBlend() is not available\n"));
    #endif
    return false;
  }

  InitAirSpaceSldBrushes(Colours);
  
  return true;
} // AlphaBlendInit()