From 60af68519f2f1075f28262feaa18dc099d21771a Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 4 Mar 2005 23:06:32 +0000 Subject: [PATCH] build on windows --- panda/src/display/graphicsOutput.cxx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/panda/src/display/graphicsOutput.cxx b/panda/src/display/graphicsOutput.cxx index 510ba2244d..4b078a1b7a 100644 --- a/panda/src/display/graphicsOutput.cxx +++ b/panda/src/display/graphicsOutput.cxx @@ -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)) }; ////////////////////////////////////////////////////////////////////