예제 #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();
        }
예제 #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();
		}