Prechádzať zdrojové kódy

Initial revision. Just a skeleton.

Josh Yelon 18 rokov pred
rodič
commit
143b5df17b

+ 44 - 0
panda/src/movies/config_movies.cxx

@@ -0,0 +1,44 @@
+// Filename: config_movies.cxx
+// Created by:  cary (04Jan00)
+//
+////////////////////////////////////////////////////////////////////
+//
+// PANDA 3D SOFTWARE
+// Copyright (c) 2001 - 2004, 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://etc.cmu.edu/panda3d/docs/license/ .
+//
+// To contact the maintainers of this program write to
+// [email protected] .
+//
+////////////////////////////////////////////////////////////////////
+
+#include "config_movies.h"
+#include "dconfig.h"
+
+ConfigureDef(config_movies);
+NotifyCategoryDef(movies, "");
+
+////////////////////////////////////////////////////////////////////
+//     Function: init_libmovies
+//  Description: Initializes the library.  This must be called at
+//               least once before any of the functions or classes in
+//               this library can be used.  Normally it will be
+//               called by the static initializers and need not be
+//               called explicitly, but special cases exist.
+////////////////////////////////////////////////////////////////////
+void
+init_libmovies() {
+  static bool initialized = false;
+  if (initialized) {
+    return;
+  }
+  initialized = true;
+
+  MovieVideo::init_type();
+  MovieAudio::init_type();
+}
+

+ 33 - 0
panda/src/movies/config_movies.h

@@ -0,0 +1,33 @@
+// Filename: config_movies.h
+// Created by:  cary (04Jan00)
+//
+////////////////////////////////////////////////////////////////////
+//
+// PANDA 3D SOFTWARE
+// Copyright (c) 2001 - 2004, 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://etc.cmu.edu/panda3d/docs/license/ .
+//
+// To contact the maintainers of this program write to
+// [email protected] .
+//
+////////////////////////////////////////////////////////////////////
+
+#ifndef __CONFIG_MOVIES_H__
+#define __CONFIG_MOVIES_H__
+
+#include "pandabase.h"
+#include "notifyCategoryProxy.h"
+#include "configVariableEnum.h"
+#include "configVariableDouble.h"
+#include "dconfig.h"
+
+ConfigureDecl(config_movies, EXPCL_PANDA, EXPTP_PANDA);
+NotifyCategoryDecl(movies, EXPCL_PANDA, EXPTP_PANDA);
+
+extern EXPCL_PANDA void init_libmovies();
+
+#endif /* __CONFIG_MOVIES_H__ */

+ 18 - 0
panda/src/movies/movieAudio.I

@@ -0,0 +1,18 @@
+// Filename: movieAudio.I
+// Created by: jyelon (02Jul07)
+//
+////////////////////////////////////////////////////////////////////
+//
+// PANDA 3D SOFTWARE
+// Copyright (c) 2001 - 2004, 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://etc.cmu.edu/panda3d/docs/license/ .
+//
+// To contact the maintainers of this program write to
+// [email protected] .
+//
+////////////////////////////////////////////////////////////////////
+

+ 43 - 0
panda/src/movies/movieAudio.cxx

@@ -0,0 +1,43 @@
+// Filename: movieAudio.cxx
+// Created by: jyelon (02Jul07)
+//
+////////////////////////////////////////////////////////////////////
+//
+// PANDA 3D SOFTWARE
+// Copyright (c) 2001 - 2007, 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://etc.cmu.edu/panda3d/docs/license/ .
+//
+// To contact the maintainers of this program write to
+// [email protected] .
+//
+////////////////////////////////////////////////////////////////////
+
+#include "movieAudio.h"
+
+TypeHandle MovieAudio::_type_handle;
+
+////////////////////////////////////////////////////////////////////
+//     Function: MovieAudio::Constructor
+//       Access: Protected
+//  Description: Normally, the MovieAudio constructor is not
+//               called directly; these are created by calling
+//               the MoviePool::load functions.  Furthermore,
+//               MovieAudio itself is just an abstract base class.
+////////////////////////////////////////////////////////////////////
+MovieAudio::
+MovieAudio() {
+}
+
+////////////////////////////////////////////////////////////////////
+//     Function: MovieAudio::Destructor
+//       Access: Published, Virtual
+//  Description: 
+////////////////////////////////////////////////////////////////////
+MovieAudio::
+~MovieAudio() {
+}
+ 

+ 57 - 0
panda/src/movies/movieAudio.h

