]> git.tdb.fi Git - libs/gl.git/blob - source/vertexbuilder.cpp
Style update: add spaces around assignment operators
[libs/gl.git] / source / vertexbuilder.cpp
1 /* $Id$
2
3 This file is part of libmspgl
4 Copyright © 2007  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #include "vertexbuilder.h"
9
10 namespace Msp {
11 namespace GL {
12
13 VertexBuilder::VertexBuilder():
14         cr(1), cg(1), cb(1), ca(1),
15         ts(0), tt(0), tr(0), tq(0),
16         nx(0), ny(0), nz(1)
17 { }
18
19 void VertexBuilder::attrib(unsigned i, float x, float y, float z, float w)
20 {
21         Attrib &a = av[i];
22         a.x = x;
23         a.y = y;
24         a.z = z;
25         a.w = w;
26 }
27
28 } // namespace GL
29 } // namespace Msp