Esempio n. 1
0
        public GLFrameBuffer(Size size, IGraphicsBackend graphics)
        {
            _width    = size.Width;
            _height   = size.Height;
            Texture   = new GLTexture(null, graphics);
            _graphics = graphics;
            _graphics.TexImage2D(_width, _height, IntPtr.Zero);

            _fbo = _graphics.GenFrameBuffer();
        }
Esempio n. 2
0
        public GLFrameBuffer(Size size, IGraphicsBackend graphics)
		{
            _width = size.Width;
            _height = size.Height;
            Texture = new GLTexture(null, graphics);
            _graphics = graphics;
            _graphics.TexImage2D(_width, _height, IntPtr.Zero);

			_fbo = _graphics.GenFrameBuffer();
		}