24 const std::string &name,
29 GraphicsOutput(engine, pipe, name, fb_prop, win_prop, flags, gsg, host, false)
31 #ifdef DO_MEMORY_USAGE 35 if (display_cat.is_debug()) {
37 <<
"Creating new offscreen buffer " << get_name() <<
"\n";
40 _overlay_display_region->compute_pixels(_size.get_x(), _size.get_y());
41 _open_request = OR_none;
59 if ((_creation_flags & GraphicsPipe::BF_resizeable) == 0) {
60 nassert_raise(
"Cannot resize buffer unless it is created with BF_resizeable flag");
73 _open_request = OR_open;
84 _open_request = OR_none;
93 _open_request = OR_none;
106 OpenRequest this_request = _open_request;
107 _open_request = OR_none;
109 switch (this_request) {
129 void GraphicsBuffer::
132 <<
"Closing " << get_type() <<
"\n";
139 bool GraphicsBuffer::
void set_size_and_recalc(int x, int y)
Changes the x_size and y_size, then recalculates structures that depend on size.
virtual void request_close()
This is called by the GraphicsEngine to request that the buffer (or whatever) close itself or,...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void set_size(int x, int y)
This is called by the GraphicsEngine to request that the buffer resize itself.
virtual void set_close_now()
This is called by the GraphicsEngine to insist that the buffer be closed immediately.
virtual void process_events()
Honor any requests recently made via request_open() or request_close().
A container for the various kinds of properties we might ask to have on a graphics window before we o...
virtual void request_open()
This is called by the GraphicsEngine to request that the buffer (or whatever) open itself or,...
An object to create GraphicsOutputs that share a particular 3-D API.
This is a base class for the various different classes that represent the result of a frame of render...
static void update_type(ReferenceCount *ptr, TypeHandle type)
Associates the indicated type with the given pointer.
Encapsulates all the communication with a particular instance of a given rendering backend.
This class is the main interface to controlling the render process.
TypeHandle is the identifier used to differentiate C++ class types.
set_inverted
Changes the current setting of the inverted flag.
A container for the various kinds of properties we might ask to have on a graphics frameBuffer before...