mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
Initial revision. Just a skeleton.
This commit is contained in:
parent
b764c3aa2e
commit
143b5df17b
44
panda/src/movies/config_movies.cxx
Normal file
44
panda/src/movies/config_movies.cxx
Normal file
@ -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();
|
||||||
|
}
|
||||||
|
|
33
panda/src/movies/config_movies.h
Normal file
33
panda/src/movies/config_movies.h
Normal file
@ -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__ */
|
18
panda/src/movies/movieAudio.I
Normal file
18
panda/src/movies/movieAudio.I
Normal file
@ -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 .
|
||||||
|
//
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
|
43
panda/src/movies/movieAudio.cxx
Normal file
43
panda/src/movies/movieAudio.cxx
Normal file
@ -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() {
|
||||||
|
}
|
||||||
|
|
57
panda/src/movies/movieAudio.h
Normal file
57
panda/src/movies/movieAudio.h
Normal file
@ -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
|
18
panda/src/movies/movieVideo.I
Normal file
18
panda/src/movies/movieVideo.I
Normal file
@ -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 .
|
||||||
|
//
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
|
43
panda/src/movies/movieVideo.cxx
Normal file
43
panda/src/movies/movieVideo.cxx
Normal file
@ -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() {
|
||||||
|
}
|
||||||
|
|
57
panda/src/movies/movieVideo.h
Normal file
57
panda/src/movies/movieVideo.h
Normal file
@ -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
|
3
panda/src/movies/movies_composite.cxx
Normal file
3
panda/src/movies/movies_composite.cxx
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#include "movieVideo.cxx"
|
||||||
|
#include "movieAudio.cxx"
|
||||||
|
#include "config_movies.cxx"
|
Loading…
x
Reference in New Issue
Block a user