2023年9月28日

Opengl 清除局部區域

 


   public static void clear_range(int x,int y,int width,int height)
        {
            GL.Enable(EnableCap.ScissorTest);
            GL.Scissor(x,y,width,height);
            GL.Clear(ClearBufferMask.ColorBufferBit);
            GL.Disable(EnableCap.ScissorTest);
        }
 

沒有留言:

張貼留言