public static void SetDeviceNull()
 {
     Log.Debug("GUIFontManager SetDeviceNull()");
     unsafe
     {
         DXNative.FontEngineSetDevice(null);
     }
 }
        /// <summary>
        /// Sets the device and the FVF.
        /// </summary>
        public static void SetDevice()
        {
            Log.Debug("GUIFontManager SetDevice()");
            IntPtr upDevice = DirectShowUtil.GetUnmanagedDevice(GUIGraphicsContext.DX9Device);

            unsafe
            {
                DXNative.FontEngineSetDevice(upDevice.ToPointer());
            }
        }
Example #3
0
        /// <summary>
        /// Initializes the device objects of the GUIFonts.
        /// </summary>
        public static void InitializeDeviceObjects()
        {
            lock (Renderlock)
            {
                Log.Debug("GUIFontManager InitializeDeviceObjects()");
                IntPtr upDevice = DirectShowUtil.GetUnmanagedDevice(GUIGraphicsContext.DX9Device);

                unsafe
                {
                    DXNative.FontEngineSetDevice(upDevice.ToPointer());
                }
                foreach (GUIFont font in ListFonts)
                {
                    font.InitializeDeviceObjects();
                }
            }
        }