ClearTextures() static private méthode

static private ClearTextures ( ) : void
Résultat void
Exemple #1
0
 internal static void UpdateGraphicsSettings()
 {
     if (Program.CurrentRoute != null)
     {
         Program.CurrentlyLoading = true;
         Renderer.RenderScene(0.0);
         Program.currentGameWindow.SwapBuffers();
         World.CameraAlignment a = World.CameraCurrentAlignment;
         TextureManager.ClearTextures();
         Fonts.SmallFont = new Fonts.OpenGlFont(FontFamily.GenericSansSerif, 12.0f);
         if (Program.LoadRoute())
         {
             World.CameraCurrentAlignment = a;
             TrackManager.UpdateTrackFollower(ref World.CameraTrackFollower, -1.0, true, false);
             TrackManager.UpdateTrackFollower(ref World.CameraTrackFollower, a.TrackPosition, true, false);
             World.CameraAlignmentDirection = new World.CameraAlignment();
             World.CameraAlignmentSpeed     = new World.CameraAlignment();
             ObjectManager.UpdateVisibility(a.TrackPosition, true);
             ObjectManager.UpdateAnimatedWorldObjects(0.0, true);
         }
         Program.CurrentlyLoading = false;
     }
 }