コード例 #1
0
        void BindFramebuffer(FramebufferTarget Target)
        {
#if DEBUG
            FramebufferStatus S = Gl.CheckNamedFramebufferStatus(ID, Target);
            if (S != FramebufferStatus.FramebufferComplete)
            {
                throw new InvalidOperationException("Incomplete framebuffer");
            }
#endif

            this.Target = Target;
            Gl.BindFramebuffer(Target, ID);
        }