Тема: Hardware Acceleration

Как программно задать Hardware Acceleration в диалоге Options/System/3D Graphics System Configuration Dialog Box?

Re: Hardware Acceleration

> &AnD&
Введи команду "_3DCONFIG" ("ГРАФНАСТР") и посмотри опции.

Re: Hardware Acceleration

Лови:

static void GSHardwareSet(void)
{
  AcGsManager *pGsMgr = acgsGetGsManager (NULL);
  if (pGsMgr)
  {
    AcGsClassFactory *pClassFactory = pGsMgr->getGSClassFactory();
    if (pClassFactory)
    {
      AcGsConfig *pConfig = pClassFactory->getConfig();
      if (pConfig)
      {
        bool bAcc = pConfig->hardwareAcceleration();
        char buf[256],result[256];
        sprintf(buf,"\nSet HardwareAcceleration [Yes/No] <%s>: ", (bAcc ? "Yes":"No"));
        acedInitGet(0,"Yes No _ Yes No");
        if (acedGetKword(buf,result) == RTNORM) {
          if (!stricmp(result,"YES")) pConfig->setHardwareAcceleration(true);
                       else           pConfig->setHardwareAcceleration(false);
          pConfig->saveSettings();
        }
      }
    }
  }
}