Initialize() 공개 메소드

public Initialize ( IScene scene, IConfigSource config ) : void
scene IScene
config IConfigSource
리턴 void
예제 #1
0
        public Bitmap CreateViewTileImage(int size)
        {
            int start = Environment.TickCount;
            var renderer = new WarpTileRenderer();

             MainConsole.Instance.InfoFormat("[MapTileGenerator]: Generating world maptile for {0}",
                        m_scene.RegionInfo.RegionName);
            renderer.Initialize(m_scene, m_config);
            Bitmap worldMap = renderer.TerrainToBitmap (null, size);

            MainConsole.Instance.InfoFormat("[MapTileGenerator]: World maptile generation took {0} ms",
                (Environment.TickCount - start));

            return worldMap;
        }
예제 #2
0
        public Bitmap CreateViewImage(Vector3 camPos, Vector3 camDir, float fov, int width, int height, bool useTextures)
        {
            int start = Environment.TickCount;
            var renderer = new WarpTileRenderer();

            MainConsole.Instance.InfoFormat ("[MapTileGenerator]: Generating worldview for {0}",
                m_scene.RegionInfo.RegionName);

            renderer.Initialize(m_scene, m_config);
            Bitmap worldView = renderer.CreateViewImage (camPos, camDir, fov, width, height, useTextures);

            MainConsole.Instance.InfoFormat("[MapTileGenerator]: Worldview generation took {0} ms",
                (Environment.TickCount - start));

            return worldView;
        }