From 4749e3ee7eda262a3d25d6d4c79fae9e53f2b284 Mon Sep 17 00:00:00 2001
From: faiface <faiface@ksp.sk>
Date: Sun, 28 May 2017 18:44:30 +0200
Subject: [PATCH] add Canvas.Frame method

---
 pixelgl/canvas.go | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/pixelgl/canvas.go b/pixelgl/canvas.go
index 070a382..93065ea 100644
--- a/pixelgl/canvas.go
+++ b/pixelgl/canvas.go
@@ -218,6 +218,11 @@ func (c *Canvas) Texture() *glhf.Texture {
 	return c.gf.Texture()
 }
 
+// Frame return the underlying OpenGL Frame of this Canvas.
+func (c *Canvas) Frame() *glhf.Frame {
+	return c.gf.frame
+}
+
 // SetPixels replaces the content of the Canvas with the provided pixels. The provided slice must be
 // an alpha-premultiplied RGBA sequence of correct length (4 * width * height).
 func (c *Canvas) SetPixels(pixels []uint8) {
-- 
GitLab