Last change
on this file since 11974 was
7163,
checked in by dafrick, 14 years ago
|
Merged presentation3 branch into trunk.
|
-
Property svn:eol-style set to
native
|
File size:
1.1 KB
|
Line | |
---|
1 | /* |
---|
2 | =========================================================================== |
---|
3 | Copyright (C) 2008 Daniel Örstadius |
---|
4 | |
---|
5 | This file is part of bsp-renderer source code. |
---|
6 | |
---|
7 | bsp-renderer is free software: you can redistribute it and/or modify |
---|
8 | it under the terms of the GNU General Public License as published by |
---|
9 | the Free Software Foundation, either version 3 of the License, or |
---|
10 | (at your option) any later version. |
---|
11 | |
---|
12 | bsp-renderer is distributed in the hope that it will be useful, |
---|
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
15 | GNU General Public License for more details. |
---|
16 | |
---|
17 | You should have received a copy of the GNU General Public License |
---|
18 | along with bsp-renderer. If not, see <http://www.gnu.org/licenses/>. |
---|
19 | |
---|
20 | */ |
---|
21 | |
---|
22 | // BspVertex.h -- used in the tessellation of the Bezier patches |
---|
23 | |
---|
24 | #ifndef _BSPVERTEX_H |
---|
25 | #define _BSPVERTEX_H |
---|
26 | |
---|
27 | class BspVertex |
---|
28 | { |
---|
29 | public: |
---|
30 | BspVertex(); |
---|
31 | BspVertex(float p[3], float texcoord[2][2], float n[3]); |
---|
32 | |
---|
33 | float mPosition[3]; |
---|
34 | float mTexcoord[2][2]; |
---|
35 | float mNormal[3]; |
---|
36 | |
---|
37 | BspVertex operator+(BspVertex a); |
---|
38 | BspVertex operator*(float a); |
---|
39 | |
---|
40 | void normalise(void); |
---|
41 | |
---|
42 | }; |
---|
43 | |
---|
44 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.