-TextureCubeFace TextureCube::enumerate_faces(unsigned i)
-{
- if(i>=6)
- throw out_of_range("TextureCube::enumerate_faces");
- return face_order[i];
-}
-
-unsigned TextureCube::get_face_index(TextureCubeFace face)
-{
- switch(face)
- {
- case POSITIVE_X: return 0;
- case NEGATIVE_X: return 1;
- case POSITIVE_Y: return 2;
- case NEGATIVE_Y: return 3;
- case POSITIVE_Z: return 4;
- case NEGATIVE_Z: return 5;
- default: throw invalid_argument("TextureCube::get_face_index");
- }
-}
-