Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Vertex {
- public:
- float x, y, z;
- float nx, ny, nz;
- float u, v;
- Vertex() {
- x = 0; y = 0; z = 0;
- nx = 0; ny = 0; nz = 0;
- u = 0; v = 0;
- }
- Vertex(float ix, float iy, float iz) {
- x = ix; y = iy; z = iz;
- nx = 0; ny = 0; nz = 0;
- u = 0; v = 0;
- }
- Vertex(float ix, float iy, float iz, float iu, float iv) {
- x = ix; y = iy; z = iz;
- nx = 0; ny = 0; nz = 0;
- u = iu; v = iv;
- }
- Vertex(float ix, float iy, float iz, float inx, float iny, float inz, float iu, float iv) {
- x = ix; y = iy; z = iz;
- nx = inx; ny = iny; nz = inz;
- u = iu; v = iv;
- }
- string ToString() {
- stringstream ss;
- ss << "x: " << x << " y: " << y << " z: " << z;
- return ss.str();
- }
- static unsigned int Size() {
- return 32;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement