Panda3D
Loading...
Searching...
No Matches
inkblotVideoCursor.h
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file inkblotVideoCursor.h
10 * @author jyelon
11 * @date 2007-07-02
12 */
13
14#ifndef INKBLOTVIDEOCURSOR_H
15#define INKBLOTVIDEOCURSOR_H
16
17#include "pandabase.h"
18#include "texture.h"
19#include "pointerTo.h"
20#include "inkblotVideo.h"
21#include "movieVideoCursor.h"
22
23/**
24 * A cellular automaton that generates an amusing pattern of swirling colors.
25 */
26class EXPCL_PANDA_MOVIES InkblotVideoCursor : public MovieVideoCursor {
27
28 PUBLISHED:
30 virtual ~InkblotVideoCursor();
31
32 public:
33 virtual bool set_time(double time, int loop_count);
34 virtual PT(Buffer) fetch_buffer();
35
36 protected:
37 int _current_frame;
38 int _last_frame;
39 unsigned char *_cells;
40 unsigned char *_cells2;
41 int _fps;
42
43public:
44 static TypeHandle get_class_type() {
45 return _type_handle;
46 }
47 static void init_type() {
48 MovieVideoCursor::init_type();
49 register_type(_type_handle, "InkblotVideoCursor",
50 MovieVideoCursor::get_class_type());
51 }
52 virtual TypeHandle get_type() const {
53 return get_class_type();
54 }
55 virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
56
57private:
58 static TypeHandle _type_handle;
59};
60
61#include "inkblotVideoCursor.I"
62
63#endif
A cellular automaton that generates an amusing pattern of swirling colors.
A cellular automaton that generates an amusing pattern of swirling colors.
A MovieVideo is actually any source that provides a sequence of video frames.
virtual bool set_time(double timestamp, int loop_count)
Updates the cursor to the indicated time.
TypeHandle is the identifier used to differentiate C++ class types.
Definition typeHandle.h:81
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.