public ShapeEditor(IGUIUtility gu, IEventSystem es) { m_Selection = new ShapeEditorSelection(this); guiUtility = gu; eventSystem = es; k_CreatorID = guiUtility.GetPermanentControlID(); k_EdgeID = guiUtility.GetPermanentControlID(); k_RightTangentID = guiUtility.GetPermanentControlID(); k_LeftTangentID = guiUtility.GetPermanentControlID(); glSystem = GLSystem.GetSystem(); handles = HandlesSystem.GetSystem(); }
internal static void Load(IGenericWindow window) { GLSystem.INIT_SYSTEM(); GLSettings.ShaderPreProcessing = true; Framebuffer.ScreenWindow = window; var args = Environment.GetCommandLineArgs(); if (args.Contains("--advDebugging")) { SMRenderer.AdvancedDebugging = true; GLSettings.InfoEveryUniform = true; } Log.Init(); Log.Write("#", ConsoleColor.Cyan, "----------------------", "--- OpenGL Loading ---", "----------------------------------", $"--- {"DeviceVersion",14}: {GLSystem.DeviceVersion,-10} ---", $"--- {"ForcedVersion",14}: {GLSettings.ForcedVersion,-10} ---", $"--- {"ShadingVersion",14}: {GLSystem.ShadingVersion,-10} ---", $"--- {"Debugging",14}: {GLSystem.Debugging,-10} ---", $"--- {"AdvDebugging",14}: {SMRenderer.AdvancedDebugging,-10} ---", "----------------------------------"); if (SMRenderer.AdvancedDebugging) { Log.Write("Extension", ConsoleColor.DarkCyan, GLSystem.Extensions); } ExtensionManager.InitExtensions(); window.TriggerLoad(); window.AppliedSetup?.Load(window); }