14 #ifndef PARASITEBUFFER_H 15 #define PARASITEBUFFER_H 46 int x_size,
int y_size,
int flags);
51 virtual bool is_active()
const;
52 void set_size(
int x,
int y);
72 static void init_type() {
73 GraphicsOutput::init_type();
75 GraphicsOutput::get_class_type());
78 return get_class_type();
80 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
void set_size_and_recalc(int x, int y)
Changes the x_size and y_size, then recalculates structures that depend on size.
virtual GraphicsOutput * get_host()
This is normally called only from within make_texture_buffer().
virtual void end_flip()
This function will be called within the draw thread after begin_flip() has been called on all windows...
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void end_frame(FrameMode mode, Thread *current_thread)
This function will be called within the draw thread after rendering is completed for a given frame.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a special GraphicsOutput type that acts a lot like a GraphicsBuffer, effectively allowing ren...
This is a base class for the various different classes that represent the result of a frame of render...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void ready_flip()
This function will be called within the draw thread after end_frame() has been called on all windows,...
A thread; that is, a lightweight process.
virtual void begin_flip()
This function will be called within the draw thread after end_frame() has been called on all windows,...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual bool flip_ready() const
Returns true if a frame has been rendered and needs to be flipped, false otherwise.
TypeHandle is the identifier used to differentiate C++ class types.
virtual bool begin_frame(FrameMode mode, Thread *current_thread)
This function will be called within the draw thread before beginning rendering for a given frame.