diff --git a/src/EngineKit/Graphics/GraphicsContext.cs b/src/EngineKit/Graphics/GraphicsContext.cs index afd270d..50971c7 100644 --- a/src/EngineKit/Graphics/GraphicsContext.cs +++ b/src/EngineKit/Graphics/GraphicsContext.cs @@ -92,6 +92,11 @@ public void CopyTexture( RemoveFramebuffer(targetFramebufferDescriptor); } + public void UseViewport(Viewport viewport) + { + GL.Viewport(viewport); + } + public IMeshPool CreateMeshPool(Label label, int vertexBufferCapacity, int indexBufferCapacity) { return new MeshPool(label, this, vertexBufferCapacity, indexBufferCapacity); diff --git a/src/EngineKit/Graphics/IGraphicsContext.cs b/src/EngineKit/Graphics/IGraphicsContext.cs index 7dc3d53..009ab10 100644 --- a/src/EngineKit/Graphics/IGraphicsContext.cs +++ b/src/EngineKit/Graphics/IGraphicsContext.cs @@ -1,4 +1,5 @@ using System; +using EngineKit.Mathematics; namespace EngineKit.Graphics; @@ -112,4 +113,5 @@ void CopyTexture( FramebufferDescriptor CreateSingleFramebufferDescriptorFromTexture(ITexture texture); void ClearResourceBindings(); + void UseViewport(Viewport viewport); } \ No newline at end of file