using OpenTK.Graphics.OpenGL4; using SM.Base.Shaders; using SM.Base.Window; using SM.OGL.Framebuffer; using SM2D.Shader; namespace SM2D.Pipelines { /// /// This implements the most basic render pipeline. /// public class Basic2DPipeline : RenderPipeline { /// /// The access to the pipeline. /// public static Basic2DPipeline Pipeline = new Basic2DPipeline(); /// public override MaterialShader DefaultShader { get; protected set; } = ShaderCollection.Instanced; private Basic2DPipeline() {} /// protected override void RenderProcess(ref DrawContext context) { Framebuffer.Screen.Activate(FramebufferTarget.Framebuffer, ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit); context.Scene?.Draw(context); } } }