Skip to content

Commit

Permalink
Merge pull request #823 from siystar/iomat3
Browse files Browse the repository at this point in the history
[ADDED] read and write mat3
  • Loading branch information
robertosfield authored May 21, 2023
2 parents a72c195 + 83c3cf3 commit ebaac92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/vsg/io/Input.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
#include <vsg/core/Version.h>

#include <vsg/maths/box.h>
#include <vsg/maths/mat3.h>
#include <vsg/maths/mat4.h>
#include <vsg/maths/plane.h>
#include <vsg/maths/quat.h>
Expand Down Expand Up @@ -97,6 +98,8 @@ namespace vsg
void read(size_t num, uivec4* value) { read(num * value->size(), value->data()); }
void read(size_t num, quat* value) { read(num * value->size(), value->data()); }
void read(size_t num, dquat* value) { read(num * value->size(), value->data()); }
void read(size_t num, mat3* value) { read(num * value->size(), value->data()); }
void read(size_t num, dmat3* value) { read(num * value->size(), value->data()); }
void read(size_t num, mat4* value) { read(num * value->size(), value->data()); }
void read(size_t num, dmat4* value) { read(num * value->size(), value->data()); }
void read(size_t num, sphere* value) { read(num * value->size(), value->data()); }
Expand Down
3 changes: 3 additions & 0 deletions include/vsg/io/Output.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
#include <vsg/core/type_name.h>

#include <vsg/maths/box.h>
#include <vsg/maths/mat3.h>
#include <vsg/maths/mat4.h>
#include <vsg/maths/plane.h>
#include <vsg/maths/quat.h>
Expand Down Expand Up @@ -97,6 +98,8 @@ namespace vsg
void write(size_t num, const uivec4* value) { write(num * value->size(), value->data()); }
void write(size_t num, const quat* value) { write(num * value->size(), value->data()); }
void write(size_t num, const dquat* value) { write(num * value->size(), value->data()); }
void write(size_t num, const mat3* value) { write(num * value->size(), value->data()); }
void write(size_t num, const dmat3* value) { write(num * value->size(), value->data()); }
void write(size_t num, const mat4* value) { write(num * value->size(), value->data()); }
void write(size_t num, const dmat4* value) { write(num * value->size(), value->data()); }
void write(size_t num, const sphere* value) { write(num * value->size(), value->data()); }
Expand Down

0 comments on commit ebaac92

Please sign in to comment.