summaryrefslogtreecommitdiff
path: root/thirdparty/thekla_atlas/nvmesh/BaseMesh.cpp
blob: f17d3b46fd39b1da166f622ecda98149e14a611b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// This code is in the public domain -- Ignacio Castaño <castano@gmail.com>

#include "BaseMesh.h"
#include "Stream.h"
#include "nvmath/TypeSerialization.h"


namespace nv
{
	static Stream & operator<< (Stream & s, BaseMesh::Vertex & vertex)
	{
		return s << vertex.id << vertex.pos << vertex.nor << vertex.tex;
	}

	Stream & operator<< (Stream & s, BaseMesh & mesh)
	{
		return s << mesh.m_vertexArray;
	}
}