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