goat3d

diff src/goat3d_impl.h @ 19:b35427826b60

- added XML format reading support - wrote a rudimentary version of goatview
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 27 Sep 2013 06:58:37 +0300
parents f1b4c27382ce
children a5c5cec3cb88
line diff
     1.1 --- a/src/goat3d_impl.h	Fri Sep 27 03:17:36 2013 +0300
     1.2 +++ b/src/goat3d_impl.h	Fri Sep 27 06:58:37 2013 +0300
     1.3 @@ -12,6 +12,16 @@
     1.4  
     1.5  extern int goat_log_level;
     1.6  
     1.7 +#if __cplusplus >= 201103L
     1.8 +#define MOVE(x)	std::move(x)
     1.9 +#else
    1.10 +#define MOVE(x) x
    1.11 +#endif
    1.12 +
    1.13 +#define VECDATA(type, data, num) \
    1.14 +	MOVE(std::vector<type>((type*)(data), (type*)(data) + (num)))
    1.15 +
    1.16 +
    1.17  class Scene {
    1.18  private:
    1.19  	std::string name;