Sfoglia il codice sorgente

split glgsg into glmisc; expand on mesadisplay

David Rose 22 anni fa
parent
commit
42d159254e
2 ha cambiato i file con 71 aggiunte e 0 eliminazioni
  1. 24 0
      panda/src/glgsg/glgsg.cxx
  2. 47 0
      panda/src/glgsg/glgsg.h

+ 24 - 0
panda/src/glgsg/glgsg.cxx

@@ -0,0 +1,24 @@
+// Filename: glgsg.cxx
+// Created by:  drose (09Feb04)
+//
+////////////////////////////////////////////////////////////////////
+//
+// PANDA 3D SOFTWARE
+// Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
+//
+// All use of this software is subject to the terms of the Panda 3d
+// Software license.  You should have received a copy of this license
+// along with this source code; you will also find a current copy of
+// the license at http://www.panda3d.org/license.txt .
+//
+// To contact the maintainers of this program write to
+// [email protected] .
+//
+////////////////////////////////////////////////////////////////////
+
+// This is the actual .cxx file to include if you want to pick up
+// any or all of the header files in this directory as compiled to use
+// the "true" GL library.
+
+#include "glgsg.h"
+#include "glstuff_src.cxx"

+ 47 - 0
panda/src/glgsg/glgsg.h

@@ -0,0 +1,47 @@
+// Filename: glgsg.h
+// Created by:  drose (09Feb04)
+//
+////////////////////////////////////////////////////////////////////
+//
+// PANDA 3D SOFTWARE
+// Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
+//
+// All use of this software is subject to the terms of the Panda 3d
+// Software license.  You should have received a copy of this license
+// along with this source code; you will also find a current copy of
+// the license at http://www.panda3d.org/license.txt .
+//
+// To contact the maintainers of this program write to
+// [email protected] .
+//
+////////////////////////////////////////////////////////////////////
+
+#ifndef GLGSG_H
+#define GLGSG_H
+
+// This is the actual header file to include if you want to pick up
+// any or all of the header files in this directory as compiled to use
+// the "true" GL library.
+
+#include "pandabase.h"
+#include "config_glgsg.h"
+
+#define GLP(name) gl##name
+#define CLP(name) GL##name
+#define CLASSPREFIX_QUOTED "GL"
+#define CONFIGOBJ config_glgsg
+#define GLCAT glgsg_cat
+#define EXPCL_GL EXPCL_PANDAGL
+#define EXPTP_GL EXPTP_PANDAGL
+
+#ifdef WIN32_VC
+// Must include windows.h before gl.h on NT
+#include <windows.h>
+#endif
+
+#include <GL/gl.h>
+#include <GL/glu.h>
+
+#include "glstuff_src.h"
+
+#endif  // GLGSG_H