build on windows

This commit is contained in:
David Rose 2005-03-04 23:06:32 +00:00
parent c045c5894d
commit 60af68519f

View File

@ -38,18 +38,21 @@ PStatCollector GraphicsOutput::_make_current_pcollector("Draw:Make current");
PStatCollector GraphicsOutput::_copy_texture_pcollector("Draw:Copy texture");
struct CubeFaceDef {
CubeFaceDef(const char *name, const LPoint3f &look_at, const LVector3f &up) :
_name(name), _look_at(look_at), _up(up) { }
const char *_name;
LPoint3f _look_at;
LVector3f _up;
};
static CubeFaceDef cube_faces[6] = {
{ "positive_x", LPoint3f(1, 0, 0), LVector3f(0, -1, 0) },
{ "negative_x", LPoint3f(-1, 0, 0), LVector3f(0, -1, 0) },
{ "positive_y", LPoint3f(0, 1, 0), LVector3f(0, 0, 1) },
{ "negative_y", LPoint3f(0, -1, 0), LVector3f(0, 0, -1) },
{ "positive_z", LPoint3f(0, 0, 1), LVector3f(0, -1, 0) },
{ "negative_z", LPoint3f(0, 0, -1), LVector3f(0, -1, 0) }
CubeFaceDef("positive_x", LPoint3f(1, 0, 0), LVector3f(0, -1, 0)),
CubeFaceDef("negative_x", LPoint3f(-1, 0, 0), LVector3f(0, -1, 0)),
CubeFaceDef("positive_y", LPoint3f(0, 1, 0), LVector3f(0, 0, 1)),
CubeFaceDef("negative_y", LPoint3f(0, -1, 0), LVector3f(0, 0, -1)),
CubeFaceDef("positive_z", LPoint3f(0, 0, 1), LVector3f(0, -1, 0)),
CubeFaceDef("negative_z", LPoint3f(0, 0, -1), LVector3f(0, -1, 0))
};
////////////////////////////////////////////////////////////////////