Subversion Repositories gelsvn

Rev

Rev 89 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 bj 1
#ifndef __CGLA_VEC3UC_H__
2
#define __CGLA_VEC3UC_H__
3
 
4
#include "Vec3i.h"
5
 
6
namespace CGLA {
7
	typedef unsigned char UChar;
8
 
9
	/** 3D unsigned char vector. */
10
	class Vec3uc: public ArithVec3Int<UChar,Vec3uc>
11
	{
12
 
13
	public:
14
 
15
		/// Construct 0 vector
16
		Vec3uc() {}
17
 
18
		/// Construct 3D uchar vector
19
		Vec3uc(UChar a, UChar b, UChar c): 
20
			ArithVec3Int<UChar,Vec3uc>(a,b,c) {}
21
 
22
		/// Convert from int vector. 
23
		explicit Vec3uc(const Vec3i& v): 
24
			ArithVec3Int<UChar,Vec3uc>(v[0]&0xff, v[1]&0xff, v[2]&0xff) {}
25
	};
26
 
27
 
28
}
29
#endif
30