aboutsummaryrefslogtreecommitdiffstats
path: root/yage/render/rectangle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'yage/render/rectangle.cpp')
-rw-r--r--yage/render/rectangle.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/yage/render/rectangle.cpp b/yage/render/rectangle.cpp
index 632c7ceb..f48f79db 100644
--- a/yage/render/rectangle.cpp
+++ b/yage/render/rectangle.cpp
@@ -1,3 +1,11 @@
+/** ---------------------------------------------------------------------------
+ * @file: rectangle.cpp
+ *
+ * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com>
+ * MIT License, see LICENSE file for more details.
+ * ----------------------------------------------------------------------------
+ */
+
#include "rectangle.h"
#include "../data/vertex.h"
@@ -29,10 +37,10 @@ void Rectangle::render() const
glEnableVertexAttribArray(1);
// set the vertex attribute pointers
- glVertexAttribPointer(0, 2, GL_FLOAT, GL_FALSE, sizeof(Vertex), (void *)offsetof(Vertex, position));
+ glVertexAttribPointer(0, 2, GL_FLOAT, GL_FALSE, sizeof(Vertex),
+ (void *)offsetof(Vertex, position));
glBindVertexArray(0);
}
} // namepsace yage
-