From 0736136165802aad046244cd57e9a53e86cdd2e0 Mon Sep 17 00:00:00 2001 From: Brendan Zabarauskas Date: Fri, 16 Nov 2012 16:53:53 +1000 Subject: [PATCH] Add hack to get around the "expected item" error --- src/gl.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gl.rs b/src/gl.rs index d2fc30f..3e7f564 100644 --- a/src/gl.rs +++ b/src/gl.rs @@ -55,8 +55,13 @@ pub type dmat3x3 = Mat3; /// same as a `dmat3` pub type dmat4x4 = Mat4; /// same as a `dmat4` +// Quaternion types + // These quaternion type aliases are not actually specified in the GLSL spec // but they follow the same nomenclature pub type quat4 = Quat; /// a single-precision floating-point quaternion -pub type dquat4 = Quat; /// a double-precision floating-point quaternion \ No newline at end of file +pub type dquat4 = Quat; /// a double-precision floating-point quaternion + +// prevents "error: expected item" +priv fn hack() {} \ No newline at end of file