A texture used in the game world.
コード例 #1
0
ファイル: SPR2.cs プロジェクト: Daribon/FreeSO
 public WorldTexture GetWorldTexture(GraphicsDevice device)
 {
     var result = new WorldTexture
     {
         Pixel = this.GetTexture(device)
     };
     if (this.ZBufferData != null){
         result.ZBuffer = this.GetZTexture(device);
     }
     return result;
 }
コード例 #2
0
ファイル: DGRP.cs プロジェクト: RHY3756547/FreeSO
 public WorldTexture GetWorldTexture(Microsoft.Xna.Framework.Graphics.GraphicsDevice device)
 {
     var iff = Parent.ChunkParent;
     var spr2 = iff.Get<SPR2>((ushort)this.SpriteID);
     if (spr2 != null)
     {
         return spr2.Frames[this.SpriteFrameIndex].GetWorldTexture(device);
     }
     var spr1 = iff.Get<SPR>((ushort)this.SpriteID);
     if (spr1 != null)
     {
         var result = new WorldTexture();
         result.Pixel = spr1.Frames[(int)this.SpriteFrameIndex].GetTexture(device);
         return result;
     }
     return null;
 }
コード例 #3
0
ファイル: SPR2.cs プロジェクト: RHY3756547/FreeSO
 public WorldTexture GetWorldTexture(GraphicsDevice device)
 {
     var result = new WorldTexture
     {
         Pixel = this.GetTexture(device)
     };
     result.ZBuffer = this.GetZTexture(device);
     return result;
 }