Beispiel #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);


            FileSystem.Instance.AddWorkingDir(@"E:\Documents\ic10gd\Source\Code2015\bin\x86\Debug");

            // zou jia's res dir
            FileSystem.Instance.AddWorkingDir(@"G:\lrvbsvnicg\Source\Code2015\bin\x86\Debug");



            GraphicsAPIManager.Instance.RegisterGraphicsAPI(new Apoc3D.RenderSystem.Xna.XnaGraphicsAPIFactory());

            DeviceContent dc = GraphicsAPIManager.Instance.CreateDeviceContent();

            PresentParameters pm2 = new PresentParameters();

            pm2.IsWindowed       = true;
            pm2.BackBufferFormat = ImagePixelFormat.A8R8G8B8;
            pm2.BackBufferHeight = 800;
            pm2.BackBufferWidth  = 800;

            RenderWindow wnd = (RenderWindow)dc.Create(pm2);

            Viewer           = new RenderViewer(dc.RenderSystem);
            wnd.EventHandler = Viewer;
            Window           = wnd;
            MainForm frm = new MainForm(dc.RenderSystem);

            frm.Show();

            wnd.Run();
        }
Beispiel #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            FileSystem.Instance.AddWorkingDir(@".\");
            FileSystem.Instance.AddWorkingDir(@"E:\Documents\ic10gd\Source\Code2015\bin\x86\Debug");
            // zou jia's res dir
            FileSystem.Instance.AddWorkingDir(@"C:\Users\penser\Documents\Visual Studio 2008\Projects\lrvbsvnicg\Source\Code2015\bin\x86\Debug");

            GraphicsAPIManager.Instance.RegisterGraphicsAPI(new Apoc3D.RenderSystem.Xna.XnaGraphicsAPIFactory());

            DeviceContent dc = GraphicsAPIManager.Instance.CreateDeviceContent();

            PresentParameters pm2 = new PresentParameters();
            pm2.IsWindowed = true;
            pm2.BackBufferFormat = ImagePixelFormat.A8R8G8B8;
            pm2.BackBufferHeight = 600;
            pm2.BackBufferWidth = 800;

            RenderWindow wnd = (RenderWindow)dc.Create(pm2);
            Viewer = new RenderViewer(dc.RenderSystem);
            wnd.EventHandler = Viewer;
            Window = wnd;
            
            wnd.Run();
        }
Beispiel #3
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            FileSystem.Instance.AddWorkingDir(@".\");
            FileSystem.Instance.AddWorkingDir(@"E:\Documents\ic10gd\Source\Code2015\bin\x86\Debug");
            FileSystem.Instance.AddWorkingDir(@"F:\ic10gd\Source\Code2015\bin\x86\Debug");
            // zou jia's res dir
            FileSystem.Instance.AddWorkingDir(@"D:\zonelink2");

            PluginManager.Initiailze(null, null);

            DeviceContent dc = GraphicsAPIManager.Instance.CreateDeviceContent();

            PresentParameters pm2 = new PresentParameters();
            pm2.IsWindowed = true;
            pm2.BackBufferFormat = ImagePixelFormat.A8R8G8B8;
            pm2.BackBufferHeight = 600;
            pm2.BackBufferWidth = 800;

            RenderWindow wnd = (RenderWindow)dc.Create(pm2);
            Viewer = new RenderViewer(dc.RenderSystem);
            wnd.EventHandler = Viewer;
            Window = wnd;
            MainForm frm = new MainForm(dc.RenderSystem);
            frm.Show();
            
            wnd.Run();
        }