public void Clear(ClearMask mask) { this.CheckUpdate(); int errorCode = PsmGraphicsContext.Clear(this.handle, mask); if (errorCode != 0) { Error.ThrowNativeException(errorCode); } }
public void Clear(ClearMask mask) { if ((mask & ClearMask.ColorBuffer) == ClearMask.ColorBuffer) { _framebuffer.ClearColorBuffer(); } if ((mask & ClearMask.DepthBuffer) == ClearMask.DepthBuffer) { _framebuffer.ClearColorBuffer(); } }
public void Clear(ClearMask mask, Color?clearColor = null, float depth = float.PositiveInfinity) { Color realClearColor = clearColor == null ? Color.clear : clearColor.Value; for (int i = 0; i < m_FrameBuffer.m_Width; i++) { for (int j = 0; j < m_FrameBuffer.m_Height; j++) { if ((mask & ClearMask.COLOR) > 0) { m_FrameBuffer.SetColor(i, j, realClearColor); } if ((mask & ClearMask.DEPTH) > 0) { m_FrameBuffer.SetDepth(i, j, depth); } } } m_FrameBuffer.Apply(); }
public void Clear(ClearMask mask) { NativeGl.glClear((uint)mask); }
static extern void Graphics_Clear(ClearMask mask);
public static void Clear(ClearMask mask) { Graphics_Clear(mask); }
public static extern int Clear(int handle, ClearMask mask);