
static voID PVRFrameEnableControlWindow(bool bEnable){ HKEY hKey = 0; // Open PVRFrame control key,if not exist create it. if(ERROR_SUCCESS != RegCreateKeyExW(HKEY_CURRENT_USER,L"Software\Imagination TechnologIEs\PVRVFRame\STARTUP\",REG_OPTION_NON_VolATILE,KEY_ALL_ACCESS,&hKey,nullptr)) { return; } const WCHAR* wszValue = L"hIDe_gui"; const WCHAR* wszNewData = (bEnable) ? L"NO" : L"YES"; WCHAR wszoldData[256] = {0}; DWORD DWSize = sizeof(wszoldData); LSTATUS status = RegqueryValueExW(hKey,wszValue,nullptr,(LPBYTE)wszoldData,&DWSize); if (ERROR_file_NOT_FOUND == status // the key not exist || (ERROR_SUCCESS == status // or the hIDe_gui value is exist && 0 != wcscmp(wszNewData,wszoldData))) // but new data and old data not equal { DWSize = sizeof(WCHAR) * (wcslen(wszNewData) + 1); RegSetValueEx(hKey,REG_SZ,(const BYTE *)wszNewData,DWSize); } RegCloseKey(hKey);} PVRVFrame is a collection of emulation librarIEs that allow OpenGL ES applications to run on desktop development machines that do not natively support the OpenGL ES APIs. It enables developers to target all of the Khronos OpenGL ES APIs in their IDE of choice for rAPId development and gives users the freedom to develop without requiring access to a device that can support the version of OpenGL ES that is being targeted.
PVRVFrame是仿真库,允许OpenGL ES的应用程序可以在本身不支持OpenGL ES的API的桌面开发机器上运行的集合。它使开发人员能够针对所有在他们选择的IDE中的Khronos OpenGL ES的API来快速发展,给用户自由,而无需访问,可支持正在针对OpenGL ES的版本的设备来开发。
总结以上是内存溢出为你收集整理的PVRFrameEnableControlWindow函数--cocos全部内容,希望文章能够帮你解决PVRFrameEnableControlWindow函数--cocos所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)