Fixes for datatype size on amd64.
[crack-attack.git] / src / Primitives.cxx
blob7a01edce884ddc1f8c0439d6d09cc24a5787fa62
1 /*
2 * Copyright (C) 2006 Bjørn Lindeijer
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 * $Id: Primitives.cxx,v 1.1 2006/07/19 01:56:21 lorien420 Exp $
21 #include "Primitives.h"
24 Vector::Vector()
26 x = y = z = 0.0f;
29 Vertex::Vertex()
31 x = y = z = 0.0f;
32 w = 1.0f;
35 VertexTexture::VertexTexture()
37 u = v = w = 0.0f;
40 VertexNormal::VertexNormal()
42 i = j = k = 0.0f;
45 VertexColor::VertexColor()
47 r = g = b = a = 1.0f;
50 Material::Material()
52 name = "untitled";
53 int i;
54 for (i = 0; i < 3; i++) {
55 ambient[i] = 0.2f;
56 specular[i] = 0.0f;
57 diffuse[i] = 0.8f;
59 ambient[3] = 1.0f;
60 specular[3] = 1.0f;
61 diffuse[3] = 1.0f;
62 illuminationModel = 1;
63 transparency = 0.0f;
64 shininess = 0.0f;
65 textureId = 0;
68 FaceVertex::FaceVertex()
70 v = vn = vt = vc = -1;