소스 검색

build on windows

David Rose 21 년 전
부모
커밋
60af68519f
1개의 변경된 파일9개의 추가작업 그리고 6개의 파일을 삭제
  1. 9 6
      panda/src/display/graphicsOutput.cxx

+ 9 - 6
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))
 };
   
 ////////////////////////////////////////////////////////////////////