diff --git a/panda/src/movies/config_movies.cxx b/panda/src/movies/config_movies.cxx new file mode 100644 index 0000000000..6cfa265bcb --- /dev/null +++ b/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 +// panda3d-general@lists.sourceforge.net . +// +//////////////////////////////////////////////////////////////////// + +#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(); +} + diff --git a/panda/src/movies/config_movies.h b/panda/src/movies/config_movies.h new file mode 100644 index 0000000000..4b8e06acdd --- /dev/null +++ b/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 +// panda3d-general@lists.sourceforge.net . +// +//////////////////////////////////////////////////////////////////// + +#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__ */ diff --git a/panda/src/movies/movieAudio.I b/panda/src/movies/movieAudio.I new file mode 100644 index 0000000000..91ecc0c5d1 --- /dev/null +++ b/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 +// panda3d-general@lists.sourceforge.net . +// +//////////////////////////////////////////////////////////////////// + diff --git a/panda/src/movies/movieAudio.cxx b/panda/src/movies/movieAudio.cxx new file mode 100644 index 0000000000..e492ce79c9 --- /dev/null +++ b/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 +// panda3d-general@lists.sourceforge.net . +// +//////////////////////////////////////////////////////////////////// + +#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() { +} + diff --git a/panda/src/movies/movieAudio.h b/panda/src/movies/movieAudio.h new file mode 100644 index 0000000000..057bacda0c --- /dev/null +++ b/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 +// panda3d-general@lists.sourceforge.net . +// +//////////////////////////////////////////////////////////////////// + +#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 diff --git a/panda/src/movies/movieVideo.I b/panda/src/movies/movieVideo.I new file mode 100644 index 0000000000..ac16c311ee --- /dev/null +++ b/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 +// panda3d-general@lists.sourceforge.net . +// +//////////////////////////////////////////////////////////////////// + diff --git a/panda/src/movies/movieVideo.cxx b/panda/src/movies/movieVideo.cxx new file mode 100644 index 0000000000..d156e9863d --- /dev/null +++ b/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 +// panda3d-general@lists.sourceforge.net . +// +//////////////////////////////////////////////////////////////////// + +#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() { +} + diff --git a/panda/src/movies/movieVideo.h b/panda/src/movies/movieVideo.h new file mode 100644 index 0000000000..5ffb8ec6d0 --- /dev/null +++ b/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 +// panda3d-general@lists.sourceforge.net . +// +//////////////////////////////////////////////////////////////////// + +#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 diff --git a/panda/src/movies/movies_composite.cxx b/panda/src/movies/movies_composite.cxx new file mode 100644 index 0000000000..44d42c77ab --- /dev/null +++ b/panda/src/movies/movies_composite.cxx @@ -0,0 +1,3 @@ +#include "movieVideo.cxx" +#include "movieAudio.cxx" +#include "config_movies.cxx"