14 #ifndef VIDEOTEXTURE_H 15 #define VIDEOTEXTURE_H 34 virtual bool get_keep_ram_image()
const;
36 INLINE
int get_video_width()
const;
37 INLINE
int get_video_height()
const;
38 MAKE_PROPERTY(video_width, get_video_width);
39 MAKE_PROPERTY(video_height, get_video_height);
46 void set_video_size(
int video_width,
int video_height);
48 virtual bool do_has_ram_image(
const Texture::CData *cdata)
const;
50 virtual void reconsider_dirty();
51 virtual Texture::CData *unlocked_ensure_ram_image(
bool allow_compression);
52 virtual void do_reload_ram_image(Texture::CData *cdata,
bool allow_compression);
53 virtual bool do_can_reload(
const Texture::CData *cdata)
const;
55 virtual bool do_adjust_this_size(
const Texture::CData *cdata,
56 int &x_size,
int &y_size,
const std::string &name,
57 bool for_padding)
const;
59 virtual void consider_update();
60 INLINE
void clear_current_frame();
61 virtual void do_update_frame(Texture::CData *cdata_tex,
int frame)=0;
66 int _last_frame_update;
73 static void init_type() {
75 AnimInterface::init_type();
77 Texture::get_class_type(),
78 AnimInterface::get_class_type());
81 return get_class_type();
83 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Represents a texture object, which is typically a single 2-d image but may also represent a 1-d or 3-...
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.
This collects together the pieces of data that are accumulated for each node while walking the scene ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
The base class for a family of animated Textures that take their input from a video source,...
This is the fundamental interface for things that have a play/loop/stop type interface for frame-base...
virtual bool cull_callback(CullTraverser *trav, const CullTraverserData &data) const
If has_cull_callback() returns true, this function will be called during the cull traversal to perfor...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling,...
virtual bool has_cull_callback() const
Should be overridden by derived classes to return true if cull_callback() has been defined.