20 lines
409 B
C++
20 lines
409 B
C++
// 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;
|
|
}
|
|
}
|