Exemplo n.º 1
0
        /// <summary>
        /// テクスチャリストからのテクスチャを削除します。
        /// </summary>
        private static void RemoveTexture(Texture texture)
        {
            if (texture == null)
            {
                throw new ArgumentNullException("texture");
            }

            lock (textureListSync)
            {
                textureList.RemoveIf(_ => _.Target == texture);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// テクスチャリストに作成済みのテクスチャを追加します。
        /// </summary>
        private static void AddTexture(Texture texture)
        {
            if (texture == null)
            {
                throw new ArgumentNullException("texture");
            }

            lock (textureListSync)
            {
                textureList.Add(new WeakReference(texture));
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 public TextTexture()
 {
     this.texture = new Texture();
 }
Exemplo n.º 4
0
 /// <summary>
 /// 描画オブジェクトを追加します。
 /// </summary>
 public void AddRender(Texture texture, BlendType blend, Color color,
                       Matrix44d transform, double zorder)
 {
     AddRenderInternal(new RenderData
     {
         Mesh = DefaultMesh,
         Texture = texture,
         Blend = blend,
         Color = color,
         Transform = transform,
         ZOrder = zorder,
     });
 }
Exemplo n.º 5
0
        /// <summary>
        /// 描画オブジェクトを追加します。
        /// </summary>
        public void AddRender(Texture texture, BlendType blend, Color color,
                              Mesh mesh, Matrix44d transform, double zorder)
        {
            if (mesh == null)
            {
                throw new ArgumentNullException("mesh");
            }

            AddRenderInternal(new RenderData
            {
                Texture = texture,
                Blend = blend,
                Color = color,
                Mesh = mesh,
                Transform = transform,
                ZOrder = zorder,
            });
        }