00001 // 00002 // Copyright 2010 Autodesk, Inc. All rights reserved. 00003 // 00004 // Use of this software is subject to the terms of the Autodesk license 00005 // agreement provided at the time of installation or download, or which 00006 // otherwise accompanies this software in either electronic or hard copy form. 00007 // 00008 // 00009 00010 #pragma once 00011 00012 #include "..\ifnpub.h" 00013 #include "..\GetCOREInterface.h" 00014 00016 #define INITROUS_DISPLAY_MANAGER_INTERFACE_ID Interface_ID(0x71218f68, 0x52ab4a11) 00017 00018 namespace MaxSDK { namespace Graphics { 00019 00026 class IDisplayManager : public FPStaticInterface 00027 { 00028 public: 00046 virtual bool IsRetainedModeEnabled() const = 0; 00047 00048 }; 00049 00053 inline IDisplayManager* GetIDisplayManager() 00054 { 00055 return dynamic_cast<IDisplayManager*>(GetCOREInterface(INITROUS_DISPLAY_MANAGER_INTERFACE_ID)); 00056 }; 00057 00061 inline bool IsRetainedModeEnabled() 00062 { 00063 IDisplayManager* pGraphicsManager = GetIDisplayManager(); 00064 return NULL != pGraphicsManager && pGraphicsManager->IsRetainedModeEnabled(); 00065 } 00066 00067 00068 } }// end namespace