Exemplo n.º 1
0
        public static void Initialize()
        {
            if (IsInitialized)
                Terminate();

            Screen = new CluwneWindow(CluwneLib.Video.getVideoMode(), "Developer Station 14", CluwneLib.Video.getWindowStyle());

            _timer = new Clock();
            FrameStats = new TimingData(_timer);
            renderTargetArray = new RenderTarget[5];
            CurrentClippingViewport = new Viewport(0, 0, Screen.Size.X, Screen.Size.Y);
            IsInitialized = true;

            //Hook OpenTK into SFMLs Opengl
            OpenTK.Toolkit.Init(new OpenTK.ToolkitOptions{
                // Non-Native backend doesn't have a default GetAddress method
            Backend = OpenTK.PlatformBackend.PreferNative
            });
            new GraphicsContext(OpenTK.ContextHandle.Zero, null);
        }
Exemplo n.º 2
0
        public static void Initialize()
        {
            if (IsInitialized)
                Terminate();

            Debug = new CluwneDebug();

            IsInitialized = true;

            _currentTarget = new RenderTarget[5];

            _timer = new Clock();
            FrameStats = new TimingData(_timer);
        }