コード例 #1
0
ファイル: Game1.cs プロジェクト: Ryuzaki/RVTN
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            Texture2D[] listaTexturas = new Texture2D[4];
            listaTexturas[0] = Content.Load<Texture2D>(@"AssetsTest\paseoVirtual01\east01");
            listaTexturas[1] = Content.Load<Texture2D>(@"AssetsTest\paseoVirtual01\north01");
            listaTexturas[2] = Content.Load<Texture2D>(@"AssetsTest\paseoVirtual01\south01");
            listaTexturas[3] = Content.Load<Texture2D>(@"AssetsTest\paseoVirtual01\west01");
            space = new HotSpace(this.GraphicsDevice, "Pruebas", listaTexturas, false);

            cuad = new Cuadrado3D(GraphicsDevice, Content.Load<Texture2D>(@"AssetsTest\paseoVirtual01\east01"));
            cuad.Position = new Vector3(0.0f, 0.0f, -1.0f);
            cam = new Camera(this, Vector3.Zero, new Vector3(0, 0, -1), Vector3.Up);
            Components.Add(cam);
            // TODO: use this.Content to load your game content here
        }
コード例 #2
0
ファイル: HotSpace.cs プロジェクト: Ryuzaki/RVTN
 public void SetTextureToFace(HotSpace.WALL wall, Texture2D texture)
 {
     faces[(int)wall].Texture = texture;
 }