From 6e139459ccc9f94eff1605a7b5898bc12c225bb5 Mon Sep 17 00:00:00 2001
From: faiface <faiface@ksp.sk>
Date: Wed, 14 Dec 2016 17:53:08 +0100
Subject: [PATCH] add default unexported attribute types

---
 window.go | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/window.go b/window.go
index 065d92b..35a556b 100644
--- a/window.go
+++ b/window.go
@@ -386,3 +386,26 @@ void main() {
 	}
 }
 `
+
+var (
+	positionVec2 = pixelgl.Attr{
+		Purpose: pixelgl.Position,
+		Type:    pixelgl.Vec2,
+	}
+	colorVec4 = pixelgl.Attr{
+		Purpose: pixelgl.Color,
+		Type:    pixelgl.Vec4,
+	}
+	texCoordVec2 = pixelgl.Attr{
+		Purpose: pixelgl.TexCoord,
+		Type:    pixelgl.Vec2,
+	}
+	maskColorVec4 = pixelgl.Attr{
+		Purpose: pixelgl.MaskColor,
+		Type:    pixelgl.Vec4,
+	}
+	transformMat3 = pixelgl.Attr{
+		Purpose: pixelgl.Transform,
+		Type:    pixelgl.Mat3,
+	}
+)
-- 
GitLab