]>
Commit | Line | Data |
---|---|---|
3a9019d9 FG |
1 | //Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc.\r |
2 | \r | |
3 | //Distributed under the Boost Software License, Version 1.0. (See accompanying\r | |
4 | //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)\r | |
5 | \r | |
6 | #include <boost/qvm/quat_access.hpp>\r | |
7 | #include <boost/qvm/vec_access.hpp>\r | |
8 | \r | |
9 | struct my_quat { };\r | |
10 | \r | |
11 | namespace\r | |
12 | boost\r | |
13 | {\r | |
14 | namespace\r | |
15 | qvm\r | |
16 | {\r | |
17 | template <>\r | |
18 | struct\r | |
19 | quat_traits<my_quat>\r | |
20 | {\r | |
21 | typedef int scalar_type;\r | |
22 | template <int I> static int read_element( my_quat const & );\r | |
23 | template <int I> static int & write_element( my_quat & );\r | |
24 | };\r | |
25 | }\r | |
26 | }\r | |
27 | \r | |
28 | int\r | |
29 | main()\r | |
30 | {\r | |
31 | using namespace boost::qvm;\r | |
32 | my_quat const q=my_quat();\r | |
33 | A<3>(V(q));\r | |
34 | return 1;\r | |
35 | }\r |