summaryrefslogtreecommitdiff
path: root/thirdparty/thekla_atlas/nvmesh/BaseMesh.cpp
diff options
context:
space:
mode:
authorHein-Pieter van Braam <hp@tmm.cx>2017-12-08 15:05:47 +0100
committerHein-Pieter van Braam <hp@tmm.cx>2017-12-08 15:47:15 +0100
commitbf05309af734431c3b3cf869a63ed477439a6739 (patch)
tree72c1c939f9035c711f50ec94b0270ea60e0bb4e4 /thirdparty/thekla_atlas/nvmesh/BaseMesh.cpp
parentb3b4727dff009dda0a65b8a013ec04d52a54b367 (diff)
Import thekla_atlas
As requested by reduz, an import of thekla_atlas into thirdparty/
Diffstat (limited to 'thirdparty/thekla_atlas/nvmesh/BaseMesh.cpp')
-rw-r--r--thirdparty/thekla_atlas/nvmesh/BaseMesh.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/thirdparty/thekla_atlas/nvmesh/BaseMesh.cpp b/thirdparty/thekla_atlas/nvmesh/BaseMesh.cpp
new file mode 100644
index 0000000000..f17d3b46fd
--- /dev/null
+++ b/thirdparty/thekla_atlas/nvmesh/BaseMesh.cpp
@@ -0,0 +1,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;
+ }
+}