void SE_RenderSystemCapabilities::init()
{
    if(mHasInit)
    {
        return;
    }
    initVendorStrings();
    createHardwareInfo();

    mHasInit = true;
}
	//---------------------------------------------------------------------
	GPUVendor RenderSystemCapabilities::vendorFromString(const String& vendorString)
	{
		initVendorStrings();
		GPUVendor ret = GPU_UNKNOWN;
		String cmpString = vendorString;
		StringUtil::toLowerCase(cmpString);
		for (int i = 0; i < GPU_VENDOR_COUNT; ++i)
		{
			// case insensitive (lower case)
			if (msGPUVendorStrings[i] == cmpString)
			{
				ret = static_cast<GPUVendor>(i);
				break;
			}
		}

		return ret;
		
	}
Beispiel #3
0
    GPUVendor DiGfxCaps::vendorFromString(const DiString& vendorString)
    {
        initVendorStrings();
        GPUVendor ret = GPU_UNKNOWN;
        DiString cmpString = vendorString;
        cmpString.ToLower();
        for (int i = 0; i < GPU_VENDOR_COUNT; ++i)
        {
            // case insensitive (lower case)
            if (msGPUVendorStrings[i] == cmpString)
            {
                ret = static_cast<GPUVendor>(i);
                break;
            }
        }

        return ret;
        
    }
	//---------------------------------------------------------------------
	String RenderSystemCapabilities::vendorToString(GPUVendor v)
	{
		initVendorStrings();
		return msGPUVendorStrings[v];
	}
Beispiel #5
0
 DiString DiGfxCaps::vendorToString(GPUVendor v)
 {
     initVendorStrings();
     return msGPUVendorStrings[v];
 }