Example #1
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);
		}
Example #2
0
		protected Renderer(Context context, Func<Geometry2D.Integer.Size> getSize, Func<TextureType> getType)
		{
			this.Context = context;
			this.getSize = getSize;
			this.getType = getType;
		}
Example #3
0
		protected Program(Context context) :
			base(context)
		{
			this.Identifier = GL.CreateProgram();
		}
Example #4
0
		protected Control(Context context) :
			base()
		{
			this.Context = context;
		}
Example #5
0
		protected FrameBuffer(Context context) :
			base(context)
		{
			this.Identifier = this.CreateIdentifier();
		}
Example #6
0
		protected Window(Context context) :
			this()
		{
			this.Context = context;
		}
Example #7
0
		protected Shader(Context context, ShaderType type) :
			base(context)
		{
			this.Identifier = this.Create(this.type = type);
		}
Example #8
0
		protected Depth(Context context) :
			base(context)
		{
			this.Identifier = this.CreateIdentifier();
		}
Example #9
0
		protected abstract Renderer CreateRenderer(Context context, Func<Geometry2D.Integer.Size> getSize, Func<TextureType> getType);
Example #10
0
		protected internal virtual void Delete()
		{
			this.Context = null;
		}
Example #11
0
		protected Resource(Context context)
		{
			this.Context = context;
		}
Example #12
0
		protected Texture(Context context) :
			base(context)
		{
			this.Identifier = this.CreateIdentifier();
		}