Пример #1
0
		protected Texture(Texture original) :
			base(original)
		{
			this.Identifier = original.Identifier;
			original.Identifier = 0;
			this.Size = original.Size;
			this.Type = original.Type;
		}
Пример #2
0
		protected Composition(Context context, Texture texture, Depth depth, FrameBuffer frameBuffer) :
			base(context)
		{
			this.Size = texture.Size;
			this.Type = texture.Type;
			this.Texture = texture;
			this.Depth = depth;
			this.FrameBuffer = frameBuffer;
			this.Create();
			this.Texture.Composition = this;
			this.Renderer = this.CreateRenderer(this.Context, () => this.Size, () => this.Type);
		}
Пример #3
0
		public abstract void Create(Texture texture, Depth depth);
Пример #4
0
		internal void Delete(Texture texture)
		{
			this.textureDeleteBin.Add(texture);
		}
Пример #5
0
		internal void Recycle(Texture texture)
		{
			this.textureBin.Add(texture);
		}
Пример #6
0
		protected internal abstract Composition CreateComposition(Texture texture);