コード例 #1
0
ファイル: Viewport.cs プロジェクト: cano159/Switch-Toolbox
        private void LoadBaseDrawables()
        {
            var floor = new DrawableFloor();

            scene.staticObjects.Add(floor);
            var xyzLnes = new DrawableXyzLines();

            scene.staticObjects.Add(xyzLnes);

            bool UseSkybox = false;

            if (UseSkybox)
            {
                var skybox = new DrawableSkybox();
                scene.staticObjects.Add(skybox);
            }
            else if (Runtime.renderBackGround)
            {
                var background = new DrawableBackground();
                scene.staticObjects.Add(background);
            }

            LoadFog();

            Runtime.OpenTKInitialized = true;
        }
コード例 #2
0
        public void LoadTexture(STGenericTexture texture)
        {
            ActiveTexture = texture;

            var skybox = new DrawableSkybox();

            skybox.LoadCustomTexture(ActiveTexture);

            glControl.MainDrawable = skybox;
        }
コード例 #3
0
        private void LoadBaseDrawables()
        {
            Runtime.OpenTKInitialized = true;

            var floor      = new DrawableFloor();
            var xyzLnes    = new DrawableXyzLines();
            var skybox     = new DrawableSkybox();
            var background = new DrawableBackground();

            scene.staticObjects.Add(floor);
            scene.staticObjects.Add(xyzLnes);
            scene.staticObjects.Add(skybox);
            scene.staticObjects.Add(background);
        }
コード例 #4
0
        private void LoadBaseDrawables()
        {
            var floor = new DrawableFloor();

            scene.staticObjects.Add(floor);
            var xyzLnes = new DrawableXyzLines();

            scene.staticObjects.Add(xyzLnes);

            var skybox = new DrawableSkybox();

            scene.staticObjects.Add(skybox);

            var background = new DrawableBackground();

            scene.staticObjects.Add(background);

            //    scene.objects.Add(new SingleObject(new Vector3(0, 0, 0)));

            // LoadFog();

            Runtime.OpenTKInitialized = true;
        }