15 #include "graphicsBuffer.h" 33 GraphicsOutput(engine, pipe, name, fb_prop, win_prop, flags, gsg, host, false)
35 #ifdef DO_MEMORY_USAGE 36 MemoryUsage::update_type(
this,
this);
39 if (display_cat.is_debug()) {
41 <<
"Creating new offscreen buffer " <<
get_name() <<
"\n";
44 _overlay_display_region->compute_pixels(_size.get_x(), _size.get_y());
45 _open_request = OR_none;
68 if ((_creation_flags & GraphicsPipe::BF_resizeable) == 0) {
69 nassert_raise(
"Cannot resize buffer unless it is created with BF_resizeable flag");
85 _open_request = OR_open;
99 _open_request = OR_none;
111 _open_request = OR_none;
128 OpenRequest this_request = _open_request;
129 _open_request = OR_none;
131 switch (this_request) {
154 void GraphicsBuffer::
157 <<
"Closing " << get_type() <<
"\n";
167 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...
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...
void set_inverted(bool inverted)
Changes the current setting of the inverted flag.
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...
Encapsulates all the communication with a particular instance of a given rendering backend...
const string & get_name() const
Returns the name that was passed to the GraphicsOutput constructor.
This class is the main interface to controlling the render process.
TypeHandle is the identifier used to differentiate C++ class types.
A container for the various kinds of properties we might ask to have on a graphics frameBuffer before...