15 #ifndef PARASITEBUFFER_H
16 #define PARASITEBUFFER_H
18 #include "pandabase.h"
20 #include "graphicsOutput.h"
22 #include "pointerTo.h"
54 int x_size,
int y_size,
int flags);
60 void set_size(
int x,
int y);
80 static void init_type() {
81 GraphicsOutput::init_type();
82 register_type(_type_handle,
"ParasiteBuffer",
83 GraphicsOutput::get_class_type());
86 return get_class_type();
88 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
94 #include "parasiteBuffer.I"
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...
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...
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...
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 bool flip_ready() const
Returns true if a frame has been rendered and needs to be flipped, false otherwise.
virtual void begin_flip()
This function will be called within the draw thread after end_frame() has been called on all windows...
TypeHandle is the identifier used to differentiate C++ class types.
virtual bool is_active() const
Returns true if the window is ready to be rendered into, false otherwise.
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...