vector: add vector2i and vector2u typedefs
This commit is contained in:
parent
1f93f907af
commit
fa52752629
10
vector.cpp
10
vector.cpp
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user