예제 #1
0
        private void InitializeTextures()
        {
            Textures_2D = new List <Texture2D>();
            int count = (int)TextureID.MAX_TEXTURES;

            for (int i = 0; i < count; i++)
            {
                TextureID t = (TextureID)i;
                if (t == TextureID.pixel)
                {
                    Textures_2D.Add(GetPixelTexture(Color.White));
                }
                else
                {
                    if (t == TextureID.font)
                    {
                        font = Content.Load <SpriteFont>("Font");
                        Textures_2D.Add(font.Texture);
                    }
                    else
                    {
                        LoadTexture(t.ToString());
                    }
                }
            }
        }
예제 #2
0
 public override string ToString() => String.Format("Color: {0} RepeatU: {1} RepeatV: {2} OffsetU: {3} OffsetV: {4} " +
                                                    "Rotation: {5} Bump: {6} Shiny: {7} Fullbright: {8} Mapping: {9} Media: {10} Glow: {11} ID: {12} MaterialID: {13}",
                                                    TextureColor.ToString(), RepeatU, RepeatV, OffsetU, OffsetV, Rotation, Bump.ToString(), Shiny.ToString(), FullBright, TexMapType.ToString(),
                                                    MediaFlags, Glow, TextureID.ToString(), MaterialID.ToString());