Esempio n. 1
0
        void Init()
        {
            Console.WriteLine(GL.GetString(StringName.Renderer));
            Console.WriteLine(GL.GetString(StringName.Version));

            AssetLoader.Init();
            RenderCore.Create();
            GameLoop                   = new GameLoop(this);
            EditorLoop                 = new GameLoop(this);
            DisplayRT                  = new RenderTexture();
            FullscreenQuadProgram      = ShaderUtils.CreateFromResource("RasterDraw.Shaders.SimpleVert.glsl", "RasterDraw.Shaders.SimpleFrag.glsl");
            PhysicsEngine              = new PhysicsManager();
            EditorManager              = new EditorManager(ClientSize);
            EditorManager.GameGameLoop = GameLoop;
            GameObject editorManager = new GameObject("Editor Manager");

            editorManager.AddScript(EditorManager);
            EditorManager.Enabled = false;
            EditorLoop.Add(editorManager);
        }