vector: add vector2i and vector2u typedefs

This commit is contained in:
Danny Robson 2015-01-16 14:44:26 +11:00
parent 1f93f907af
commit fa52752629
2 changed files with 13 additions and 0 deletions

View File

@ -412,6 +412,16 @@ util::operator<< (std::ostream &os, const util::vector<S,T> &v) {
}
template std::ostream& util::operator<< (std::ostream&, const util::vector<1,size_t> &v);
template std::ostream& util::operator<< (std::ostream&, const util::vector<2,size_t> &v);
template std::ostream& util::operator<< (std::ostream&, const util::vector<3,size_t> &v);
template std::ostream& util::operator<< (std::ostream&, const util::vector<4,size_t> &v);
template std::ostream& util::operator<< (std::ostream&, const util::vector<1,long> &v);
template std::ostream& util::operator<< (std::ostream&, const util::vector<2,long> &v);
template std::ostream& util::operator<< (std::ostream&, const util::vector<3,long> &v);
template std::ostream& util::operator<< (std::ostream&, const util::vector<4,long> &v);
template std::ostream& util::operator<< (std::ostream&, const util::vector<1,float> &v);
template std::ostream& util::operator<< (std::ostream&, const util::vector<2,float> &v);
template std::ostream& util::operator<< (std::ostream&, const util::vector<3,float> &v);

View File

@ -100,6 +100,9 @@ namespace util {
const json::node& operator>> (const json::node&, vector<S,T>&);
// convenience typedefs
typedef vector<2,size_t> vector2u;
typedef vector<2,long> vector2i;
typedef vector<2,float> vector2f;
typedef vector<3,float> vector3f;
typedef vector<4,float> vector4f;