@@ -0,0 +1,57 @@
+// Filename: movieAudio.h
+// Created by: jyelon (02Jul07)
+//
+////////////////////////////////////////////////////////////////////
+//
+// PANDA 3D SOFTWARE
+// Copyright (c) 2001 - 2004, 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://etc.cmu.edu/panda3d/docs/license/ .
+//
+// To contact the maintainers of this program write to
+// [email protected] .
+//
+////////////////////////////////////////////////////////////////////
+
+#ifndef MOVIEVIDEO_H
+#define MOVIEVIDEO_H
+
+#include "pandabase.h"
+#include "texture.h"
+#include "pointerTo.h"
+
+////////////////////////////////////////////////////////////////////
+//       Class : MovieAudio
+// Description : A stream that generates a sequence of audio samples.
+////////////////////////////////////////////////////////////////////
+class EXPCL_PANDA MovieAudio : public TypedWritableReferenceCount, public Namable {
+protected:
+  MovieAudio();
+
+PUBLISHED:
+  virtual ~MovieAudio();
+
+public:
+  static TypeHandle get_class_type() {
+    return _type_handle;
+  }
+  static void init_type() {
+    GraphicsOutput::init_type();
+    register_type(_type_handle, "MovieAudio",
+                  MovieAudio::get_class_type());
+  }
+  virtual TypeHandle get_type() const {
+    return get_class_type();
+  }
+  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
+
+private:
+  static TypeHandle _type_handle;
+};
+
+#include "movieAudio.I"
+
+#endif

+ 18 - 0
panda/src/movies/movieVideo.I

@@ -0,0 +1,18 @@
+// Filename: movieVideo.I
+// Created by: jyelon (02Jul07)
+//
+////////////////////////////////////////////////////////////////////
+//
+// PANDA 3D SOFTWARE
+// Copyright (c) 2001 - 2004, 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://etc.cmu.edu/panda3d/docs/license/ .
+//
+// To contact the maintainers of this program write to
+// [email protected] .
+//
+////////////////////////////////////////////////////////////////////
+

+ 43 - 0
panda/src/movies/movieVideo.cxx

@@ -0,0 +1,43 @@
+// Filename: movieVideo.cxx
+// Created by: jyelon (02Jul07)
+//
+////////////////////////////////////////////////////////////////////
+//
+// PANDA 3D SOFTWARE
+// Copyright (c) 2001 - 2007, 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://etc.cmu.edu/panda3d/docs/license/ .
+//
+// To contact the maintainers of this program write to
+// [email protected] .
+//
+////////////////////////////////////////////////////////////////////
+
+#include "movieVideo.h"
+
+TypeHandle MovieVideo::_type_handle;
+
+////////////////////////////////////////////////////////////////////
+//     Function: MovieVideo::Constructor
+//       Access: Protected
+//  Description: Normally, the MovieVideo constructor is not
+//               called directly; these are created by calling
+//               the MoviePool::load functions.  Furthermore,
+//               MovieVideo itself is just an abstract base class.
+////////////////////////////////////////////////////////////////////
+MovieVideo::
+MovieVideo() {
+}
+
+////////////////////////////////////////////////////////////////////
+//     Function: MovieVideo::Destructor
+//       Access: Published, Virtual
+//  Description: 
+////////////////////////////////////////////////////////////////////
+MovieVideo::
+~MovieVideo() {
+}
+ 

+ 57 - 0
panda/src/movies/movieVideo.h

@@ -0,0 +1,57 @@
+// Filename: movieVideo.h
+// Created by: jyelon (02Jul07)
+//
+////////////////////////////////////////////////////////////////////
+//
+// PANDA 3D SOFTWARE
+// Copyright (c) 2001 - 2004, 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://etc.cmu.edu/panda3d/docs/license/ .
+//
+// To contact the maintainers of this program write to
+// [email protected] .
+//
+////////////////////////////////////////////////////////////////////
+
+#ifndef MOVIEVIDEO_H
+#define MOVIEVIDEO_H
+
+#include "pandabase.h"
+#include "texture.h"
+#include "pointerTo.h"
+
+////////////////////////////////////////////////////////////////////
+//       Class : MovieVideo
+// Description : A stream that generates a series of images.
+////////////////////////////////////////////////////////////////////
+class EXPCL_PANDA MovieVideo : public TypedWritableReferenceCount, public Namable {
+protected:
+  MovieVideo();
+
+PUBLISHED:
+  virtual ~MovieVideo();
+
+public:
+  static TypeHandle get_class_type() {
+    return _type_handle;
+  }
+  static void init_type() {
+    GraphicsOutput::init_type();
+    register_type(_type_handle, "MovieVideo",
+                  MovieVideo::get_class_type());
+  }
+  virtual TypeHandle get_type() const {
+    return get_class_type();
+  }
+  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
+
+private:
+  static TypeHandle _type_handle;
+};
+
+#include "movieVideo.I"
+
+#endif

+ 3 - 0
panda/src/movies/movies_composite.cxx

@@ -0,0 +1,3 @@
+#include "movieVideo.cxx"
+#include "movieAudio.cxx"
+#include "config_movies.cxx"