// 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;
	}
}
